iio: adc: xilinx: use helper variable for &pdev->dev
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Nov 2020 14:27:57 +0000 (15:27 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Jan 2021 14:25:25 +0000 (14:25 +0000)
commit9d8fd2a06a2bcce8eada1bad26cbe0fbfc27cdf4
tree242e6d4b8cf2fa198654e86cf3d3c75876d689a9
parentc2b7720a7905bb8aa3a9decbf135fec98faba38d
iio: adc: xilinx: use helper variable for &pdev->dev

It's more elegant to use a helper local variable to store the address
of the underlying struct device than to dereference pdev everywhere.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Anand Ashok Dumbre <anandash@xilinx.com>
Reviewed-by: Anand Ashok Dumbre <anandash@xilinx.com>
Link: https://lore.kernel.org/r/20201130142759.28216-2-brgl@bgdev.pl
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c