]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7791: add dev variable
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Mon, 30 Mar 2026 11:18:51 +0000 (14:18 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:18 +0000 (09:58 +0100)
commitd9e85469a7db69ed2950eeb4a0ff7a87419dbd86
tree012ef947cfd1517d3d3b1a23f243e8d21a8a46ee
parent567485a8e6afac7162550286095335bfa9792bd8
iio: adc: ad7791: add dev variable

Add a local struct device pointer to simplify repeated &spi->dev
dereferences throughout the probe function.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7791.c