Searched hist:e3a46e3ee22876606254560ec4c10903074475c2 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | serial_bcm283x_mu.c | e3a46e3ee22876606254560ec4c10903074475c2 Thu Apr 14 04:29:52 UTC 2016 Stephen Warren <swarren@wwwdotorg.org> serial: bcm283x_mu: make pending values more explicit
dm_serial_ops.pending should return the number of characters, not just a valid C Boolean integer value. The existing code does already does this, but only as an accident since BCM283X_MU_LSR_RX_READY happens to be BIT(0). Enhance the code to be more explicit about the values it returns.
Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
|