iio: accel: kxcjk-1013: add support for kxcj9-1008
authorDaniel Baluta <daniel.baluta@intel.com>
Tue, 19 Aug 2014 15:25:00 +0000 (16:25 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Aug 2014 20:08:51 +0000 (21:08 +0100)
This patch adds support for KXCJ9-1008 3-axis acceleromenter sensor.
KXCJ9-1008 uses the same register definitions as KXCJK-1013.

The specification for KXCJ9-1008 can be downloaded from:
http://www.kionix.com/sites/default/files/KXCJ9-1008%20Specifications%20Rev%205.pdf

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/Kconfig
drivers/iio/accel/kxcjk-1013.c

index 5704d6bc2267e2f84a05503872f0d4581d36a216..01b857e2fcbd043c708a638489b4e7c06f3fffac 100644 (file)
@@ -97,7 +97,7 @@ config KXCJK1013
        select IIO_TRIGGERED_BUFFER
        help
          Say Y here if you want to build a driver for the Kionix KXCJK-1013
-         triaxial acceleration sensor.
+         triaxial acceleration sensor. This driver also supports KXCJ9-1008.
 
          To compile this driver as a module, choose M here: the module will
          be called kxcjk-1013.
index 647a4cfb2ae7d9b6abb307af9454d1373e2e25e5..736231d5f636e03cf26200466ee2ec2a710ff29e 100644 (file)
@@ -1326,12 +1326,14 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = {
 
 static const struct acpi_device_id kx_acpi_match[] = {
        {"KXCJ1013", 0},
+       {"KXCJ1008", 0},
        { },
 };
 MODULE_DEVICE_TABLE(acpi, kx_acpi_match);
 
 static const struct i2c_device_id kxcjk1013_id[] = {
        {"kxcjk1013", 0},
+       {"kxcj91008", 0},
        {}
 };
 
This page took 0.028179 seconds and 5 git commands to generate.