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

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/imx-gpt: Fold <soc/imx/timer.h> into its only user

Only the imx-gpt timer driver makes use of enum imx_gpt_type that is
otherwise unused. Move its definition into the timer-imx-gpt driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230328100531.879485-3-u.kleine-koenig@pengutronix.de

authored by

Uwe Kleine-König and committed by
Daniel Lezcano
281bf6b9 011da162

+6 -17
+6 -1
drivers/clocksource/timer-imx-gpt.c
··· 16 16 #include <linux/of.h> 17 17 #include <linux/of_address.h> 18 18 #include <linux/of_irq.h> 19 - #include <soc/imx/timer.h> 20 19 21 20 /* 22 21 * There are 4 versions of the timer hardware on Freescale MXC hardware. ··· 24 25 * - MX25, MX31, MX35, MX37, MX51, MX6Q(rev1.0) 25 26 * - MX6DL, MX6SX, MX6Q(rev1.1+) 26 27 */ 28 + enum imx_gpt_type { 29 + GPT_TYPE_IMX1, /* i.MX1 */ 30 + GPT_TYPE_IMX21, /* i.MX21/27 */ 31 + GPT_TYPE_IMX31, /* i.MX31/35/25/37/51/6Q */ 32 + GPT_TYPE_IMX6DL, /* i.MX6DL/SX/SL */ 33 + }; 27 34 28 35 /* defines common for all i.MX */ 29 36 #define MXC_TCTL 0x00
-16
include/soc/imx/timer.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0-only */ 2 - /* 3 - * Copyright 2015 Linaro Ltd. 4 - */ 5 - 6 - #ifndef __SOC_IMX_TIMER_H__ 7 - #define __SOC_IMX_TIMER_H__ 8 - 9 - enum imx_gpt_type { 10 - GPT_TYPE_IMX1, /* i.MX1 */ 11 - GPT_TYPE_IMX21, /* i.MX21/27 */ 12 - GPT_TYPE_IMX31, /* i.MX31/35/25/37/51/6Q */ 13 - GPT_TYPE_IMX6DL, /* i.MX6DL/SX/SL */ 14 - }; 15 - 16 - #endif /* __SOC_IMX_TIMER_H__ */