]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: ad7380: select REGMAP
authorSamuel Moelius <samuel.moelius@trailofbits.com>
Tue, 2 Jun 2026 16:45:39 +0000 (16:45 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 29 Jun 2026 22:24:45 +0000 (23:24 +0100)
The AD7380 driver uses generic regmap types and APIs. However, its
Kconfig entry does not select REGMAP.

As a result, AD7380 can be enabled from an allnoconfig-derived config
with SPI_MASTER=y while REGMAP remains unset, causing ad7380.o to fail
to build.

Fixes: b095217c104b ("iio: adc: ad7380: new driver for AD7380 ADCs")
Signed-off-by: Samuel Moelius <samuel.moelius@trailofbits.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig

index 1c663c98c6c96a098dc90539ff7790c3cdf84af2..6fb0766ca27a46606f93c6f44ffd8c80f9d4bb06 100644 (file)
@@ -328,6 +328,7 @@ config AD7298
 config AD7380
        tristate "Analog Devices AD7380 ADC driver"
        depends on SPI_MASTER
+       select REGMAP
        select SPI_OFFLOAD
        select IIO_BUFFER
        select IIO_BUFFER_DMAENGINE