Thread (24 messages) 24 messages, 8 authors, 2025-09-05

Re: [PATCH 2/3] iio: adc: Support ROHM BD79112 ADC/GPIO

From: kernel test robot <hidden>
Date: 2025-09-04 14:04:37
Also in: linux-gpio, linux-iio, lkml, oe-kbuild-all

Hi Matti,

kernel test robot noticed the following build warnings:

[auto build test WARNING on d1487b0b78720b86ec2a2ac7acc683ec90627e5b]

url:    https://github.com/intel-lab-lkp/linux/commits/Matti-Vaittinen/dt-bindings-iio-adc-ROHM-BD79112-ADC-GPIO/20250902-203558
base:   d1487b0b78720b86ec2a2ac7acc683ec90627e5b
patch link:    https://lore.kernel.org/r/08929460fe11dd0b749c50a72a634423f13f4104.1756813980.git.mazziesaccount%40gmail.com
patch subject: [PATCH 2/3] iio: adc: Support ROHM BD79112 ADC/GPIO
config: sparc-randconfig-r071-20250904 (https://download.01.org/0day-ci/archive/20250904/202509042119.GiwpuwCl-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 14.3.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 [off-list ref]
| Closes: https://lore.kernel.org/oe-kbuild-all/202509042119.GiwpuwCl-lkp@intel.com/ (local)

smatch warnings:
drivers/iio/adc/rohm-bd79112.c:212 bd79112_read_raw() warn: inconsistent indenting

vim +212 drivers/iio/adc/rohm-bd79112.c

   192	
   193	static int bd79112_read_raw(struct iio_dev *indio_dev,
   194				    struct iio_chan_spec const *chan, int *val,
   195				    int *val2, long m)
   196	{
   197		struct bd79112_data *data = iio_priv(indio_dev);
   198		int ret;
   199	
   200		switch (m) {
   201		case IIO_CHAN_INFO_RAW:
   202			ret = regmap_read(data->map, chan->channel, val);
   203			if (ret < 0)
   204				return ret;
   205	
   206			return IIO_VAL_INT;
   207	
   208		case IIO_CHAN_INFO_SCALE:
   209			 *val = data->vref_mv;
   210			 *val2 = 12;
   211	
 > 212			return IIO_VAL_FRACTIONAL_LOG2;
   213		}
   214	
   215		return -EINVAL;
   216	}
   217	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help