iio: adc: cc10001: Add local struct device *dev variable to avoid repitition
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Oct 2022 17:09:46 +0000 (18:09 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:44:04 +0000 (19:44 +0000)
commit26bfb581931a020eaf560612f01009b3e179db0a
treeba16930df71e731f16bdff7916bb29e029ec4bc1
parent0a33755c4b01ed62a6d025cb585928304f9653d7
iio: adc: cc10001: Add local struct device *dev variable to avoid repitition

There are lots of uses of this in probe() and we are about to introduce
some more, so add a local variable to simplify this.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20221016170950.387751-2-jic23@kernel.org
drivers/iio/adc/cc10001_adc.c