serial: nsim: add dummy poll_in function

Both poll_in and poll_out are supposed to be implemented
in each driver, as these are basic function.

Change-Id: If1b6b11834f57934fe7e776bfcf818e088abdd0a
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2015-10-08 11:08:16 -07:00 committed by Anas Nashif
commit c615ae56cb

View file

@ -82,6 +82,13 @@ unsigned char nsim_uart_poll_out(struct device *dev, unsigned char c)
return c; return c;
} }
static int nsim_uart_poll_in(struct device *dev, unsigned char *c)
{
return -DEV_INVALID_OP;
}
static struct uart_driver_api nsim_uart_driver_api = { static struct uart_driver_api nsim_uart_driver_api = {
.poll_out = nsim_uart_poll_out, .poll_out = nsim_uart_poll_out,
.poll_in = nsim_uart_poll_in,
}; };