1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

crc: Fix code style with crc functions

Some of these have a space before the bracket. Drop it to fix the style.
Add some missing function comments while here.

Note that u32 and u8 cannot be used here since crc.h is included on the
host side.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass
2019-11-14 12:57:15 -07:00
committed by Tom Rini
parent c3a4d1c3ee
commit b2ea91ba57
4 changed files with 73 additions and 12 deletions

View File

@@ -768,7 +768,7 @@ static int do_i2c_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
#endif
if (ret)
err++;
crc = crc32 (crc, &byte, 1);
crc = crc32(crc, &byte, 1);
addr++;
}
if (err > 0)