diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2014-08-19 11:25:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-08-30 16:08:51 -0400 |
commit | ca801795b17b13a105b5209cf451abac3a6529ff (patch) | |
tree | f08217621651d7131649e5dfb2e05322f8bebe01 /drivers/iio | |
parent | 5aa89392fad217fae7df361dc812a27d5177d980 (diff) |
iio: accel: kxcjk-1013: add support for kxcj9-1008
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/accel/Kconfig | 2 | ||||
-rw-r--r-- | drivers/iio/accel/kxcjk-1013.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig index 5704d6bc2267..01b857e2fcbd 100644 --- a/drivers/iio/accel/Kconfig +++ b/drivers/iio/accel/Kconfig | |||
@@ -97,7 +97,7 @@ config KXCJK1013 | |||
97 | select IIO_TRIGGERED_BUFFER | 97 | select IIO_TRIGGERED_BUFFER |
98 | help | 98 | help |
99 | Say Y here if you want to build a driver for the Kionix KXCJK-1013 | 99 | Say Y here if you want to build a driver for the Kionix KXCJK-1013 |
100 | triaxial acceleration sensor. | 100 | triaxial acceleration sensor. This driver also supports KXCJ9-1008. |
101 | 101 | ||
102 | To compile this driver as a module, choose M here: the module will | 102 | To compile this driver as a module, choose M here: the module will |
103 | be called kxcjk-1013. | 103 | be called kxcjk-1013. |
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index 647a4cfb2ae7..736231d5f636 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c | |||
@@ -1326,12 +1326,14 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = { | |||
1326 | 1326 | ||
1327 | static const struct acpi_device_id kx_acpi_match[] = { | 1327 | static const struct acpi_device_id kx_acpi_match[] = { |
1328 | {"KXCJ1013", 0}, | 1328 | {"KXCJ1013", 0}, |
1329 | {"KXCJ1008", 0}, | ||
1329 | { }, | 1330 | { }, |
1330 | }; | 1331 | }; |
1331 | MODULE_DEVICE_TABLE(acpi, kx_acpi_match); | 1332 | MODULE_DEVICE_TABLE(acpi, kx_acpi_match); |
1332 | 1333 | ||
1333 | static const struct i2c_device_id kxcjk1013_id[] = { | 1334 | static const struct i2c_device_id kxcjk1013_id[] = { |
1334 | {"kxcjk1013", 0}, | 1335 | {"kxcjk1013", 0}, |
1336 | {"kxcj91008", 0}, | ||
1335 | {} | 1337 | {} |
1336 | }; | 1338 | }; |
1337 | 1339 | ||