[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250605150948.3091827-2-pop.ioan-daniel@analog.com>
Date: Thu, 5 Jun 2025 18:09:39 +0300
From: Pop Ioan Daniel <pop.ioan-daniel@...log.com>
To: Lars-Peter Clausen <lars@...afoo.de>,
Michael Hennerich
<Michael.Hennerich@...log.com>,
Jonathan Cameron <jic23@...nel.org>,
David
Lechner <dlechner@...libre.com>,
Nuno Sá
<nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, Rob Herring
<robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley
<conor+dt@...nel.org>,
Sergiu Cuciurean <sergiu.cuciurean@...log.com>,
Dragos
Bogdan <dragos.bogdan@...log.com>,
Antoniu Miclaus
<antoniu.miclaus@...log.com>,
Olivier Moysan <olivier.moysan@...s.st.com>,
Javier Carrasco <javier.carrasco.cruz@...il.com>,
Matti Vaittinen
<mazziesaccount@...il.com>,
Angelo Dureghello <adureghello@...libre.com>,
Tobias Sperling <tobias.sperling@...ting.com>,
Marcelo Schmitt
<marcelo.schmitt@...log.com>,
Trevor Gamblin <tgamblin@...libre.com>,
Pop
Ioan Daniel <pop.ioan-daniel@...log.com>,
Matteo Martelli
<matteomartelli3@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Thomas Bonnefille
<thomas.bonnefille@...tlin.com>,
Ramona Alexandra Nechita
<ramona.nechita@...log.com>,
<linux-iio@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH v7 1/5] 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@...libre.com>
Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@...log.com>
---
no changes in v7.
drivers/iio/adc/ad4851.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/iio/adc/ad4851.c b/drivers/iio/adc/ad4851.c
index 98ebc853db79..12f90aa3a156 100644
--- a/drivers/iio/adc/ad4851.c
+++ b/drivers/iio/adc/ad4851.c
@@ -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;
}
--
2.34.1
Powered by blists - more mailing lists