Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Reported-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20221028103604.40385-1-tony@atomide.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>

authored by

Tony Lindgren and committed by
Daniel Lezcano
dedb2ace 9688498b

+1 -3
+1 -1
drivers/clocksource/timer-ti-dm.c
··· 643 643 return 0; 644 644 } 645 645 646 - int omap_dm_timer_get_irq(struct omap_dm_timer *cookie) 646 + static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie) 647 647 { 648 648 struct dmtimer *timer = to_dmtimer(cookie); 649 649 if (timer)
-2
include/clocksource/timer-ti-dm.h
··· 62 62 struct omap_dm_timer { 63 63 }; 64 64 65 - int omap_dm_timer_get_irq(struct omap_dm_timer *timer); 66 - 67 65 u32 omap_dm_timer_modify_idlect_mask(u32 inputmask); 68 66 69 67 /*