]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: frequency: adrf6780: add dev variable
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 27 Feb 2026 14:01:30 +0000 (16:01 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Feb 2026 11:34:30 +0000 (11:34 +0000)
commit9047ea8defe2b91ea5ca88b52862e85bae0314f1
tree8c5308c3e95ecb66041f4dfbbb888f6c5efcdf26
parentba53939bbadd40aef1d9096b958dcf93dee10a8d
iio: frequency: adrf6780: add dev variable

Introduce a local struct device pointer in functions that reference
&spi->dev for device-managed resource calls and device property reads,
improving code readability.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/adrf6780.c