serial: Change poll_out signature

poll_out function was returning the character that was sent. It
happens that it is always constant and the return of this functions is
never tested. Changing it to be a void function.

MISRA-C rule 17.7

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-11-26 16:43:46 -08:00 committed by Andrew Boie
commit 98d03266f1
30 changed files with 37 additions and 106 deletions

View file

@ -42,7 +42,7 @@ static int mcux_lpuart_poll_in(struct device *dev, unsigned char *c)
return ret;
}
static unsigned char mcux_lpuart_poll_out(struct device *dev, unsigned char c)
static void mcux_lpuart_poll_out(struct device *dev, unsigned char c)
{
const struct mcux_lpuart_config *config = dev->config->config_info;
@ -51,8 +51,6 @@ static unsigned char mcux_lpuart_poll_out(struct device *dev, unsigned char c)
;
LPUART_WriteByte(config->base, c);
return c;
}
static int mcux_lpuart_err_check(struct device *dev)