All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Matan Ziv-Av <matan@svgalib.org>,
	Platform Driver <platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH 1/2] lg-laptop: Recognize more models correctly
Date: Tue, 22 Feb 2022 18:52:39 +0100	[thread overview]
Message-ID: <b1cf812d-5e9f-bf9c-a864-b5a3d6217457@redhat.com> (raw)
In-Reply-To: <c83c1074057eec03595b22cbb671a7fb3ebcf192.1645278914.git.matan@svgalib.org>

Hi,

On 11/21/21 08:43, Matan Ziv-Av wrote:
> LG uses 5 instead of 0 in the third (second after 2019) digit of
> the year string to indicate newer models in the same year.
> 
> Signed-off-by: Matan Ziv-Av <matan@svgalib.org>

It seems that you accidentally resend this one, it was
already merged quite a while ago...

Regards,

Hans


> ---
>  drivers/platform/x86/lg-laptop.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c
> index ae9293024c77..a91847a551a7 100644
> --- a/drivers/platform/x86/lg-laptop.c
> +++ b/drivers/platform/x86/lg-laptop.c
> @@ -657,6 +657,18 @@ static int acpi_add(struct acpi_device *device)
>  	if (product && strlen(product) > 4)
>  		switch (product[4]) {
>  		case '5':
> +			if (strlen(product) > 5)
> +				switch (product[5]) {
> +				case 'N':
> +					year = 2021;
> +					break;
> +				case '0':
> +					year = 2016;
> +					break;
> +				default:
> +					year = 2022;
> +				}
> +			break;
>  		case '6':
>  			year = 2016;
>  			break;


  reply	other threads:[~2022-02-22 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19 13:55 [PATCH 0/2] lg-laptop: model recognition improvements, common battery charge limit location Matan Ziv-Av
2021-11-21  7:43 ` [PATCH 1/2] lg-laptop: Recognize more models correctly Matan Ziv-Av
2022-02-22 17:52   ` Hans de Goede [this message]
2022-02-19 13:54 ` [PATCH 2/2] lg-laptop: Move setting of battery charge limit to common location Matan Ziv-Av
2022-02-22 18:42   ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b1cf812d-5e9f-bf9c-a864-b5a3d6217457@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=matan@svgalib.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.