mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
drivers: use unsigned int for irq_lock()
irq_lock() returns an unsigned integer key. Generated by spatch using semantic patch scripts/coccinelle/irq_lock.cocci Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
committed by
Mahesh Mahadevan
parent
c225cf3b8a
commit
5e5ea9a21d
@@ -245,7 +245,7 @@ static int notify_callback_set(const struct device *dev,
|
||||
edac_notify_callback_f cb)
|
||||
{
|
||||
struct ibecc_data *data = dev->data;
|
||||
int key = irq_lock();
|
||||
unsigned int key = irq_lock();
|
||||
|
||||
data->cb = cb;
|
||||
irq_unlock(key);
|
||||
|
||||
Reference in New Issue
Block a user