iio: accel: Change adxl345 depend to negate adxl35x

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>
This commit is contained in:
Jorge Marques 2025-11-12 23:06:38 +01:00 committed by Jonathan Cameron
parent 4aa91223fd
commit 048a15b721

View 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