iio: st_sensors: Use dev_get_platdata() to get platform_data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Mar 2020 10:49:49 +0000 (12:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2020 10:26:10 +0000 (10:26 +0000)
commit49f20fc6fe7010e91f8d27847bea24bd990de953
tree444b13b0b1b9af8ccab8122388268ce15deb4947
parent3c50dee99588301869cdab857e70dfbb1b9ba6f0
iio: st_sensors: Use dev_get_platdata() to get platform_data

Use dev_get_platdata() to get the platform_data instead of
referencing it directly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_spi.c
drivers/iio/pressure/st_pressure_core.c