linux-stable/drivers/iio
Michael Nosthoff 8b438686a0 iio: st_pressure: st_accel: pass correct platform data to init
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>
2018-03-10 16:28:05 +00:00
..
accel iio: st_pressure: st_accel: pass correct platform data to init 2018-03-10 16:28:05 +00:00
adc iio: adc: meson-saradc: unlock on error in meson_sar_adc_lock() 2018-03-10 15:14:14 +00:00
amplifiers
buffer vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
chemical iio: chemical: ccs811: Corrected firmware boot/application mode transition 2018-02-24 12:12:19 +00:00
common
counter
dac
dummy
frequency
gyro
health
humidity
imu iio: adis_lib: Initialize trigger before requesting interrupt 2018-02-17 14:16:35 +00:00
light
magnetometer
multiplexer
orientation
potentiometer
potentiostat
pressure iio: st_pressure: st_accel: pass correct platform data to init 2018-03-10 16:28:05 +00:00
proximity iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined 2018-02-04 11:13:00 +00:00
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c First round of IIO fixes for the 4.16 cycle. 2018-02-20 10:03:22 +01:00
industrialio-configfs.c
industrialio-core.c
industrialio-event.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile