arch/arm/src/efm32/efm32_leserial.c: Fix a type mismatch

Error: chip/efm32_leserial.c:189:21: error: initialization of 'int (*)(struct uart_dev_s *, unsigned int *)' from incompatible pointer type 'int (*)(struct uart_dev_s *, uint32_t *)' {aka 'int (*)(struct uart_dev_s *, long unsigned int *)'} [-Werror=incompatible-pointer-types]
  189 |   .receive        = efm32_receive,
      |                     ^~~~~~~~~~~~~
chip/efm32_leserial.c:189:21: note: (near initialization for 'g_leuart_ops.receive')
This commit is contained in:
YAMAMOTO Takashi 2020-11-09 20:11:04 +09:00 committed by Xiang Xiao
parent 1b4f65c7f2
commit d3779304b1
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ static int efm32_attach(struct uart_dev_s *dev);
static void efm32_detach(struct uart_dev_s *dev);
static int efm32_interrupt(int irq, void *context, FAR void *arg);
static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg);
static int efm32_receive(struct uart_dev_s *dev, uint32_t *status);
static int efm32_receive(struct uart_dev_s *dev, unsigned int *status);
static void efm32_rxint(struct uart_dev_s *dev, bool enable);
static bool efm32_rxavailable(struct uart_dev_s *dev);
static void efm32_send(struct uart_dev_s *dev, int ch);
@ -583,7 +583,7 @@ static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/
static int efm32_receive(struct uart_dev_s *dev, uint32_t *status)
static int efm32_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct efm32_leuart_s *priv = (struct efm32_leuart_s *)dev->priv;
uint32_t rxdatax;