lib:platform: Fix sbi_getc return type.
authorAtish Patra <atish.patra@wdc.com>
Thu, 28 Feb 2019 01:42:17 +0000 (17:42 -0800)
committerAnup Patel <anup@brainfault.org>
Tue, 5 Mar 2019 08:35:12 +0000 (14:05 +0530)
commit86cc9b8633bea3bc6fbda145424f871ea553af9e
treedd63e0eee35ed225059db03f36405842715792bb
parent05602e2bf4812533adcb7acb1a67e43726c0e7bb
lib:platform: Fix sbi_getc return type.

As per the current SBI specification, sbi_getc should return
an int instead of char.

In case of FIFO is empty, return -1 as per the specification.

Reported-by: Sergi Granell <xerpi.g.12@gmail.com>
Suggested-by:Thadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_console.h
include/sbi/sbi_platform.h
lib/sbi_console.c
platform/common/include/plat/serial/sifive-uart.h
platform/common/include/plat/serial/uart8250.h
platform/common/serial/sifive-uart.c
platform/common/serial/uart8250.c
platform/kendryte/k210/platform.c
platform/kendryte/k210/uarths.c
platform/kendryte/k210/uarths.h
platform/template/platform.c