mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manoj Iyer <manoj.iyer@canonical.com>
To: linux-kernel@vger.kernel.org
Cc: Matthew Garrett <mjg@redhat.com>,
	ibm-acpi-devel@lists.sourceforge.net,
	platform-driver-x86@vger.kernel.org
Subject: [PATCH] thinkpad-acpi: recognize Lenovo as version string in newer V-series BIOS
Date: Fri,  9 Mar 2012 17:32:24 -0600	[thread overview]
Message-ID: <1331335944-4662-2-git-send-email-manoj.iyer@canonical.com> (raw)
In-Reply-To: <1331335944-4662-1-git-send-email-manoj.iyer@canonical.com>

The newer V series bios reports product version as 'Lenovo'
instead of 'ThinkPad'. Recoginze this new string so that
the module can load.

Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
---
 drivers/platform/x86/thinkpad_acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index ea0c607..d68c000 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -8658,7 +8658,7 @@ static int __must_check __init get_thinkpad_model_data(
 	}
 
 	s = dmi_get_system_info(DMI_PRODUCT_VERSION);
-	if (s && !strnicmp(s, "ThinkPad", 8)) {
+	if (s && !(strnicmp(s, "ThinkPad", 8) && strnicmp(s, "Lenovo", 6))) {
 		tp->model_str = kstrdup(s, GFP_KERNEL);
 		if (!tp->model_str)
 			return -ENOMEM;
-- 
1.7.9.1


  reply	other threads:[~2012-03-09 23:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09 23:32 Manoj Iyer
2012-03-09 23:32 ` Manoj Iyer [this message]
2012-03-10  4:28   ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
2012-03-10 13:58     ` Yves-Alexis Perez
2012-03-10 16:06       ` Henrique de Moraes Holschuh
2012-03-12 21:34         ` Manoj Iyer
2012-03-12 23:02           ` Henrique de Moraes Holschuh
2012-03-12 23:57             ` Manoj Iyer
2012-03-13 15:53               ` Manoj Iyer
2012-03-13 20:07                 ` Henrique de Moraes Holschuh
2012-03-13 20:19                   ` Manoj Iyer
2012-03-20 16:03                   ` Matthew Garrett

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=1331335944-4662-2-git-send-email-manoj.iyer@canonical.com \
    --to=manoj.iyer@canonical.com \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®