From 493b6786abe5b7a670a93228e9d9884b7ba90d02 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 4 Nov 2021 15:57:33 +0100 Subject: [PATCH] drivers: timer: fix MISRA 5.7 violation A couple of drivers violated MISRA 5.7 rule (Tag name should be unique), triggering CI compliance errors. Signed-off-by: Gerard Marull-Paretas --- drivers/timer/mcux_os_timer.c | 4 ++-- drivers/timer/rcar_cmt_timer.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/timer/mcux_os_timer.c b/drivers/timer/mcux_os_timer.c index d732913403e..421499af5e3 100644 --- a/drivers/timer/mcux_os_timer.c +++ b/drivers/timer/mcux_os_timer.c @@ -110,9 +110,9 @@ uint64_t sys_clock_cycle_get_64(void) return OSTIMER_GetCurrentTimerValue(base); } -static int sys_clock_driver_init(const struct device *device) +static int sys_clock_driver_init(const struct device *dev) { - ARG_UNUSED(device); + ARG_UNUSED(dev); /* Configure event timer's ISR */ IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority), diff --git a/drivers/timer/rcar_cmt_timer.c b/drivers/timer/rcar_cmt_timer.c index d68fea0a248..0e81b8a2eca 100644 --- a/drivers/timer/rcar_cmt_timer.c +++ b/drivers/timer/rcar_cmt_timer.c @@ -84,13 +84,13 @@ uint32_t sys_clock_cycle_get_32(void) * The second one is used for cycles count, the match value is set * at max uint32_t. */ -static int sys_clock_driver_init(const struct device *device) +static int sys_clock_driver_init(const struct device *dev) { const struct device *clk; uint32_t reg_val; int i, ret; - ARG_UNUSED(device); + ARG_UNUSED(dev); clk = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0)); if (clk == NULL) { return -ENODEV;