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

drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines

Common #defines have been moved to "linux/fsl/ftm.h". Thus making use of
this file.
Also FTM_SC_CLK_SHIFT has been renamed to FTM_SC_CLK_MASK_SHIFT.

Reviewed-by: Esben Haabendal <esben@haabendal.dk>
Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Patrick Havelange and committed by
Greg Kroah-Hartman
d4c5c462 e590eb40

+2 -13
+2 -13
drivers/clocksource/timer-fsl-ftm.c
··· 19 19 #include <linux/of_irq.h> 20 20 #include <linux/sched_clock.h> 21 21 #include <linux/slab.h> 22 + #include <linux/fsl/ftm.h> 22 23 23 - #define FTM_SC 0x00 24 - #define FTM_SC_CLK_SHIFT 3 25 - #define FTM_SC_CLK_MASK (0x3 << FTM_SC_CLK_SHIFT) 26 - #define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_SHIFT) 27 - #define FTM_SC_PS_MASK 0x7 28 - #define FTM_SC_TOIE BIT(6) 29 - #define FTM_SC_TOF BIT(7) 30 - 31 - #define FTM_CNT 0x04 32 - #define FTM_MOD 0x08 33 - #define FTM_CNTIN 0x4C 34 - 35 - #define FTM_PS_MAX 7 24 + #define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_MASK_SHIFT) 36 25 37 26 struct ftm_clock_device { 38 27 void __iomem *clksrc_base;