]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-i801: Simplify dependency towards GPIOLIB
authorJean Delvare <khali@linux-fr.org>
Sun, 21 Oct 2012 22:53:21 +0000 (09:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 21 Oct 2012 22:53:21 +0000 (09:53 +1100)
commit78aac7200af695dbce1eaaf67c66c304a204e742
tree938b37a83636defa14baa9834438883cc6dd143e
parent1ddeadc10598972b70fadc553532d175b7e5dfd9
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