aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/Kconfig
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-10-24 12:16:57 -0400
committerJean Delvare <khali@endymion.delvare>2010-10-24 12:16:57 -0400
commit0a57274ea026c2b7670683947b6cc08b195148cf (patch)
treee83ed615949b80c566410268cd3bbaf8fce7c72e /drivers/i2c/Kconfig
parent35da7a307c535f9c2929cae277f3df425c9f9b1e (diff)
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>
Diffstat (limited to 'drivers/i2c/Kconfig')
-rw-r--r--drivers/i2c/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 30f06e956bfb..b923074b2cbe 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -75,7 +75,8 @@ config I2C_HELPER_AUTO
75 In doubt, say Y. 75 In doubt, say Y.
76 76
77config I2C_SMBUS 77config I2C_SMBUS
78 tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO 78 tristate
79 prompt "SMBus-specific protocols" if !I2C_HELPER_AUTO
79 help 80 help
80 Say Y here if you want support for SMBus extensions to the I2C 81 Say Y here if you want support for SMBus extensions to the I2C
81 specification. At the moment, the only supported extension is 82 specification. At the moment, the only supported extension is