Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel Baluta and committed by
Jonathan Cameron
ca801795 5aa89392

+3 -1
+1 -1
drivers/iio/accel/Kconfig
··· 97 97 select IIO_TRIGGERED_BUFFER 98 98 help 99 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 102 To compile this driver as a module, choose M here: the module will 103 103 be called kxcjk-1013.
+2
drivers/iio/accel/kxcjk-1013.c
··· 1326 1326 1327 1327 static const struct acpi_device_id kx_acpi_match[] = { 1328 1328 {"KXCJ1013", 0}, 1329 + {"KXCJ1008", 0}, 1329 1330 { }, 1330 1331 }; 1331 1332 MODULE_DEVICE_TABLE(acpi, kx_acpi_match); 1332 1333 1333 1334 static const struct i2c_device_id kxcjk1013_id[] = { 1334 1335 {"kxcjk1013", 0}, 1336 + {"kxcj91008", 0}, 1335 1337 {} 1336 1338 }; 1337 1339