summaryrefslogtreecommitdiff
path: root/include/serial.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-10-16 15:54:38 -0600
committerTom Rini <trini@konsulko.com>2024-10-16 15:54:38 -0600
commit98a36deb9ab7aaea70b0b0db47718100e08cf3e8 (patch)
treec224ea18c371a89993455d988545a1693cc1bcd1 /include/serial.h
parent608a31bdec6284ad6f821226e4c62c9cd3052874 (diff)
parent6cc6a2f6992ebe0c087a0da29d1ded3f8799d6ca (diff)
Merge patch series "some serial rx buffer patches"
Rasmus Villemoes <ravi@prevas.dk> says: Some small improvements to the serial rx buffer feature. CI seems happy: https://github.com/u-boot/u-boot/pull/674 Link: https://lore.kernel.org/r/20241003141029.920035-1-ravi@prevas.dk
Diffstat (limited to 'include/serial.h')
-rw-r--r--include/serial.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/serial.h b/include/serial.h
index d129dc3253c..eabc49f820f 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -298,9 +298,11 @@ struct dm_serial_ops {
struct serial_dev_priv {
struct stdio_dev *sdev;
- char *buf;
- int rd_ptr;
- int wr_ptr;
+#if CONFIG_IS_ENABLED(SERIAL_RX_BUFFER)
+ char buf[CONFIG_SERIAL_RX_BUFFER_SIZE];
+ uint rd_ptr;
+ uint wr_ptr;
+#endif
};
/* Access the serial operations for a device */