linux/drivers/iio/accel
Michael Nosthoff 8e1f1062d9 iio: st_pressure: st_accel: pass correct platform data to init
commit 8b438686a0 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
..
bma180.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
bmc150-accel-core.c iio: accel: bmc150: Always restore device to normal mode after suspend-resume 2017-08-16 13:40:29 -07:00
bmc150-accel-i2c.c iio: bmc150: Split the driver into core and i2c 2015-10-03 12:06:21 +01:00
bmc150-accel-spi.c iio: bmc150: Add SPI driver 2015-10-03 12:06:38 +01:00
bmc150-accel.h iio: bmc150: Split the driver into core and i2c 2015-10-03 12:06:21 +01:00
hid-sensor-accel-3d.c iio: accel: hid-sensor-accel-3d: Fix memory leak in probe() 2015-05-17 09:09:05 +01:00
Kconfig iio: add IIO_TRIGGER dependency to STK8BA50 2016-02-25 12:01:17 -08:00
kxcjk-1013.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2015-10-03 12:05:51 +01:00
kxsd9.c iio: accel: kxsd9: Fix scaling bug 2016-09-24 10:07:38 +02:00
Makefile iio: bmc150: Add SPI driver 2015-10-03 12:06:38 +01:00
mma8452.c iio: mma8452: leave sysfs namings to the iio core 2015-09-23 20:23:23 +01:00
mma9551_core.c iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551_core.h iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551.c iio: accel: mma9551: Check gpiod_to_irq return value 2015-03-09 13:27:49 +00:00
mma9553.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2015-10-03 12:05:51 +01:00
mxc4005.c iio: mxc4005: add data ready trigger for mxc4005 2015-08-31 17:58:49 +01:00
ssp_accel_sensor.c iio: common: ssp_sensors: Add sensorhub accelerometer sensor 2015-01-29 18:49:56 +00:00
st_accel_buffer.c
st_accel_core.c iio: st_pressure: st_accel: pass correct platform data to init 2018-03-28 18:40:12 +02:00
st_accel_i2c.c iio: st-accel: add support for lsm303agr accelerometer 2015-07-23 20:43:22 +01:00
st_accel_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
st_accel.h iio: st-accel: add support for lsm303agr accelerometer 2015-07-23 20:43:22 +01:00
stk8ba50.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2015-10-03 12:05:51 +01:00
stk8312.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2015-10-03 12:05:51 +01:00