]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: frequency: ad9523: add dev variable
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 13 Mar 2026 11:57:43 +0000 (13:57 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 21:12:24 +0000 (21:12 +0000)
commit9582a65eda4f566df9dc329e70f8be48260a9c9d
treed6feac8c2ce524773b09cc4ad561b1ee781e3e15
parent7428168fe1615423685fa61e4d38bd2e20f14ebd
iio: frequency: ad9523: add dev variable

Introduce a local struct device variable in ad9523_probe() to simplify
subsequent conversions and improve code readability.

Split pdata declaration and assignment since the result is validated
immediately after.

No functional change.

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/ad9523.c