]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: amplifiers: ad8366: add local dev pointer to the probe function
authorRodrigo Alencar <rodrigo.alencar@analog.com>
Mon, 16 Feb 2026 17:10:48 +0000 (17:10 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:00:57 +0000 (21:00 +0000)
commitd9eece6f39c64b958e590686781e2aa16d7d6ae4
treed252bd79628b2491f94d20c171f886b6ae45b032
parent5593bddbf9dd5d94ba6547cc01cb894825c2fac5
iio: amplifiers: ad8366: add local dev pointer to the probe function

Create local device pointer in the probe function to shorten lines, making
the code easier to read. The local device pointer replaces &spi->dev and
will be reused across other probe function places in later patches.

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/amplifiers/ad8366.c