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 <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-04 15:57:33 +01:00 committed by Anas Nashif
parent 7d1bfb51ae
commit 493b6786ab
2 changed files with 4 additions and 4 deletions

View file

@ -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),

View file

@ -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;