diff options
| author | Tom Rini <[email protected]> | 2024-10-16 15:54:38 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-16 15:54:38 -0600 |
| commit | 98a36deb9ab7aaea70b0b0db47718100e08cf3e8 (patch) | |
| tree | c224ea18c371a89993455d988545a1693cc1bcd1 /include | |
| parent | 608a31bdec6284ad6f821226e4c62c9cd3052874 (diff) | |
| parent | 6cc6a2f6992ebe0c087a0da29d1ded3f8799d6ca (diff) | |
Merge patch series "some serial rx buffer patches"
Rasmus Villemoes <[email protected]> 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/[email protected]
Diffstat (limited to 'include')
| -rw-r--r-- | include/serial.h | 8 |
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 */ |
