aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2014-12-05 07:05:46 -0500
committerDarren Hart <dvhart@linux.intel.com>2014-12-03 13:10:19 -0500
commite4da91427fbe1dd425478d49fdabeb217945f776 (patch)
tree6f019e06e83115579d0a5e3622c58d9e6cd8f1ea
parent02b2aaaa57ab41504e8d03a3b2ceeb9440a2c188 (diff)
dell-smo8800: Add more ACPI ids and change description of driver
This patch adds other ACPI ids from Windows inf driver which should be handled by dell-smo8800 driver. ACPI devices have same structure -- one IRQ number. This patch also updates description of module. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--drivers/platform/x86/Kconfig4
-rw-r--r--drivers/platform/x86/dell-smo8800.c10
2 files changed, 10 insertions, 4 deletions
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index a2eabe6ff9ad..854cc5049b69 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -128,10 +128,10 @@ config DELL_WMI_AIO
128 be called dell-wmi-aio. 128 be called dell-wmi-aio.
129 129
130config DELL_SMO8800 130config DELL_SMO8800
131 tristate "Dell Latitude freefall driver (ACPI SMO8800/SMO8810)" 131 tristate "Dell Latitude freefall driver (ACPI SMO88XX)"
132 depends on ACPI 132 depends on ACPI
133 ---help--- 133 ---help---
134 Say Y here if you want to support SMO8800/SMO8810 freefall device 134 Say Y here if you want to support SMO88XX freefall devices
135 on Dell Latitude laptops. 135 on Dell Latitude laptops.
136 136
137 To compile this driver as a module, choose M here: the module will 137 To compile this driver as a module, choose M here: the module will
diff --git a/drivers/platform/x86/dell-smo8800.c b/drivers/platform/x86/dell-smo8800.c
index a653716055d1..0aec4fd4c48e 100644
--- a/drivers/platform/x86/dell-smo8800.c
+++ b/drivers/platform/x86/dell-smo8800.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * dell-smo8800.c - Dell Latitude ACPI SMO8800/SMO8810 freefall sensor driver 2 * dell-smo8800.c - Dell Latitude ACPI SMO88XX freefall sensor driver
3 * 3 *
4 * Copyright (C) 2012 Sonal Santan <sonal.santan@gmail.com> 4 * Copyright (C) 2012 Sonal Santan <sonal.santan@gmail.com>
5 * Copyright (C) 2014 Pali Rohár <pali.rohar@gmail.com> 5 * Copyright (C) 2014 Pali Rohár <pali.rohar@gmail.com>
@@ -209,7 +209,13 @@ static int smo8800_remove(struct acpi_device *device)
209 209
210static const struct acpi_device_id smo8800_ids[] = { 210static const struct acpi_device_id smo8800_ids[] = {
211 { "SMO8800", 0 }, 211 { "SMO8800", 0 },
212 { "SMO8801", 0 },
212 { "SMO8810", 0 }, 213 { "SMO8810", 0 },
214 { "SMO8811", 0 },
215 { "SMO8820", 0 },
216 { "SMO8821", 0 },
217 { "SMO8830", 0 },
218 { "SMO8831", 0 },
213 { "", 0 }, 219 { "", 0 },
214}; 220};
215 221
@@ -228,6 +234,6 @@ static struct acpi_driver smo8800_driver = {
228 234
229module_acpi_driver(smo8800_driver); 235module_acpi_driver(smo8800_driver);
230 236
231MODULE_DESCRIPTION("Dell Latitude freefall driver (ACPI SMO8800/SMO8810)"); 237MODULE_DESCRIPTION("Dell Latitude freefall driver (ACPI SMO88XX)");
232MODULE_LICENSE("GPL"); 238MODULE_LICENSE("GPL");
233MODULE_AUTHOR("Sonal Santan, Pali Rohár"); 239MODULE_AUTHOR("Sonal Santan, Pali Rohár");