Skip to contentSkip to conversation

clocksource/drivers/timer-ti-dm: Make timer_get_irq static

PATCH Applied Tony Lindgren 2 participants 2 messages Oct 28, 2022 – Dec 9, 2022 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource/drivers/timer-ti-dm: Make timer_get_irq static

We can make timer_get_irq() static as noted by Janusz. It is only used by omap_rproc_get_timer_irq() via platform data.

---
 drivers/clocksource/timer-ti-dm.c | 2 +-
 include/clocksource/timer-ti-dm.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/clocksource/timer-ti-dm.c +1 -1
@@ -643,7 +643,7 @@ static int omap_dm_timer_free(struct omap_dm_timer *cookie)
 	return 0;
 }
 
-int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
+static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
 {
 	struct dmtimer *timer = to_dmtimer(cookie);
 	if (timer)
include/clocksource/timer-ti-dm.h +0 -2
@@ -62,8 +62,6 @@
 struct omap_dm_timer {
 };
 
-int omap_dm_timer_get_irq(struct omap_dm_timer *timer);
-
 u32 omap_dm_timer_modify_idlect_mask(u32 inputmask);
 
 /*
Signature · 1 line
2.37.3
merge bot Applied
#1 lore raw
The following commit has been merged into the timers/core branch of tip:

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     dedb2aced3e958c6f4811d3e6b392652ff0eea01
Gitweb:        https://git.kernel.org/tip/dedb2aced3e958c6f4811d3e6b392652ff0eea01
Author:        Tony Lindgren <[email protected]>
AuthorDate:    Fri, 28 Oct 2022 13:36:04 +03:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Fri, 02 Dec 2022 13:16:46 +01:00

clocksource/drivers/timer-ti-dm: Make timer_get_irq static

We can make timer_get_irq() static as noted by Janusz. It is only used by omap_rproc_get_timer_irq() via platform data.

---
 drivers/clocksource/timer-ti-dm.c | 2 +-
 include/clocksource/timer-ti-dm.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/clocksource/timer-ti-dm.c +1 -1
index 00af1a8..eeeeb3c 100644
@@ -643,7 +643,7 @@ static int omap_dm_timer_free(struct omap_dm_timer *cookie)
 	return 0;
 }
 
-int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
+static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
 {
 	struct dmtimer *timer = to_dmtimer(cookie);
 	if (timer)
include/clocksource/timer-ti-dm.h +0 -2
index 77eceea..dcc1712 100644
@@ -62,8 +62,6 @@
 struct omap_dm_timer {
 };
 
-int omap_dm_timer_get_irq(struct omap_dm_timer *timer);
-
 u32 omap_dm_timer_modify_idlect_mask(u32 inputmask);
 
 /*