[U-Boot] [PATCH 01/25] cros_ec: Use uint instead of u8 for parameters

sjg at google.com sjg at google.com
Thu Nov 22 20:20:52 UTC 2018


There is no advantage to using a u8 for function parameters. It forces
the compiler to mask values and can increase code size. Also the command
enum has been extended to 16 bits. Update the functions to use uint
instead.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/misc/cros_ec.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list