Skip to content

Commit

Permalink
spi: use menuconfig for CONFIG_SPI
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Guido <alessandro.guido@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alessandro Guido authored and Linus Torvalds committed Apr 28, 2008
1 parent 608dfdd commit 79d8c7a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
# nobody's needed a slave side API yet. The master-role API is not
# fully appropriate there, so it'd need some thought to do well.
#
menu "SPI support"
depends on HAS_IOMEM

config SPI
menuconfig SPI
bool "SPI support"
depends on HAS_IOMEM
help
The "Serial Peripheral Interface" is a low level synchronous
protocol. Chips that support SPI can have data transfer rates
Expand All @@ -28,9 +26,11 @@ config SPI
(half duplex), SSP, SSI, and PSP. This driver framework should
work with most such devices and controllers.

if SPI

config SPI_DEBUG
boolean "Debug support for SPI drivers"
depends on SPI && DEBUG_KERNEL
depends on DEBUG_KERNEL
help
Say "yes" to enable debug messaging (like dev_dbg and pr_debug),
sysfs, and debugfs support in SPI controller and protocol drivers.
Expand Down Expand Up @@ -245,5 +245,4 @@ config SPI_TLE62X0

# (slave support would go here)

endmenu # "SPI support"

endif # SPI

0 comments on commit 79d8c7a

Please sign in to comment.