Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: ad4851: ad4851_set_oversampling_ratio parameters update

Remove chan parameter from ad4851_set_oversampling_ratio parameters
list because the parameter is not used.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@analog.com>
Link: https://patch.msgid.link/20250605150948.3091827-2-pop.ioan-daniel@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Pop Ioan Daniel and committed by
Jonathan Cameron
56e5ec2d 7b20d517

+1 -2
+1 -2
drivers/iio/adc/ad4851.c
··· 294 294 } 295 295 296 296 static int ad4851_set_oversampling_ratio(struct iio_dev *indio_dev, 297 - const struct iio_chan_spec *chan, 298 297 unsigned int osr) 299 298 { 300 299 struct ad4851_state *st = iio_priv(indio_dev); ··· 830 831 case IIO_CHAN_INFO_CALIBBIAS: 831 832 return ad4851_set_calibbias(st, chan->channel, val); 832 833 case IIO_CHAN_INFO_OVERSAMPLING_RATIO: 833 - return ad4851_set_oversampling_ratio(indio_dev, chan, val); 834 + return ad4851_set_oversampling_ratio(indio_dev, val); 834 835 default: 835 836 return -EINVAL; 836 837 }