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:
parent
c225cf3b8a
commit
5e5ea9a21d
21 changed files with 65 additions and 65 deletions
|
@ -537,7 +537,7 @@ static void uart_stm32_poll_out(const struct device *dev,
|
|||
#ifdef CONFIG_PM
|
||||
struct uart_stm32_data *data = dev->data;
|
||||
#endif
|
||||
int key;
|
||||
unsigned int key;
|
||||
|
||||
/* Wait for TXE flag to be raised
|
||||
* When TXE flag is raised, we lock interrupts to prevent interrupts (notably that of usart)
|
||||
|
@ -649,7 +649,7 @@ static int uart_stm32_fifo_fill(const struct device *dev,
|
|||
{
|
||||
const struct uart_stm32_config *config = dev->config;
|
||||
uint8_t num_tx = 0U;
|
||||
int key;
|
||||
unsigned int key;
|
||||
|
||||
if (!LL_USART_IsActiveFlag_TXE(config->usart)) {
|
||||
return num_tx;
|
||||
|
@ -702,7 +702,7 @@ static void uart_stm32_irq_tx_enable(const struct device *dev)
|
|||
const struct uart_stm32_config *config = dev->config;
|
||||
#ifdef CONFIG_PM
|
||||
struct uart_stm32_data *data = dev->data;
|
||||
int key;
|
||||
unsigned int key;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
@ -723,7 +723,7 @@ static void uart_stm32_irq_tx_disable(const struct device *dev)
|
|||
const struct uart_stm32_config *config = dev->config;
|
||||
#ifdef CONFIG_PM
|
||||
struct uart_stm32_data *data = dev->data;
|
||||
int key;
|
||||
unsigned int key;
|
||||
|
||||
key = irq_lock();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue