]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: accel: Change adxl345 depend to negate adxl35x
authorJorge Marques <jorge.marques@analog.com>
Wed, 12 Nov 2025 22:06:38 +0000 (23:06 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:41:12 +0000 (11:41 +0000)
Change 'depends on INPUT_ADXL34X=n' to '!(INPUT_ADXL34X)' to allow both
drivers to be compiled as modules. The user then can use the blacklist
to block loading one.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig

index 76911278fb217bd3e429c427b873fb7eae26420e..3d3f8d8673dde346b32e18f0e458d86db9bc448c 100644 (file)
@@ -64,7 +64,7 @@ config ADXL345
 
 config ADXL345_I2C
        tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer I2C Driver"
-       depends on INPUT_ADXL34X=n
+       depends on !INPUT_ADXL34X
        depends on I2C
        select ADXL345
        select REGMAP_I2C
@@ -74,11 +74,12 @@ config ADXL345_I2C
 
          To compile this driver as a module, choose M here: the module
          will be called adxl345_i2c and you will also get adxl345_core
-         for the core module.
+         for the core module. INPUT_ADXL34X share compatibles with this
+         driver, do not add both modules to the kernel.
 
 config ADXL345_SPI
        tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer SPI Driver"
-       depends on INPUT_ADXL34X=n
+       depends on !INPUT_ADXL34X
        depends on SPI
        select ADXL345
        select REGMAP_SPI
@@ -88,7 +89,8 @@ config ADXL345_SPI
 
          To compile this driver as a module, choose M here: the module
          will be called adxl345_spi and you will also get adxl345_core
-         for the core module.
+         for the core module. INPUT_ADXL34X share compatibles with this
+         driver, do not add both modules to the kernel.
 
 config ADXL355
        tristate