i2c-i801: Simplify dependency towards GPIOLIB
authorJean Delvare <khali@linux-fr.org>
Sun, 28 Oct 2012 20:37:01 +0000 (21:37 +0100)
committerJean Delvare <khali@endymion.delvare>
Sun, 28 Oct 2012 20:37:01 +0000 (21:37 +0100)
commit79e3e5b894926d3c7b1efc69e0c5be723ceb88bd
tree5269772760501ef73faa7c91500d8f1457cbb657
parent31d178bffcff4c468c8c65bc42d9f4c0a7b8e3ec
i2c-i801: Simplify dependency towards GPIOLIB

Arbitrarily selecting GPIOLIB causes trouble on some architectures,
so don't do that. Instead, just make the optional multiplexing code
depend on CONFIG_I2C_MUX_GPIO instead of CONFIG_I2C_MUX for now. We
can revisit if the i2c-i801 driver ever supports other multiplexing
flavors.

Also make that optional code depend on DMI, as it won't do anything
without that.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Fengguang Wu <fengguang.wu@intel.com>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-i801.c