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:
parent
94d60babaa
commit
c615ae56cb
1 changed files with 7 additions and 0 deletions
|
@ -82,6 +82,13 @@ unsigned char nsim_uart_poll_out(struct device *dev, unsigned char 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 = {
|
||||
.poll_out = nsim_uart_poll_out,
|
||||
.poll_in = nsim_uart_poll_in,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue