summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-09 15:56:42 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:49:13 +0000
commite9f0c32f55805597efa4d1e7eae52316a02287e3 (patch)
tree2432eea1b358771bcedf48bb1156bf3f8ebac59a /common
parent4c21348244eb6992851df2460c04a9b85fee6ece (diff)
downloadchrome-ec-e9f0c32f55805597efa4d1e7eae52316a02287e3.tar.gz
Revert "UART: Add uart_put API"
This reverts commit b937f5c5b2bd54323b91f38be9650c975b00618c. BUG=b:200823466 TEST=make buildall -j Change-Id: I4980727049ca282ed82c45ed674eb7900f3665a5 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3273400 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/uart_buffering.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/common/uart_buffering.c b/common/uart_buffering.c
index fdf7f23634..7e2776e7a3 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -255,20 +255,6 @@ int uart_puts(const char *outstr)
return *outstr ? EC_ERROR_OVERFLOW : EC_SUCCESS;
}
-int uart_put(const char *out, int len)
-{
- /* Put all characters in the output buffer */
- while (len--) {
- if (__tx_char(NULL, *out++) != 0)
- break;
- }
-
- uart_tx_start();
-
- /* Successful if we consumed all output */
- return len ? EC_ERROR_OVERFLOW : EC_SUCCESS;
-}
-
int uart_vprintf(const char *format, va_list args)
{
int rv = vfnprintf(__tx_char, NULL, format, args);