]> git.baikalelectronics.ru Git - kernel.git/commit
iio: st_accel: support 8bit channel data
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 19 May 2015 13:37:02 +0000 (15:37 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 Jun 2015 16:58:28 +0000 (17:58 +0100)
commit50b1f6c264294e7223fe2c93782d793acbe43f2d
treeda2f7a5ecfcac29630e81ec33383b8f43003c1bf
parent2d942369e74742ff6587dc59fc4ac41656b80640
iio: st_accel: support 8bit channel data

Some sensors like the LIS331DL only support 8bit data by a single
register per axis. These utilize the MSB byte. Make it possible
to register these apropriately.

A oneliner change is needed in the ST sensors core to handle 8bit
reads as this is the first supported 8bit sensor.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_core.c