Эх сурвалжийг харах

Cosmetic fixes to RTC subsystem's Kconfig

Add adds a warning if a potentially conflicting RTC option has been
selected and makes some other cosmetic fixes to the Kconfig.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Alessandro Zummo 17 жил өмнө
parent
commit
09b6bdb3b6
1 өөрчлөгдсөн 30 нэмэгдсэн , 26 устгасан
  1. 30 26
      drivers/rtc/Kconfig

+ 30 - 26
drivers/rtc/Kconfig

@@ -20,6 +20,10 @@ menuconfig RTC_CLASS
 
 
 if RTC_CLASS
 if RTC_CLASS
 
 
+if GEN_RTC || RTC
+comment "Conflicting RTC option has been selected, check GEN_RTC and RTC"
+endif
+
 config RTC_HCTOSYS
 config RTC_HCTOSYS
 	bool "Set system time from RTC on startup and resume"
 	bool "Set system time from RTC on startup and resume"
 	depends on RTC_CLASS = y
 	depends on RTC_CLASS = y
@@ -49,7 +53,7 @@ config RTC_HCTOSYS_DEVICE
 
 
 	  If the clock you specify here is not battery backed, it may still
 	  If the clock you specify here is not battery backed, it may still
 	  be useful to reinitialize system time when resuming from system
 	  be useful to reinitialize system time when resuming from system
-	  sleep states.  Do not specify an RTC here unless it stays powered
+	  sleep states. Do not specify an RTC here unless it stays powered
 	  during all this system's supported sleep states.
 	  during all this system's supported sleep states.
 
 
 config RTC_DEBUG
 config RTC_DEBUG
@@ -142,7 +146,7 @@ config RTC_DRV_DS1307
 	  will be called rtc-ds1307.
 	  will be called rtc-ds1307.
 
 
 config RTC_DRV_DS1374
 config RTC_DRV_DS1374
-	tristate "Maxim/Dallas Semiconductor DS1374 Real Time Clock"
+	tristate "Dallas/Maxim DS1374"
 	depends on RTC_CLASS && I2C
 	depends on RTC_CLASS && I2C
 	help
 	help
 	  If you say yes here you get support for Dallas Semiconductor
 	  If you say yes here you get support for Dallas Semiconductor
@@ -162,7 +166,7 @@ config RTC_DRV_DS1672
 	  will be called rtc-ds1672.
 	  will be called rtc-ds1672.
 
 
 config RTC_DRV_MAX6900
 config RTC_DRV_MAX6900
-	tristate "Maxim 6900"
+	tristate "Maxim MAX6900"
 	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 MAX6900 I2C RTC chip.
 	  Maxim MAX6900 I2C RTC chip.
@@ -180,10 +184,10 @@ config RTC_DRV_RS5C372
 	  will be called rtc-rs5c372.
 	  will be called rtc-rs5c372.
 
 
 config RTC_DRV_ISL1208
 config RTC_DRV_ISL1208
-	tristate "Intersil 1208"
+	tristate "Intersil ISL1208"
 	help
 	help
 	  If you say yes here you get support for the
 	  If you say yes here you get support for the
-	  Intersil 1208 RTC chip.
+	  Intersil ISL1208 RTC chip.
 
 
 	  This driver can also be built as a module. If so, the module
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-isl1208.
 	  will be called rtc-isl1208.
@@ -220,7 +224,7 @@ config RTC_DRV_PCF8583
 	  will be called rtc-pcf8583.
 	  will be called rtc-pcf8583.
 
 
 config RTC_DRV_M41T80
 config RTC_DRV_M41T80
-	tristate "ST M41T80 series RTC"
+	tristate "ST M41T80/81/82/83/84/85/87"
 	help
 	help
 	  If you say Y here you will get support for the
 	  If you say Y here you will get support for the
 	  ST M41T80 RTC chips series. Currently following chips are
 	  ST M41T80 RTC chips series. Currently following chips are
@@ -252,6 +256,15 @@ comment "SPI RTC drivers"
 
 
 if SPI_MASTER
 if SPI_MASTER
 
 
+config RTC_DRV_MAX6902
+	tristate "Maxim MAX6902"
+	help
+	  If you say yes here you will get support for the
+	  Maxim MAX6902 SPI RTC chip.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called rtc-max6902.
+
 config RTC_DRV_RS5C348
 config RTC_DRV_RS5C348
 	tristate "Ricoh RS5C348A/B"
 	tristate "Ricoh RS5C348A/B"
 	help
 	help
@@ -261,15 +274,6 @@ config RTC_DRV_RS5C348
 	  This driver can also be built as a module. If so, the module
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-rs5c348.
 	  will be called rtc-rs5c348.
 
 
-config RTC_DRV_MAX6902
-	tristate "Maxim 6902"
-	help
-	  If you say yes here you will get support for the
-	  Maxim MAX6902 SPI RTC chip.
-
-	  This driver can also be built as a module. If so, the module
-	  will be called rtc-max6902.
-
 endif # SPI_MASTER
 endif # SPI_MASTER
 
 
 comment "Platform RTC drivers"
 comment "Platform RTC drivers"
@@ -303,32 +307,32 @@ config RTC_DRV_DS1216
 	  If you say yes here you get support for the Dallas DS1216 RTC chips.
 	  If you say yes here you get support for the Dallas DS1216 RTC chips.
 
 
 config RTC_DRV_DS1553
 config RTC_DRV_DS1553
-	tristate "Dallas DS1553"
+	tristate "Maxim/Dallas DS1553"
 	help
 	help
 	  If you say yes here you get support for the
 	  If you say yes here you get support for the
-	  Dallas DS1553 timekeeping chip.
+	  Maxim/Dallas DS1553 timekeeping chip.
 
 
 	  This driver can also be built as a module. If so, the module
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-ds1553.
 	  will be called rtc-ds1553.
 
 
-config RTC_DRV_STK17TA8
-	tristate "Simtek STK17TA8"
-	depends on RTC_CLASS
+config RTC_DRV_DS1742
+	tristate "Maxim/Dallas DS1742/1743"
 	help
 	help
 	  If you say yes here you get support for the
 	  If you say yes here you get support for the
-	  Simtek STK17TA8 timekeeping chip.
+	  Maxim/Dallas DS1742/1743 timekeeping chip.
 
 
 	  This driver can also be built as a module. If so, the module
 	  This driver can also be built as a module. If so, the module
-	  will be called rtc-stk17ta8.
+	  will be called rtc-ds1742.
 
 
-config RTC_DRV_DS1742
-	tristate "Dallas DS1742/1743"
+config RTC_DRV_STK17TA8
+	tristate "Simtek STK17TA8"
+	depends on RTC_CLASS
 	help
 	help
 	  If you say yes here you get support for the
 	  If you say yes here you get support for the
-	  Dallas DS1742/1743 timekeeping chip.
+	  Simtek STK17TA8 timekeeping chip.
 
 
 	  This driver can also be built as a module. If so, the module
 	  This driver can also be built as a module. If so, the module
-	  will be called rtc-ds1742.
+	  will be called rtc-stk17ta8.
 
 
 config RTC_DRV_M48T86
 config RTC_DRV_M48T86
 	tristate "ST M48T86/Dallas DS12887"
 	tristate "ST M48T86/Dallas DS12887"