Skip to content

Commit 8d24f8d

Browse files
Jean DelvareJean Delvare
authored andcommitted
i2c: Let users select algorithm drivers manually again
In kernel 2.6.26, the ability to select I2C algorithm drivers manually was removed, as all in-kernel drivers do that automatically. However there were some complaints that it was a problem for out-of-tree I2C bus drivers. In order to address these complaints, let's allow manual selection of these drivers again, but still hide them by default for better general user experience. This closes bug #11140: http://bugzilla.kernel.org/show_bug.cgi?id=11140 Signed-off-by: Jean Delvare <khali@linux-fr.org>
1 parent b25b791 commit 8d24f8d

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

drivers/i2c/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ config I2C_CHARDEV
3838
This support is also available as a module. If so, the module
3939
will be called i2c-dev.
4040

41+
config I2C_HELPER_AUTO
42+
bool "Autoselect pertinent helper modules"
43+
default y
44+
help
45+
Some I2C bus drivers require so-called "I2C algorithm" modules
46+
to work. These are basically software-only abstractions of generic
47+
I2C interfaces. This option will autoselect them so that you don't
48+
have to care.
49+
50+
Unselect this only if you need to enable additional helper
51+
modules, for example for use with external I2C bus drivers.
52+
53+
In doubt, say Y.
54+
4155
source drivers/i2c/algos/Kconfig
4256
source drivers/i2c/busses/Kconfig
4357
source drivers/i2c/chips/Kconfig

drivers/i2c/algos/Kconfig

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22
# I2C algorithm drivers configuration
33
#
44

5+
menu "I2C Algorithms"
6+
depends on !I2C_HELPER_AUTO
7+
58
config I2C_ALGOBIT
6-
tristate
9+
tristate "I2C bit-banging interfaces"
710

811
config I2C_ALGOPCF
9-
tristate
12+
tristate "I2C PCF 8584 interfaces"
1013

1114
config I2C_ALGOPCA
12-
tristate
15+
tristate "I2C PCA 9564 interfaces"
1316

1417
config I2C_ALGO_SGI
1518
tristate
1619
depends on SGI_IP22 || SGI_IP32 || X86_VISWS
20+
21+
endmenu

0 commit comments

Comments
 (0)