iio:proximity:as3935: Use local struct device pointer to simplify code.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:35 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Sep 2020 17:41:33 +0000 (18:41 +0100)
commitc457b7efa302a8c3706176636f7f2702556f93ab
tree72aa6ef84510338c9042b97d63d7d8d0073d01c0
parentd13643143074102f2264d3cbf8052f57a371dd5f
iio:proximity:as3935: Use local struct device pointer to simplify code.

This makes the existing code easier to read and will make the following
patch a little simpler.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Link: https://lore.kernel.org/r/20200910173242.621168-32-jic23@kernel.org
drivers/iio/proximity/as3935.c