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

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad7380: remove unused oversampling_ratio getter

Remove a call to ad7380_get_osr() in ad7380_init_offload_msg. The
returned value is never used.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250624-iio-adc-ad7380-remove-unused-oversampling_ratio-getter-v1-1-26cbee356860@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
8956547c 695b7c42

-5
-5
drivers/iio/adc/ad7380.c
··· 1165 1165 struct spi_transfer *xfer = &st->offload_xfer; 1166 1166 struct device *dev = &st->spi->dev; 1167 1167 const struct iio_scan_type *scan_type; 1168 - int oversampling_ratio; 1169 1168 int ret; 1170 1169 1171 1170 scan_type = iio_get_current_scan_type(indio_dev, ··· 1193 1194 return ret; 1194 1195 } 1195 1196 } 1196 - 1197 - ret = ad7380_get_osr(st, &oversampling_ratio); 1198 - if (ret) 1199 - return ret; 1200 1197 1201 1198 xfer->bits_per_word = scan_type->realbits; 1202 1199 xfer->offload_flags = SPI_OFFLOAD_XFER_RX_STREAM;