Parcourir la source

RTC Kconfig tweax

Minor fix to the Kconfig for RTCs: don't display section headers for I2C or
SPI unless they're configured.  And depend on SPI_MASTER; having slave
support wouldn't help.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
David Brownell il y a 18 ans
Parent
commit
5663c14b4f
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      drivers/rtc/Kconfig

+ 4 - 4
drivers/rtc/Kconfig

@@ -118,7 +118,7 @@ config RTC_DRV_TEST
 	  will be called rtc-test.
 	  will be called rtc-test.
 
 
 comment "I2C RTC drivers"
 comment "I2C RTC drivers"
-	depends on RTC_CLASS
+	depends on RTC_CLASS && I2C
 
 
 config RTC_DRV_DS1307
 config RTC_DRV_DS1307
 	tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
 	tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
@@ -213,11 +213,11 @@ config RTC_DRV_PCF8583
 	  will be called rtc-pcf8583.
 	  will be called rtc-pcf8583.
 
 
 comment "SPI RTC drivers"
 comment "SPI RTC drivers"
-	depends on RTC_CLASS
+	depends on RTC_CLASS && SPI_MASTER
 
 
 config RTC_DRV_RS5C348
 config RTC_DRV_RS5C348
 	tristate "Ricoh RS5C348A/B"
 	tristate "Ricoh RS5C348A/B"
-	depends on RTC_CLASS && SPI
+	depends on RTC_CLASS && SPI_MASTER
 	help
 	help
 	  If you say yes here you get support for the
 	  If you say yes here you get support for the
 	  Ricoh RS5C348A and RS5C348B RTC chips.
 	  Ricoh RS5C348A and RS5C348B RTC chips.
@@ -227,7 +227,7 @@ config RTC_DRV_RS5C348
 
 
 config RTC_DRV_MAX6902
 config RTC_DRV_MAX6902
 	tristate "Maxim 6902"
 	tristate "Maxim 6902"
-	depends on RTC_CLASS && SPI
+	depends on RTC_CLASS && SPI_MASTER
 	help
 	help
 	  If you say yes here you will get support for the
 	  If you say yes here you will get support for the
 	  Maxim MAX6902 SPI RTC chip.
 	  Maxim MAX6902 SPI RTC chip.