summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorMichael Nosthoff <committed@heine.so>2018-03-09 10:02:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-28 18:22:53 +0200
commite1db7d19c6faa48fc653220f3580d7c7a8e79a15 (patch)
tree430d3f42166f7b489b2a23ee7bf7564f33049d9d /include/uapi/linux
parent805a995cb8a37a6ed908cd7888782dddd70619f7 (diff)
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>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions