Skip to contentSkip to conversation

clocksource/drivers: Unify the names to timer-* format

PATCH In review Daniel Lezcano 2 participants 5 messages Sep 24, 2018

Subsystems (8)
lore
Share & tools
lore
#1 lore raw

PATCH 2/2 clocksource: Remove obsolete CLOCKSOURCE_OF_DECLARE

In reply to Daniel Lezcano

The macro CLOCKSOURCE_OF_DECLARE was renamed more TIMER_OF_DECLARE, and we kept an alias CLOCKSOURCE_OF_DECLARE in order to smooth the transition for drivers.

This change was done 1.5 year ago, we can reasonably remove this backward compatible macro as it is no longer used anywhere.

---
 include/linux/clocksource.h | 3 ---
 1 file changed, 3 deletions(-)
include/linux/clocksource.h +0 -3
index 3089189..4c58c1e 100644
@@ -257,9 +257,6 @@ extern int clocksource_i8253_init(void);
 #define TIMER_OF_DECLARE(name, compat, fn) \
 	OF_DECLARE_1_RET(timer, name, compat, fn)
 
-#define CLOCKSOURCE_OF_DECLARE(name, compat, fn) \
-	TIMER_OF_DECLARE(name, compat, fn)
-
 #ifdef CONFIG_TIMER_PROBE
 extern void timer_probe(void);
 #else
Signature · 1 line
2.7.4
#0 lore raw

PATCH 1/2 clocksource/drivers: Unify the names to timer-* format

In order to make some housekeeping in the directory, this patch renames drivers to the timer-* format in order to unify their names.

There is no functional changes.

---
 MAINTAINERS                               |  10 +-
 drivers/clocksource/Makefile              |  26 +-
 drivers/clocksource/cadence_ttc_timer.c   | 543 ------------------------------
 drivers/clocksource/fsl_ftm_timer.c       | 376 ---------------------
 drivers/clocksource/owl-timer.c           | 173 ----------
 drivers/clocksource/qcom-timer.c          | 258 --------------
 drivers/clocksource/time-armada-370-xp.c  | 416 -----------------------
 drivers/clocksource/time-efm32.c          | 287 ----------------
 drivers/clocksource/time-lpc32xx.c        | 314 -----------------
 drivers/clocksource/time-orion.c          | 192 -----------
 drivers/clocksource/time-pistachio.c      | 218 ------------
 drivers/clocksource/timer-armada-370-xp.c | 416 +++++++++++++++++++++++
 drivers/clocksource/timer-cadence-ttc.c   | 543 ++++++++++++++++++++++++++++++
 drivers/clocksource/timer-efm32.c         | 287 ++++++++++++++++
 drivers/clocksource/timer-fsl-ftm.c       | 376 +++++++++++++++++++++
 drivers/clocksource/timer-lpc32xx.c       | 314 +++++++++++++++++
 drivers/clocksource/timer-orion.c         | 192 +++++++++++
 drivers/clocksource/timer-owl.c           | 173 ++++++++++
 drivers/clocksource/timer-pistachio.c     | 218 ++++++++++++
 drivers/clocksource/timer-qcom.c          | 258 ++++++++++++++
 drivers/clocksource/timer-versatile.c     |  44 +++
 drivers/clocksource/timer-vf-pit.c        | 204 +++++++++++
 drivers/clocksource/timer-vt8500.c        | 168 +++++++++
 drivers/clocksource/timer-zevio.c         | 218 ++++++++++++
 drivers/clocksource/versatile.c           |  44 ---
 drivers/clocksource/vf_pit_timer.c        | 204 -----------
 drivers/clocksource/vt8500_timer.c        | 168 ---------
 drivers/clocksource/zevio-timer.c         | 218 ------------
 28 files changed, 3429 insertions(+), 3429 deletions(-)
 delete mode 100644 drivers/clocksource/cadence_ttc_timer.c
 delete mode 100644 drivers/clocksource/fsl_ftm_timer.c
 delete mode 100644 drivers/clocksource/owl-timer.c
 delete mode 100644 drivers/clocksource/qcom-timer.c
 delete mode 100644 drivers/clocksource/time-armada-370-xp.c
 delete mode 100644 drivers/clocksource/time-efm32.c
 delete mode 100644 drivers/clocksource/time-lpc32xx.c
 delete mode 100644 drivers/clocksource/time-orion.c
 delete mode 100644 drivers/clocksource/time-pistachio.c
 create mode 100644 drivers/clocksource/timer-armada-370-xp.c
 create mode 100644 drivers/clocksource/timer-cadence-ttc.c
 create mode 100644 drivers/clocksource/timer-efm32.c
 create mode 100644 drivers/clocksource/timer-fsl-ftm.c
 create mode 100644 drivers/clocksource/timer-lpc32xx.c
 create mode 100644 drivers/clocksource/timer-orion.c
 create mode 100644 drivers/clocksource/timer-owl.c
 create mode 100644 drivers/clocksource/timer-pistachio.c
 create mode 100644 drivers/clocksource/timer-qcom.c
 create mode 100644 drivers/clocksource/timer-versatile.c
 create mode 100644 drivers/clocksource/timer-vf-pit.c
 create mode 100644 drivers/clocksource/timer-vt8500.c
 create mode 100644 drivers/clocksource/timer-zevio.c
 delete mode 100644 drivers/clocksource/versatile.c
 delete mode 100644 drivers/clocksource/vf_pit_timer.c
 delete mode 100644 drivers/clocksource/vt8500_timer.c
 delete mode 100644 drivers/clocksource/zevio-timer.c
MAINTAINERS +5 -5
index a5b256b..67e877c 100644
@@ -1181,7 +1181,7 @@ N:	owl
 F:	arch/arm/mach-actions/
 F:	arch/arm/boot/dts/owl-*
 F:	arch/arm64/boot/dts/actions/
-F:	drivers/clocksource/owl-*
+F:	drivers/clocksource/timer-owl*
 F:	drivers/pinctrl/actions/*
 F:	drivers/soc/actions/
 F:	include/dt-bindings/power/owl-*
@@ -1604,7 +1604,7 @@ L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 F:	arch/arm/boot/dts/lpc43*
 F:	drivers/clk/nxp/clk-lpc18xx*
-F:	drivers/clocksource/time-lpc32xx.c
+F:	drivers/clocksource/timer-lpc32xx.c
 F:	drivers/i2c/busses/i2c-lpc2k.c
 F:	drivers/memory/pl172.c
 F:	drivers/mtd/spi-nor/nxp-spifi.c
@@ -2220,7 +2220,7 @@ F:	arch/arm/mach-vexpress/
 F:	*/*/vexpress*
 F:	*/*/*/vexpress*
 F:	drivers/clk/versatile/clk-vexpress-osc.c
-F:	drivers/clocksource/versatile.c
+F:	drivers/clocksource/timer-versatile.c
 N:	mps2
 
 ARM/VFP SUPPORT
@@ -2242,7 +2242,7 @@ M:	Tony Prisk <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 F:	arch/arm/mach-vt8500/
-F:	drivers/clocksource/vt8500_timer.c
+F:	drivers/clocksource/timer-vt8500.c
 F:	drivers/i2c/busses/i2c-wmt.c
 F:	drivers/mmc/host/wmt-sdmmc.c
 F:	drivers/pwm/pwm-vt8500.c
@@ -2307,7 +2307,7 @@ F:	drivers/cpuidle/cpuidle-zynq.c
 F:	drivers/block/xsysace.c
 N:	zynq
 N:	xilinx
-F:	drivers/clocksource/cadence_ttc_timer.c
+F:	drivers/clocksource/timer-cadence-ttc.c
 F:	drivers/i2c/busses/i2c-cadence.c
 F:	drivers/mmc/host/sdhci-of-arasan.c
 F:	drivers/edac/synopsys_edac.c
