]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: frequency: ad9523: fix multi-line dereferences
authorBhargav Joshi <rougueprince47@gmail.com>
Thu, 26 Feb 2026 23:10:56 +0000 (04:40 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Feb 2026 12:15:19 +0000 (12:15 +0000)
Platform data pointer dereferences for pll1_charge_pump_current_nA and
pll2_charge_pump_current_nA were split across multiple lines. Bring the
dereference chains onto a single line.

This resolves the following checkpatch.pl warnings:
WARNING: Avoid multiple line dereference - prefer 'pdata->pll1_charge_pump_current_nA'
WARNING: Avoid multiple line dereference - prefer 'pdata->pll2_charge_pump_current_nA'

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

index 5725ab62e0fddd45b0e47d2cb3bfc6f637dd8b66..6daa2ea354a8b3bfb03c7271bc8a1c7f3168a023 100644 (file)
@@ -797,8 +797,7 @@ static int ad9523_setup(struct iio_dev *indio_dev)
                return ret;
 
        ret = ad9523_write(indio_dev, AD9523_PLL1_CHARGE_PUMP_CTRL,
-               AD9523_PLL1_CHARGE_PUMP_CURRENT_nA(pdata->
-                       pll1_charge_pump_current_nA) |
+               AD9523_PLL1_CHARGE_PUMP_CURRENT_nA(pdata->pll1_charge_pump_current_nA) |
                AD9523_PLL1_CHARGE_PUMP_MODE_NORMAL |
                AD9523_PLL1_BACKLASH_PW_MIN);
        if (ret < 0)
@@ -842,8 +841,7 @@ static int ad9523_setup(struct iio_dev *indio_dev)
         */
 
        ret = ad9523_write(indio_dev, AD9523_PLL2_CHARGE_PUMP,
-               AD9523_PLL2_CHARGE_PUMP_CURRENT_nA(pdata->
-                       pll2_charge_pump_current_nA));
+               AD9523_PLL2_CHARGE_PUMP_CURRENT_nA(pdata->pll2_charge_pump_current_nA));
        if (ret < 0)
                return ret;