Skip to content

Commit fbadb1f

Browse files
dlechgregkh
authored andcommitted
iio: adc: ad7380: fix missing max_conversion_rate_hz on adaq4381-4
commit b04e455 upstream. Add max_conversion_rate_hz to the chip info for "adaq4381-4". Without this, the driver fails to probe because it tries to set the initial sample rate to 0 Hz, which is not valid. Fixes: bbeaec8 ("iio: ad7380: add support for SPI offload") Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://patch.msgid.link/20250811-iio-adc-ad7380-fix-missing-max_conversion_rate_hs-on-ad4381-4-v1-1-ffb728d7a71c@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c352237 commit fbadb1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/adc/ad7380.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ static const struct ad7380_chip_info adaq4381_4_chip_info = {
873873
.has_hardware_gain = true,
874874
.available_scan_masks = ad7380_4_channel_scan_masks,
875875
.timing_specs = &ad7380_4_timing,
876+
.max_conversion_rate_hz = 4 * MEGA,
876877
};
877878

878879
static const struct spi_offload_config ad7380_offload_config = {

0 commit comments

Comments
 (0)