Re: [PATCH v4 2/2] iio: amplifiers: adl8113: add driver support

From: kernel test robot

Date: Fri Nov 28 2025 - 13:46:33 EST


Hi Antoniu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on robh/for-next linus/master v6.18-rc7 next-20251128]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Antoniu-Miclaus/dt-bindings-iio-amplifiers-add-adl8113/20251121-180600
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20251121095204.18574-3-antoniu.miclaus%40analog.com
patch subject: [PATCH v4 2/2] iio: amplifiers: adl8113: add driver support
config: x86_64-randconfig-r071-20251128 (https://download.01.org/0day-ci/archive/20251129/202511290251.tcqKd4O5-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511290251.tcqKd4O5-lkp@xxxxxxxxx/

smatch warnings:
drivers/iio/amplifiers/adl8113.c:58 adl8113_set_path() warn: inconsistent indenting

vim +58 drivers/iio/amplifiers/adl8113.c

48
49 static int adl8113_set_path(struct adl8113_state *st,
50 enum adl8113_signal_path path)
51 {
52 int va, vb;
53
54 /* Determine GPIO values based on signal path */
55 switch (path) {
56 case ADL8113_INTERNAL_AMP:
57 va = 0; vb = 0; /* Internal amplifier */
> 58 break;
59 case ADL8113_INTERNAL_BYPASS:
60 va = 1; vb = 1; /* Internal bypass */
61 break;
62 case ADL8113_EXTERNAL_A:
63 va = 0; vb = 1; /* External bypass A */
64 break;
65 case ADL8113_EXTERNAL_B:
66 va = 1; vb = 0; /* External bypass B */
67 break;
68 default:
69 return -EINVAL;
70 }
71
72 gpiod_set_value(st->gpio_va, va);
73 gpiod_set_value(st->gpio_vb, vb);
74 st->current_path = path;
75 return 0;
76 }
77

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki