iio: magnetometer: ak8975: Convert to use device_get_match_data()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jan 2020 17:44:25 +0000 (19:44 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Jan 2020 11:43:17 +0000 (11:43 +0000)
commit71f221f8a0cd73f985e37d8a05dea2d63eb95b71
tree30d2a0b6848308fffb45938082cb0f9670737cec
parent608184788502fd475e7bca4b1692fda5f0fef5b6
iio: magnetometer: ak8975: Convert to use device_get_match_data()

Convert to use device_get_match_data() instead of open coded variant.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/ak8975.c