Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a57274e authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare
Browse files

i2c: Fix Kconfig dependencies



drivers/i2c/algos/Kconfig makes all the algorithms dependent on
!I2C_HELPER_AUTO, which triggers a Kconfig warning about broken
dependencies when some driver selects one of the algorithms. Ideally
we would make only the prompts dependent on !I2C_HELPER_AUTO, however
Kconfig doesn't currently support that. So we have to redefine the
symbols separately for the I2C_HELPER_AUTO=y case.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-by: default avatarMichal Marek <mmarek@suse.cz>
parent 35da7a30
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -75,7 +75,8 @@ config I2C_HELPER_AUTO
	  In doubt, say Y.
	  In doubt, say Y.


config I2C_SMBUS
config I2C_SMBUS
	tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO
	tristate
	prompt "SMBus-specific protocols" if !I2C_HELPER_AUTO
	help
	help
	  Say Y here if you want support for SMBus extensions to the I2C
	  Say Y here if you want support for SMBus extensions to the I2C
	  specification. At the moment, the only supported extension is
	  specification. At the moment, the only supported extension is
+12 −0
Original line number Original line Diff line number Diff line
@@ -15,3 +15,15 @@ config I2C_ALGOPCA
	tristate "I2C PCA 9564 interfaces"
	tristate "I2C PCA 9564 interfaces"


endmenu
endmenu

# In automatic configuration mode, we still have to define the
# symbols to avoid unmet dependencies.

if I2C_HELPER_AUTO
config I2C_ALGOBIT
	tristate
config I2C_ALGOPCF
	tristate
config I2C_ALGOPCA
	tristate
endif