]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83bc5e9fdb2cacd9d76232b2e1f95c22fe1ecf49
tree444b13b0b1b9af8ccab8122388268ce15deb4947
parentd2e8d47ade9fdae7302421c3c2f68b470bfb53d2
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