drivers: device: do not reuse tag name 'device'
Do not reuse tag name (misra rule 5.7). Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a86505b450
commit
5d6c219210
47 changed files with 118 additions and 117 deletions
|
@ -30,7 +30,6 @@
|
|||
|
||||
static void litex_timer_irq_handler(const void *device)
|
||||
{
|
||||
ARG_UNUSED(device);
|
||||
int key = irq_lock();
|
||||
|
||||
sys_write8(TIMER_EV, TIMER_EV_PENDING_ADDR);
|
||||
|
@ -59,9 +58,9 @@ uint32_t sys_clock_elapsed(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int sys_clock_driver_init(const struct device *device)
|
||||
int sys_clock_driver_init(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(device);
|
||||
ARG_UNUSED(dev);
|
||||
IRQ_CONNECT(TIMER_IRQ, DT_INST_IRQ(0, priority),
|
||||
litex_timer_irq_handler, NULL, 0);
|
||||
irq_enable(TIMER_IRQ);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue