]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: st_sensors: fix scale configuration for h3lis331dl
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Tue, 25 Oct 2016 21:07:38 +0000 (23:07 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 30 Oct 2016 16:46:46 +0000 (16:46 +0000)
commitd304286abbbe7ed6228a553a56ba054e900907eb
tree90abbdb90e151dd4b13e45c52b5aa1007e0ad6b1
parent34eee70a7b82b09dbda4cb453e0e21d460dae226
iio: st_sensors: fix scale configuration for h3lis331dl

fix scale configuration/parsing for h3lis331dl accel driver
when sensitivity is higher than 1(m/s^2)/digit

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Fixes: 1e52fefc9b0c ("iio: accel: Add support for the h3lis331dl accelerometer")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_core.c