diff options
author | Wolfgang Denk <wd@denx.de> | 2021-09-27 18:42:39 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-30 16:08:16 +0300 |
commit | 0cf207ec01cbacae47585fcc26591dd2296507d6 (patch) | |
tree | 573cfefc2ab21a033ae98fa2afbd57f1f6528496 /drivers/misc | |
parent | 0a50b3c97b3408e52589d873d4c7b54ad365a76c (diff) | |
download | u-boot-0cf207ec01cbacae47585fcc26591dd2296507d6.tar.xz |
WS cleanup: remove SPACE(s) followed by TAB
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/atsha204a-i2c.c | 30 | ||||
-rw-r--r-- | drivers/misc/cros_ec.c | 2 |
2 files changed, 16 insertions, 16 deletions
diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 52d9eadf49..715dabb279 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -2,8 +2,8 @@ * I2C Driver for Atmel ATSHA204 over I2C * * Copyright (C) 2014 Josh Datko, Cryptotronix, jbd@cryptotronix.com - * 2016 Tomas Hlavacek, CZ.NIC, tmshlvck@gmail.com - * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz + * 2016 Tomas Hlavacek, CZ.NIC, tmshlvck@gmail.com + * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as @@ -40,11 +40,11 @@ DECLARE_GLOBAL_DATA_PTR; * * int i, j; * for (i = 0; i < 256; ++i) { - * u8 c = 0; - * for (j = 0; j < 8; ++j) { - * c = (c << 1) | ((i >> j) & 1); - * } - * bitreverse_table[i] = c; + * u8 c = 0; + * for (j = 0; j < 8; ++j) { + * c = (c << 1) | ((i >> j) & 1); + * } + * bitreverse_table[i] = c; * } */ @@ -88,14 +88,14 @@ static u8 const bitreverse_table[256] = { * * int i, j; * for (i = 0; i < 256; ++i) { - * u16 c = i << 8; - * for (j = 0; j < 8; ++j) { - * int b = c >> 15; - * c <<= 1; - * if (b) - * c ^= 0x8005; - * } - * crc16_table[i] = c; + * u16 c = i << 8; + * for (j = 0; j < 8; ++j) { + * int b = c >> 15; + * c <<= 1; + * if (b) + * c ^= 0x8005; + * } + * crc16_table[i] = c; * } */ static u16 const crc16_table[256] = { diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 1bbc0f98ae..c627c1df6c 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -414,7 +414,7 @@ static int ec_command(struct udevice *dev, uint cmd, int cmd_version, int cros_ec_scan_keyboard(struct udevice *dev, struct mbkp_keyscan *scan) { - if (ec_command(dev, EC_CMD_MKBP_STATE, 0, NULL, 0, scan, + if (ec_command(dev, EC_CMD_MKBP_STATE, 0, NULL, 0, scan, sizeof(scan->data)) != sizeof(scan->data)) return -1; |