i2c: Fix Kconfig dependencies
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Oct 2010 16:16:57 +0000 (18:16 +0200)
committerJean Delvare <khali@endymion.delvare>
Sun, 24 Oct 2010 16:16:57 +0000 (18:16 +0200)
commit0a57274ea026c2b7670683947b6cc08b195148cf
treee83ed615949b80c566410268cd3bbaf8fce7c72e
parent35da7a307c535f9c2929cae277f3df425c9f9b1e
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>
drivers/i2c/Kconfig
drivers/i2c/algos/Kconfig