drivers/clocksource/Makefile +13 -13
index db51b24..e33b21d 100644
@@ -23,8 +23,8 @@ obj-$(CONFIG_FTTMR010_TIMER)	+= timer-fttmr010.o
 obj-$(CONFIG_ROCKCHIP_TIMER)      += rockchip_timer.o
 obj-$(CONFIG_CLKSRC_NOMADIK_MTU)	+= nomadik-mtu.o
 obj-$(CONFIG_CLKSRC_DBX500_PRCMU)	+= clksrc-dbx500-prcmu.o
-obj-$(CONFIG_ARMADA_370_XP_TIMER)	+= time-armada-370-xp.o
-obj-$(CONFIG_ORION_TIMER)	+= time-orion.o
+obj-$(CONFIG_ARMADA_370_XP_TIMER)	+= timer-armada-370-xp.o
+obj-$(CONFIG_ORION_TIMER)	+= timer-orion.o
 obj-$(CONFIG_BCM2835_TIMER)	+= bcm2835_timer.o
 obj-$(CONFIG_CLPS711X_TIMER)	+= clps711x-timer.o
 obj-$(CONFIG_ATLAS7_TIMER)	+= timer-atlas7.o
@@ -36,25 +36,25 @@ obj-$(CONFIG_SUN4I_TIMER)	+= sun4i_timer.o
 obj-$(CONFIG_SUN5I_HSTIMER)	+= timer-sun5i.o
 obj-$(CONFIG_MESON6_TIMER)	+= meson6_timer.o
 obj-$(CONFIG_TEGRA_TIMER)	+= tegra20_timer.o
-obj-$(CONFIG_VT8500_TIMER)	+= vt8500_timer.o
-obj-$(CONFIG_NSPIRE_TIMER)	+= zevio-timer.o
+obj-$(CONFIG_VT8500_TIMER)	+= timer-vt8500.o
+obj-$(CONFIG_NSPIRE_TIMER)	+= timer-zevio.o
 obj-$(CONFIG_BCM_KONA_TIMER)	+= bcm_kona_timer.o
-obj-$(CONFIG_CADENCE_TTC_TIMER)	+= cadence_ttc_timer.o
-obj-$(CONFIG_CLKSRC_EFM32)	+= time-efm32.o
+obj-$(CONFIG_CADENCE_TTC_TIMER)	+= timer-cadence-ttc.o
+obj-$(CONFIG_CLKSRC_EFM32)	+= timer-efm32.o
 obj-$(CONFIG_CLKSRC_STM32)	+= timer-stm32.o
 obj-$(CONFIG_CLKSRC_EXYNOS_MCT)	+= exynos_mct.o
-obj-$(CONFIG_CLKSRC_LPC32XX)	+= time-lpc32xx.o
+obj-$(CONFIG_CLKSRC_LPC32XX)	+= timer-lpc32xx.o
 obj-$(CONFIG_CLKSRC_MPS2)	+= mps2-timer.o
 obj-$(CONFIG_CLKSRC_SAMSUNG_PWM)	+= samsung_pwm_timer.o
-obj-$(CONFIG_FSL_FTM_TIMER)	+= fsl_ftm_timer.o
-obj-$(CONFIG_VF_PIT_TIMER)	+= vf_pit_timer.o
-obj-$(CONFIG_CLKSRC_QCOM)	+= qcom-timer.o
+obj-$(CONFIG_FSL_FTM_TIMER)	+= timer-fsl-ftm.o
+obj-$(CONFIG_VF_PIT_TIMER)	+= timer-vf-pit.o
+obj-$(CONFIG_CLKSRC_QCOM)	+= timer-qcom.o
 obj-$(CONFIG_MTK_TIMER)		+= timer-mediatek.o
-obj-$(CONFIG_CLKSRC_PISTACHIO)	+= time-pistachio.o
+obj-$(CONFIG_CLKSRC_PISTACHIO)	+= timer-pistachio.o
 obj-$(CONFIG_CLKSRC_TI_32K)	+= timer-ti-32k.o
 obj-$(CONFIG_CLKSRC_NPS)	+= timer-nps.o
 obj-$(CONFIG_OXNAS_RPS_TIMER)	+= timer-oxnas-rps.o
