android_kernel_oneplus_msm8998/drivers/iio/pressure
Michael Nosthoff 8e1f1062d9 iio: st_pressure: st_accel: pass correct platform data to init
commit 8b438686a001db64c21782d04ef68111e53c45d9 upstream.

Commit 7383d44b added a pointer pdata which get set to the default
platform_data when non was defined in the device. But it did not
pass this pointer to the st_sensors_init_sensor call but still
used the maybe uninitialized platform_data from dev.

This breaks initialization when no platform_data is given and
the optional st,drdy-int-pin devicetree option is not set.

This commit fixes this.

Cc: stable@vger.kernel.org
Fixes: 7383d44b ("iio: st_pressure: st_accel: Initialise sensor platform data properly")
Signed-off-by: Michael Nosthoff <committed@heine.so>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-28 18:40:12 +02:00
..
bmp280.c
hid-sensor-press.c
Kconfig
Makefile
mpl115.c iio: pressure: mpl115: do not rely on structure field ordering 2017-03-12 06:37:28 +01:00
mpl3115.c iio: pressure: mpl3115: do not rely on structure field ordering 2017-03-12 06:37:28 +01:00
ms5611.h
ms5611_core.c
ms5611_i2c.c
ms5611_spi.c
ms5637.c
st_pressure.h
st_pressure_buffer.c
st_pressure_core.c iio: st_pressure: st_accel: pass correct platform data to init 2018-03-28 18:40:12 +02:00
st_pressure_i2c.c
st_pressure_spi.c
t5403.c