aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/elog/boot_count.c
diff options
context:
space:
mode:
authorFrans Hendriks <fhendriks@eltan.com>2021-01-27 09:23:59 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-01-28 09:18:00 +0000
commita4ecf9654e5ee84958dc8dfea3c1391da61bd263 (patch)
tree32fb28fb224fae4c06baaf3948274cf88f6ae059 /src/drivers/elog/boot_count.c
parent9d732d3462a200661bdea0bca52d34559daaaf10 (diff)
drivers/elog: Correct code style
lint report errors Solve the POINTER_LOCATION errors BUG = N/A TEST = N/A Change-Id: I65926abd6bbaff1efce39efad9ec92c4f364b533 Signed-off-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49971 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/elog/boot_count.c')
-rw-r--r--src/drivers/elog/boot_count.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/elog/boot_count.c b/src/drivers/elog/boot_count.c
index 9da62127dc..17d928a451 100644
--- a/src/drivers/elog/boot_count.c
+++ b/src/drivers/elog/boot_count.c
@@ -37,7 +37,7 @@ static int boot_count_cmos_read(struct boot_count *bc)
u8 i, *p;
u16 csum;
- for (p = (u8*)bc, i = 0; i < sizeof(*bc); i++, p++)
+ for (p = (u8 *)bc, i = 0; i < sizeof(*bc); i++, p++)
*p = cmos_read(BOOT_COUNT_CMOS_OFFSET + i);
/* Verify signature */
@@ -66,7 +66,7 @@ static void boot_count_cmos_write(struct boot_count *bc)
bc->checksum = compute_ip_checksum(
bc, offsetof(struct boot_count, checksum));
- for (p = (u8*)bc, i = 0; i < sizeof(*bc); i++, p++)
+ for (p = (u8 *)bc, i = 0; i < sizeof(*bc); i++, p++)
cmos_write(*p, BOOT_COUNT_CMOS_OFFSET + i);
}