]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: frequency: ad9523: fix implicit variable macros
authorBhargav Joshi <rougueprince47@gmail.com>
Thu, 26 Feb 2026 23:10:55 +0000 (04:40 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Feb 2026 12:15:19 +0000 (12:15 +0000)
commite830a8894ecbacd20bc8bcff9a726682ca5ef6f9
treea1f190602a8fcaca54ae7782225ac7444fce6264
parentaac15061093d14b216179b66adfff4af53dd19ab
iio: frequency: ad9523: fix implicit variable macros

The macros AD9523_CLK_DIST_DIV_PHASE_REV(x) and
AD9523_CLK_DIST_DIV_REV(x) implicitly relied on the variable named 'ret'
instead of using passed argument '(x)'. Update the macros to explicitly
use the argument '(x)' for their operations.

This also resolves the following checkpatch.pl warning: Argument '(x)'
is not used in function-like macro.

Signed-off-by: Bhargav Joshi <rougueprince47@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/ad9523.c