-obj-$(CONFIG_OWL_TIMER)		+= owl-timer.o
+obj-$(CONFIG_OWL_TIMER)		+= timer-owl.o
 obj-$(CONFIG_SPRD_TIMER)	+= timer-sprd.o
 obj-$(CONFIG_NPCM7XX_TIMER)	+= timer-npcm7xx.o
 
@@ -66,7 +66,7 @@ obj-$(CONFIG_ARM_TIMER_SP804)		+= timer-sp804.o
 obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST)	+= dummy_timer.o
 obj-$(CONFIG_KEYSTONE_TIMER)		+= timer-keystone.o
 obj-$(CONFIG_INTEGRATOR_AP_TIMER)	+= timer-integrator-ap.o
-obj-$(CONFIG_CLKSRC_VERSATILE)		+= versatile.o
+obj-$(CONFIG_CLKSRC_VERSATILE)		+= timer-versatile.o
 obj-$(CONFIG_CLKSRC_MIPS_GIC)		+= mips-gic-timer.o
 obj-$(CONFIG_CLKSRC_TANGO_XTAL)		+= tango_xtal.o
 obj-$(CONFIG_CLKSRC_IMX_GPT)		+= timer-imx-gpt.o
drivers/clocksource/cadence_ttc_timer.c deleted +0 -543

543 lines not on this page · raw message

drivers/clocksource/fsl_ftm_timer.c deleted +0 -376

376 lines not on this page · raw message

drivers/clocksource/owl-timer.c deleted +0 -173

173 lines not on this page · raw message

drivers/clocksource/qcom-timer.c deleted +0 -258

258 lines not on this page · raw message

drivers/clocksource/time-armada-370-xp.c deleted +0 -416

416 lines not on this page · raw message

drivers/clocksource/time-efm32.c deleted +0 -287

287 lines not on this page · raw message

drivers/clocksource/time-lpc32xx.c deleted +0 -314

314 lines not on this page · raw message

drivers/clocksource/time-orion.c deleted +0 -192

192 lines not on this page · raw message

drivers/clocksource/time-pistachio.c deleted +0 -218

218 lines not on this page · raw message

drivers/clocksource/timer-armada-370-xp.c new file +416 -0

130 lines not on this page · raw message

drivers/clocksource/timer-cadence-ttc.c new file +543 -0

543 lines not on this page · raw message

drivers/clocksource/timer-efm32.c new file +287 -0

287 lines not on this page · raw message

drivers/clocksource/timer-fsl-ftm.c new file +376 -0

376 lines not on this page · raw message

drivers/clocksource/timer-lpc32xx.c new file +314 -0

314 lines not on this page · raw message

drivers/clocksource/timer-orion.c new file +192 -0

192 lines not on this page · raw message

drivers/clocksource/timer-owl.c new file +173 -0

173 lines not on this page · raw message

drivers/clocksource/timer-pistachio.c new file +218 -0

218 lines not on this page · raw message

drivers/clocksource/timer-qcom.c new file +258 -0

258 lines not on this page · raw message

drivers/clocksource/timer-versatile.c new file +44 -0

44 lines not on this page · raw message

drivers/clocksource/timer-vf-pit.c new file +204 -0

204 lines not on this page · raw message

drivers/clocksource/timer-vt8500.c new file +168 -0

168 lines not on this page · raw message

drivers/clocksource/timer-zevio.c new file +218 -0

218 lines not on this page · raw message

drivers/clocksource/versatile.c deleted +0 -44

44 lines not on this page · raw message

drivers/clocksource/vf_pit_timer.c deleted +0 -204

204 lines not on this page · raw message

drivers/clocksource/vt8500_timer.c deleted +0 -168

168 lines not on this page · raw message

