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
2 changed files with 4 additions and 4 deletions
|
@ -110,9 +110,9 @@ uint64_t sys_clock_cycle_get_64(void)
|
||||||
return OSTIMER_GetCurrentTimerValue(base);
|
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 */
|
/* Configure event timer's ISR */
|
||||||
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
|
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
|
* The second one is used for cycles count, the match value is set
|
||||||
* at max uint32_t.
|
* 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;
|
const struct device *clk;
|
||||||
uint32_t reg_val;
|
uint32_t reg_val;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
|
||||||
ARG_UNUSED(device);
|
ARG_UNUSED(dev);
|
||||||
clk = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0));
|
clk = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(0));
|
||||||
if (clk == NULL) {
|
if (clk == NULL) {
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue