Skip to content

Commit

Permalink
Use menuconfig objects - I2C
Browse files Browse the repository at this point in the history
Allow the whole I2C menu to be disabled at once without diving into
the submenus for deselecting all options (should the user desire so).

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Jan Engelhardt authored and Jean Delvare committed May 1, 2007
1 parent b86a1bc commit 16538e6
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 75 deletions.
15 changes: 4 additions & 11 deletions drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# I2C subsystem configuration
#

menu "I2C support"

config I2C
menuconfig I2C
tristate "I2C support"
---help---
I2C (pronounce: I-square-C) is a slow serial bus protocol used in
Expand All @@ -22,14 +20,14 @@ config I2C
This I2C support can also be built as a module. If so, the module
will be called i2c-core.

if I2C

config I2C_BOARDINFO
boolean
depends on I2C
default y

config I2C_CHARDEV
tristate "I2C device interface"
depends on I2C
help
Say Y here to use i2c-* device files, usually found in the /dev
directory on your system. They make it possible to have user-space
Expand All @@ -45,15 +43,13 @@ source drivers/i2c/chips/Kconfig

config I2C_DEBUG_CORE
bool "I2C Core debugging messages"
depends on I2C
help
Say Y here if you want the I2C core to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with I2C support and want to see more of what is going on.

config I2C_DEBUG_ALGO
bool "I2C Algorithm debugging messages"
depends on I2C
help
Say Y here if you want the I2C algorithm drivers to produce a bunch
of debug messages to the system log. Select this if you are having
Expand All @@ -62,7 +58,6 @@ config I2C_DEBUG_ALGO

config I2C_DEBUG_BUS
bool "I2C Bus debugging messages"
depends on I2C
help
Say Y here if you want the I2C bus drivers to produce a bunch of
debug messages to the system log. Select this if you are having
Expand All @@ -71,12 +66,10 @@ config I2C_DEBUG_BUS

config I2C_DEBUG_CHIP
bool "I2C Chip debugging messages"
depends on I2C
help
Say Y here if you want the I2C chip drivers to produce a bunch of
debug messages to the system log. Select this if you are having
a problem with I2C support and want to see more of what is going
on.

endmenu

endif # I2C
8 changes: 2 additions & 6 deletions drivers/i2c/algos/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
#

menu "I2C Algorithms"
depends on I2C

config I2C_ALGOBIT
tristate "I2C bit-banging interfaces"
depends on I2C
help
This allows you to use a range of I2C adapters called bit-banging
adapters. Say Y if you own an I2C adapter belonging to this class
Expand All @@ -18,7 +16,6 @@ config I2C_ALGOBIT

config I2C_ALGOPCF
tristate "I2C PCF 8584 interfaces"
depends on I2C
help
This allows you to use a range of I2C adapters called PCF adapters.
Say Y if you own an I2C adapter belonging to this class and then say
Expand All @@ -29,7 +26,6 @@ config I2C_ALGOPCF

config I2C_ALGOPCA
tristate "I2C PCA 9564 interfaces"
depends on I2C
help
This allows you to use a range of I2C adapters called PCA adapters.
Say Y if you own an I2C adapter belonging to this class and then say
Expand All @@ -40,11 +36,11 @@ config I2C_ALGOPCA

config I2C_ALGO8XX
tristate "MPC8xx CPM I2C interface"
depends on 8xx && I2C
depends on 8xx

config I2C_ALGO_SGI
tristate "I2C SGI interfaces"
depends on I2C && (SGI_IP22 || SGI_IP32 || X86_VISWS)
depends on SGI_IP22 || SGI_IP32 || X86_VISWS
help
Supports the SGI interfaces like the ones found on SGI Indy VINO
or SGI O2 MACE.
Expand Down
Loading

0 comments on commit 16538e6

Please sign in to comment.