Skip to content

Commit e2ca307

Browse files
author
Jean Delvare
committed
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>
1 parent b5527a7 commit e2ca307

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎drivers/i2c/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ config I2C_HELPER_AUTO
6161

6262
In doubt, say Y.
6363

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+
6474
source drivers/i2c/algos/Kconfig
6575
source drivers/i2c/busses/Kconfig
6676
source drivers/i2c/chips/Kconfig

‎drivers/i2c/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44

55
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
78
obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
89
obj-y += busses/ chips/ algos/
910

0 commit comments

Comments
 (0)