drivers/clocksource/zevio-timer.c deleted +0 -218

218 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.7.4

Part of the diff is not shown here. View the raw message.

#2 lore raw
Quoted 28 lines · Daniel Lezcano

In order to make some housekeeping in the directory, this patch renames drivers to the timer-* format in order to unify their names.

There is no functional changes.

---
 MAINTAINERS                               |  10 +-
 drivers/clocksource/Makefile              |  26 +-
 drivers/clocksource/cadence_ttc_timer.c   | 543 ------------------------------
 drivers/clocksource/fsl_ftm_timer.c       | 376 ---------------------
 drivers/clocksource/owl-timer.c           | 173 ----------
 drivers/clocksource/qcom-timer.c          | 258 --------------
 drivers/clocksource/time-armada-370-xp.c  | 416 -----------------------
 drivers/clocksource/time-efm32.c          | 287 ----------------
 drivers/clocksource/time-lpc32xx.c        | 314 -----------------
 drivers/clocksource/time-orion.c          | 192 -----------
 drivers/clocksource/time-pistachio.c      | 218 ------------
 drivers/clocksource/timer-armada-370-xp.c | 416 +++++++++++++++++++++++
 drivers/clocksource/timer-cadence-ttc.c   | 543 ++++++++++++++++++++++++++++++
 drivers/clocksource/timer-efm32.c         | 287 ++++++++++++++++
 drivers/clocksource/timer-fsl-ftm.c       | 376 +++++++++++++++++++++
 drivers/clocksource/timer-lpc32xx.c       | 314 +++++++++++++++++
 drivers/clocksource/timer-orion.c         | 192 +++++++++++
 drivers/clocksource/timer-owl.c           | 173 ++++++++++
 drivers/clocksource/timer-pistachio.c     | 218 ++++++++++++
 drivers/clocksource/timer-qcom.c          | 258 ++++++++++++++
 drivers/clocksource/timer-versatile.c     |  44 +++
Quoted 8 lines
 drivers/clocksource/timer-vf-pit.c        | 204 +++++++++++
 drivers/clocksource/timer-vt8500.c        | 168 +++++++++
 drivers/clocksource/timer-zevio.c         | 218 ++++++++++++
 drivers/clocksource/versatile.c           |  44 ---
 drivers/clocksource/vf_pit_timer.c        | 204 -----------
 drivers/clocksource/vt8500_timer.c        | 168 ---------
 drivers/clocksource/zevio-timer.c         | 218 ------------
 28 files changed, 3429 insertions(+), 3429 deletions(-)

Wow, with git format-patch -M this should look much smaller and so easier to review.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#3 lore raw
Quoted 38 lines · Uwe Kleine-K?nig
Quoted 28 lines · Daniel Lezcano

In order to make some housekeeping in the directory, this patch renames drivers to the timer-* format in order to unify their names.

There is no functional changes.

---
 MAINTAINERS                               |  10 +-
 drivers/clocksource/Makefile              |  26 +-
 drivers/clocksource/cadence_ttc_timer.c   | 543 ------------------------------
 drivers/clocksource/fsl_ftm_timer.c       | 376 ---------------------
 drivers/clocksource/owl-timer.c           | 173 ----------
 drivers/clocksource/qcom-timer.c          | 258 --------------
 drivers/clocksource/time-armada-370-xp.c  | 416 -----------------------
 drivers/clocksource/time-efm32.c          | 287 ----------------
 drivers/clocksource/time-lpc32xx.c        | 314 -----------------
 drivers/clocksource/time-orion.c          | 192 -----------
 drivers/clocksource/time-pistachio.c      | 218 ------------
 drivers/clocksource/timer-armada-370-xp.c | 416 +++++++++++++++++++++++
 drivers/clocksource/timer-cadence-ttc.c   | 543 ++++++++++++++++++++++++++++++
 drivers/clocksource/timer-efm32.c         | 287 ++++++++++++++++
 drivers/clocksource/timer-fsl-ftm.c       | 376 +++++++++++++++++++++
 drivers/clocksource/timer-lpc32xx.c       | 314 +++++++++++++++++
 drivers/clocksource/timer-orion.c         | 192 +++++++++++
 drivers/clocksource/timer-owl.c           | 173 ++++++++++
 drivers/clocksource/timer-pistachio.c     | 218 ++++++++++++
 drivers/clocksource/timer-qcom.c          | 258 ++++++++++++++
 drivers/clocksource/timer-versatile.c     |  44 +++
