Skip to contentSkip to conversation

rtc: rename core files

PATCH New Alexandre Belloni 1 participant 1 message Dec 31, 2018 Real time clock (RTC)

lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: rename core files

Rename core files so there is a clearer separation between the RTC core and the RTC drivers.

---
 drivers/rtc/Makefile                 | 8 ++++----
 drivers/rtc/{rtc-dev.c => dev.c}     | 0
 drivers/rtc/{rtc-lib.c => lib.c}     | 0
 drivers/rtc/{rtc-proc.c => proc.c}   | 0
 drivers/rtc/{rtc-sysfs.c => sysfs.c} | 0
 5 files changed, 4 insertions(+), 4 deletions(-)
 rename drivers/rtc/{rtc-dev.c => dev.c} (100%)
 rename drivers/rtc/{rtc-lib.c => lib.c} (100%)
 rename drivers/rtc/{rtc-proc.c => proc.c} (100%)
 rename drivers/rtc/{rtc-sysfs.c => sysfs.c} (100%)
drivers/rtc/Makefile +4 -4
index f97c05ef99db..df022d820bee 100644
@@ -5,7 +5,7 @@
 
 ccflags-$(CONFIG_RTC_DEBUG)	:= -DDEBUG
 
-obj-$(CONFIG_RTC_LIB)		+= rtc-lib.o
+obj-$(CONFIG_RTC_LIB)		+= lib.o
 obj-$(CONFIG_RTC_HCTOSYS)	+= hctosys.o
 obj-$(CONFIG_RTC_SYSTOHC)	+= systohc.o
 obj-$(CONFIG_RTC_CLASS)		+= rtc-core.o
@@ -17,9 +17,9 @@ rtc-core-y			+= rtc-efi-platform.o
 endif
 
 rtc-core-$(CONFIG_RTC_NVMEM)		+= nvmem.o
-rtc-core-$(CONFIG_RTC_INTF_DEV)		+= rtc-dev.o
-rtc-core-$(CONFIG_RTC_INTF_PROC)	+= rtc-proc.o
-rtc-core-$(CONFIG_RTC_INTF_SYSFS)	+= rtc-sysfs.o
+rtc-core-$(CONFIG_RTC_INTF_DEV)		+= dev.o
+rtc-core-$(CONFIG_RTC_INTF_PROC)	+= proc.o
+rtc-core-$(CONFIG_RTC_INTF_SYSFS)	+= sysfs.o
 
 # Keep the list ordered.
 
drivers/rtc/dev.c renamed from drivers/rtc/rtc-dev.c +0 -0
similarity index 100%
rename from drivers/rtc/rtc-dev.c
rename to drivers/rtc/dev.c
drivers/rtc/lib.c renamed from drivers/rtc/rtc-lib.c +0 -0
similarity index 100%
rename from drivers/rtc/rtc-lib.c
rename to drivers/rtc/lib.c
drivers/rtc/proc.c renamed from drivers/rtc/rtc-proc.c +0 -0
similarity index 100%
rename from drivers/rtc/rtc-proc.c
rename to drivers/rtc/proc.c
drivers/rtc/sysfs.c renamed from drivers/rtc/rtc-sysfs.c +0 -0
similarity index 100%
rename from drivers/rtc/rtc-sysfs.c
rename to drivers/rtc/sysfs.c
Signature · 1 line
2.20.1