Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Clearly mark ACPI drivers as such

Now that we have ACPI-based SMBus controller drivers, and we will start
telling users to use them instead of native drivers when I/O resources
conflict, I think it would be good to clearly mark ACPI drivers as such
in Kconfig.

This is exactly the same as we just did for hwmon drivers.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Crane Cai <crane.cai@amd.com>

+17 -12
+16 -11
drivers/i2c/busses/Kconfig
··· 232 232 This driver can also be built as a module. If so, the module 233 233 will be called i2c-viapro. 234 234 235 + if ACPI 236 + 237 + comment "ACPI drivers" 238 + 239 + config I2C_SCMI 240 + tristate "SMBus Control Method Interface" 241 + help 242 + This driver supports the SMBus Control Method Interface. It needs the 243 + BIOS to declare ACPI control methods as described in the SMBus Control 244 + Method Interface specification. 245 + 246 + To compile this driver as a module, choose M here: 247 + the module will be called i2c-scmi. 248 + 249 + endif # ACPI 250 + 235 251 comment "Mac SMBus host controller drivers" 236 252 depends on PPC_CHRP || PPC_PMAC 237 253 ··· 777 761 778 762 This support is also available as a module. If so, the module 779 763 will be called scx200_acb. 780 - 781 - config I2C_SCMI 782 - tristate "SMBus Control Method Interface" 783 - depends on ACPI 784 - help 785 - This driver supports the SMBus Control Method Interface. It needs the 786 - BIOS to declare ACPI control methods as described in the SMBus Control 787 - Method Interface specification. 788 - 789 - To compile this driver as a module, choose M here: 790 - the module will be called i2c-scmi. 791 764 792 765 endmenu
+1 -1
drivers/i2c/busses/Makefile
··· 2 2 # Makefile for the i2c bus drivers. 3 3 # 4 4 5 - # SMBus CMI driver 5 + # ACPI drivers 6 6 obj-$(CONFIG_I2C_SCMI) += i2c-scmi.o 7 7 8 8 # PC SMBus host controller drivers