iio: humidity: hts221: Use dev_get_platdata() to get platform_data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Mar 2020 10:49:53 +0000 (12:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2020 10:26:54 +0000 (10:26 +0000)
commit4d8d2f09ad9fec7dcc1298541b0b12bd5dadf319
treedc4f6ac7ce17866bd8860f160e781175ba665b1b
parent38bc80154a50b75ddfbf6f6ae38eb3105de8a5db
iio: humidity: hts221: 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/humidity/hts221_buffer.c