Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jean Delvare <khali@linux-fr.org>
Acked-by: Michal Marek <mmarek@suse.cz>

authored by

Jean Delvare and committed by
Jean Delvare
0a57274e 35da7a30

+14 -1
+2 -1
drivers/i2c/Kconfig
··· 75 75 In doubt, say Y. 76 76 77 77 config I2C_SMBUS 78 - tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO 78 + tristate 79 + prompt "SMBus-specific protocols" if !I2C_HELPER_AUTO 79 80 help 80 81 Say Y here if you want support for SMBus extensions to the I2C 81 82 specification. At the moment, the only supported extension is
+12
drivers/i2c/algos/Kconfig
··· 15 15 tristate "I2C PCA 9564 interfaces" 16 16 17 17 endmenu 18 + 19 + # In automatic configuration mode, we still have to define the 20 + # symbols to avoid unmet dependencies. 21 + 22 + if I2C_HELPER_AUTO 23 + config I2C_ALGOBIT 24 + tristate 25 + config I2C_ALGOPCF 26 + tristate 27 + config I2C_ALGOPCA 28 + tristate 29 + endif