]> code.ossystems Code Review - meta-freescale.git/commit
linux-fslc-imx: Replace MPL3115 driver
authorBreno Lima <breno.lima@nxp.com>
Fri, 12 Aug 2016 12:54:43 +0000 (09:54 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 24 Aug 2016 02:26:55 +0000 (23:26 -0300)
commit34724057b099ea72a06c151aa1d03bcff5da8841
treeebd5d42d14239f8f0d7530deacd278ec4f19ec95
parent17d6b95fe419b53e851e037b9f4346f507548393
linux-fslc-imx: Replace MPL3115 driver

There are currently two driver implementations for the MPL3115:
- drivers/input/misc/mpl3115.c (from NXP kernel)
- drivers/iio/pressure/mpl3115.c (from upstream kernel).

Use the CONFIG_MPL3115 instead of CONFIG_INPUT_MPL3115 because this driver
uses the Industrial I/O framework, which is the preferred and standard
subsystem for sensors.

The data from this sensor can be read by using the following commands
on a warp7 board:

cat /sys/bus/iio/devices/iio:device0/in_pressure_raw
cat /sys/bus/iio/devices/iio:device0/in_temp_raw

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/linux/linux-fslc-imx/defconfig