Quoted 8 lines
 drivers/clocksource/timer-vf-pit.c        | 204 +++++++++++
 drivers/clocksource/timer-vt8500.c        | 168 +++++++++
 drivers/clocksource/timer-zevio.c         | 218 ++++++++++++
 drivers/clocksource/versatile.c           |  44 ---
 drivers/clocksource/vf_pit_timer.c        | 204 -----------
 drivers/clocksource/vt8500_timer.c        | 168 ---------
 drivers/clocksource/zevio-timer.c         | 218 ------------
 28 files changed, 3429 insertions(+), 3429 deletions(-)
Quoted 2 lines

Wow, with git format-patch -M this should look much smaller and so easier to review.

Yes, I forgot the option :/

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#4 lore raw
Quoted 39 lines · Daniel Lezcano
Quoted 38 lines · Uwe Kleine-K?nig
Quoted 36 lines · Daniel Lezcano

In order to make some housekeeping in the directory, this patch renames drivers to the timer-* format in order to unify their names.

There is no functional changes.

---
 MAINTAINERS                               |  10 +-
 drivers/clocksource/Makefile              |  26 +-
 drivers/clocksource/cadence_ttc_timer.c   | 543 ------------------------------
 drivers/clocksource/fsl_ftm_timer.c       | 376 ---------------------
 drivers/clocksource/owl-timer.c           | 173 ----------
 drivers/clocksource/qcom-timer.c          | 258 --------------
 drivers/clocksource/time-armada-370-xp.c  | 416 -----------------------
 drivers/clocksource/time-efm32.c          | 287 ----------------
 drivers/clocksource/time-lpc32xx.c        | 314 -----------------
 drivers/clocksource/time-orion.c          | 192 -----------
 drivers/clocksource/time-pistachio.c      | 218 ------------
 drivers/clocksource/timer-armada-370-xp.c | 416 +++++++++++++++++++++++
 drivers/clocksource/timer-cadence-ttc.c   | 543 ++++++++++++++++++++++++++++++
 drivers/clocksource/timer-efm32.c         | 287 ++++++++++++++++
 drivers/clocksource/timer-fsl-ftm.c       | 376 +++++++++++++++++++++
 drivers/clocksource/timer-lpc32xx.c       | 314 +++++++++++++++++
 drivers/clocksource/timer-orion.c         | 192 +++++++++++
 drivers/clocksource/timer-owl.c           | 173 ++++++++++
 drivers/clocksource/timer-pistachio.c     | 218 ++++++++++++
 drivers/clocksource/timer-qcom.c          | 258 ++++++++++++++
 drivers/clocksource/timer-versatile.c     |  44 +++
 drivers/clocksource/timer-vf-pit.c        | 204 +++++++++++
 drivers/clocksource/timer-vt8500.c        | 168 +++++++++
 drivers/clocksource/timer-zevio.c         | 218 ++++++++++++
 drivers/clocksource/versatile.c           |  44 ---
 drivers/clocksource/vf_pit_timer.c        | 204 -----------
 drivers/clocksource/vt8500_timer.c        | 168 ---------
 drivers/clocksource/zevio-timer.c         | 218 ------------
 28 files changed, 3429 insertions(+), 3429 deletions(-)
Quoted 4 lines
Quoted 2 lines

Wow, with git format-patch -M this should look much smaller and so easier to review.

Yes, I forgot the option :/

I think you want:

git config diff.renames true

or a newer git (>= 2.9, which enabled that by default).

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |