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:
parent
7d1bfb51ae
commit
493b6786ab
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue