]> www.infradead.org Git - users/hch/misc.git/commitdiff
iio: adc: ad4851: ad4851_set_oversampling_ratio parameters update
authorPop Ioan Daniel <pop.ioan-daniel@analog.com>
Thu, 5 Jun 2025 15:09:39 +0000 (18:09 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 26 Jun 2025 18:32:51 +0000 (19:32 +0100)
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>
drivers/iio/adc/ad4851.c

index f1d2e2896f2a2d51fd98f59aea75c65e789e7dce..1751f601e7f75723318b59be68395e2d1f294492 100644 (file)
@@ -294,7 +294,6 @@ static int ad4851_scale_fill(struct iio_dev *indio_dev)
 }
 
 static int ad4851_set_oversampling_ratio(struct iio_dev *indio_dev,
-                                        const struct iio_chan_spec *chan,
                                         unsigned int osr)
 {
        struct ad4851_state *st = iio_priv(indio_dev);
@@ -831,7 +830,7 @@ static int ad4851_write_raw(struct iio_dev *indio_dev,
        case IIO_CHAN_INFO_CALIBBIAS:
                return ad4851_set_calibbias(st, chan->channel, val);
        case IIO_CHAN_INFO_OVERSAMPLING_RATIO:
-               return ad4851_set_oversampling_ratio(indio_dev, chan, val);
+               return ad4851_set_oversampling_ratio(indio_dev, val);
        default:
                return -EINVAL;
        }