diff options
| author | David Brownell <david-b@pacbell.net> | 2007-07-17 07:05:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:09 -0400 |
| commit | 5663c14b4f3e22aece38970f9765ceb090efbb8c (patch) | |
| tree | 1a6b935a5465b1ed1c599705f14d122238fd7e88 /drivers/rtc/Kconfig | |
| parent | 4c4e139ee9d5169ba75a1b918949d95323bc17ea (diff) | |
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>
Diffstat (limited to 'drivers/rtc/Kconfig')
| -rw-r--r-- | drivers/rtc/Kconfig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 361b1f4feed0..25bea05ffaaa 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
| @@ -118,7 +118,7 @@ config RTC_DRV_TEST | |||
| 118 | will be called rtc-test. | 118 | will be called rtc-test. |
| 119 | 119 | ||
| 120 | comment "I2C RTC drivers" | 120 | comment "I2C RTC drivers" |
| 121 | depends on RTC_CLASS | 121 | depends on RTC_CLASS && I2C |
| 122 | 122 | ||
| 123 | config RTC_DRV_DS1307 | 123 | config RTC_DRV_DS1307 |
| 124 | tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00" | 124 | tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00" |
| @@ -213,11 +213,11 @@ config RTC_DRV_PCF8583 | |||
| 213 | will be called rtc-pcf8583. | 213 | will be called rtc-pcf8583. |
| 214 | 214 | ||
| 215 | comment "SPI RTC drivers" | 215 | comment "SPI RTC drivers" |
| 216 | depends on RTC_CLASS | 216 | depends on RTC_CLASS && SPI_MASTER |
| 217 | 217 | ||
| 218 | config RTC_DRV_RS5C348 | 218 | config RTC_DRV_RS5C348 |
| 219 | tristate "Ricoh RS5C348A/B" | 219 | tristate "Ricoh RS5C348A/B" |
| 220 | depends on RTC_CLASS && SPI | 220 | depends on RTC_CLASS && SPI_MASTER |
| 221 | help | 221 | help |
| 222 | If you say yes here you get support for the | 222 | If you say yes here you get support for the |
| 223 | Ricoh RS5C348A and RS5C348B RTC chips. | 223 | Ricoh RS5C348A and RS5C348B RTC chips. |
| @@ -227,7 +227,7 @@ config RTC_DRV_RS5C348 | |||
| 227 | 227 | ||
| 228 | config RTC_DRV_MAX6902 | 228 | config RTC_DRV_MAX6902 |
| 229 | tristate "Maxim 6902" | 229 | tristate "Maxim 6902" |
| 230 | depends on RTC_CLASS && SPI | 230 | depends on RTC_CLASS && SPI_MASTER |
| 231 | help | 231 | help |
| 232 | If you say yes here you will get support for the | 232 | If you say yes here you will get support for the |
| 233 | Maxim MAX6902 SPI RTC chip. | 233 | Maxim MAX6902 SPI RTC chip. |
