diff options
| author | Jean Delvare <khali@linux-fr.org> | 2010-03-02 06:23:43 -0500 |
|---|---|---|
| committer | Jean Delvare <khali@linux-fr.org> | 2010-03-02 06:23:43 -0500 |
| commit | e2ca307439fb9df922c3e8891289a2ac05812fb7 (patch) | |
| tree | fa99cfa8b0e261a673f208e44a140e3ee933b612 | |
| parent | b5527a7766f0505dc72efe3cefe5e9dea826f611 (diff) | |
i2c: Separate Kconfig option for i2c-smbus
Having a separate Kconfig option for i2c-smbus makes it possible to
build that support as a module even when i2c-core itself is built-in.
Bus drivers which implement SMBus alert should select this option, so
in most cases this option is hidden and the user doesn't have to care
about it.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Trent Piepho <tpiepho@freescale.com>
| -rw-r--r-- | drivers/i2c/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/i2c/Makefile | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 8d8a00e5a30e..02ce9cff5fcf 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig | |||
| @@ -61,6 +61,16 @@ config I2C_HELPER_AUTO | |||
| 61 | 61 | ||
| 62 | In doubt, say Y. | 62 | In doubt, say Y. |
| 63 | 63 | ||
| 64 | config I2C_SMBUS | ||
| 65 | tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO | ||
| 66 | help | ||
| 67 | Say Y here if you want support for SMBus extensions to the I2C | ||
| 68 | specification. At the moment, the only supported extension is | ||
| 69 | the SMBus alert protocol. | ||
| 70 | |||
| 71 | This support is also available as a module. If so, the module | ||
| 72 | will be called i2c-smbus. | ||
| 73 | |||
| 64 | source drivers/i2c/algos/Kconfig | 74 | source drivers/i2c/algos/Kconfig |
| 65 | source drivers/i2c/busses/Kconfig | 75 | source drivers/i2c/busses/Kconfig |
| 66 | source drivers/i2c/chips/Kconfig | 76 | source drivers/i2c/chips/Kconfig |
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile index 7111c93bd3e6..acd0250c16a0 100644 --- a/drivers/i2c/Makefile +++ b/drivers/i2c/Makefile | |||
| @@ -3,7 +3,8 @@ | |||
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o | 5 | obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o |
| 6 | obj-$(CONFIG_I2C) += i2c-core.o i2c-smbus.o | 6 | obj-$(CONFIG_I2C) += i2c-core.o |
| 7 | obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o | ||
| 7 | obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o | 8 | obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o |
| 8 | obj-y += busses/ chips/ algos/ | 9 | obj-y += busses/ chips/ algos/ |
| 9 | 10 | ||
