hwmon: MMA8451: Add mma8451 3 axis digtial accelerometer driver
PATCH 2/2 hwmon: MMA8451: Add mma8451 3 axis digtial accelerometer driver
From: Sammy He <[email protected]>
Add mma8451 accelerometer driver.
Signed-off-by Xinyu Chen <[email protected]>
Signed-off-by Sammy He <[email protected]>
Signed-off-by Frank Li <[email protected]>
--- drivers/hwmon/Kconfig | 7 + drivers/hwmon/Makefile | 1 + drivers/hwmon/mma8451.c | 426 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 434 insertions(+), 0 deletions(-) create mode 100644 drivers/hwmon/mma8451.c
drivers/hwmon/Kconfig +7 -0
@@ -1432,6 +1432,13 @@ config SENSORS_MC13783_ADC help Support for the A/D converter on MC13783 and MC13892 PMIC. +config SENSORS_MMA8451 + tristate "Freescale MMA8451 device driver" + depends on I2C + help + If you say yes here you get support for the freescale 3 axis + accelerometer MMA8451 + if ACPI comment "ACPI drivers"
drivers/hwmon/Makefile +1 -0
@@ -131,6 +131,7 @@ obj-$(CONFIG_SENSORS_W83L785TS) += w83l785ts.o obj-$(CONFIG_SENSORS_W83L786NG) += w83l786ng.o obj-$(CONFIG_SENSORS_WM831X) += wm831x-hwmon.o obj-$(CONFIG_SENSORS_WM8350) += wm8350-hwmon.o +obj-$(CONFIG_SENSORS_MMA8451) += mma8451.o obj-$(CONFIG_PMBUS) += pmbus/
drivers/hwmon/mma8451.c new file +426 -0
426 lines not on this page · raw message
Signature · 1 line
1.7.1
Guenter Roeck
maintainerPATCH 2/2 hwmon: MMA8451: Add mma8451 3 axis digtial accelerometer driver
Quoted 7 lines · Frank Li
From: Sammy He <[email protected]>
Add mma8451 accelerometer driver.
Signed-off-by Xinyu Chen <[email protected]>Signed-off-by Sammy He <[email protected]>Signed-off-by Frank Li <[email protected]>
Quoted 7 lines
--- drivers/hwmon/Kconfig | 7 + drivers/hwmon/Makefile | 1 + drivers/hwmon/mma8451.c | 426 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 434 insertions(+), 0 deletions(-) create mode 100644 drivers/hwmon/mma8451.c
Hi,
This is not a hardware monitoring driver. A better place would be drivers/iio/accel/ or, if the driver is not ready for primetime, drivers/staging/iio/accel/.
Thanks,
Guenter