arch/arm/src/imx6/imx_serial.c: Fix a type mismatch
Error: chip/imx_serial.c:259: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] 259 | .receive = imx_receive, | ^~~~~~~~~~~ chip/imx_serial.c:259:21: note: (near initialization for 'g_uart_ops.receive')
This commit is contained in:
parent
d3779304b1
commit
9867c1b467
|
@ -231,7 +231,7 @@ static int imx_attach(struct uart_dev_s *dev);
|
|||
static void imx_detach(struct uart_dev_s *dev);
|
||||
static int imx_interrupt(int irq, void *context, FAR void *arg);
|
||||
static int imx_ioctl(struct file *filep, int cmd, unsigned long arg);
|
||||
static int imx_receive(struct uart_dev_s *dev, uint32_t *status);
|
||||
static int imx_receive(struct uart_dev_s *dev, unsigned int *status);
|
||||
static void imx_rxint(struct uart_dev_s *dev, bool enable);
|
||||
static bool imx_rxavailable(struct uart_dev_s *dev);
|
||||
static void imx_send(struct uart_dev_s *dev, int ch);
|
||||
|
@ -747,7 +747,7 @@ static int imx_ioctl(struct file *filep, int cmd, unsigned long arg)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int imx_receive(struct uart_dev_s *dev, uint32_t *status)
|
||||
static int imx_receive(struct uart_dev_s *dev, unsigned int *status)
|
||||
{
|
||||
struct imx_uart_s *priv = (struct imx_uart_s *)dev->priv;
|
||||
uint32_t rxd0;
|
||||
|
|
Loading…
Reference in New Issue