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:
parent
2b1d54e897
commit
98d03266f1
30 changed files with 37 additions and 106 deletions
|
@ -50,7 +50,7 @@ static int leuart_gecko_poll_in(struct device *dev, unsigned char *c)
|
|||
return -1;
|
||||
}
|
||||
|
||||
static unsigned char leuart_gecko_poll_out(struct device *dev, unsigned char c)
|
||||
static void leuart_gecko_poll_out(struct device *dev, unsigned char c)
|
||||
{
|
||||
LEUART_TypeDef *base = DEV_BASE(dev);
|
||||
|
||||
|
@ -58,8 +58,6 @@ static unsigned char leuart_gecko_poll_out(struct device *dev, unsigned char c)
|
|||
* and and waits for the bus to be free to transmit.
|
||||
*/
|
||||
LEUART_Tx(base, c);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static int leuart_gecko_err_check(struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue