summaryrefslogtreecommitdiff
path: root/src/include/pc80
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-04 12:58:53 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-06 04:30:40 +0000
commit287910765d59441b325f97880f9ce584623ad009 (patch)
treeb3cb6164558d356d09a733f4601f40fcba9e86fa /src/include/pc80
parent19be7b569e5d0162c76774c33f86472eea0e6f5d (diff)
drivers/pc80/rtc: Swap cmos_write32() parameter order
Make it consistent with the more used cmos_write(). Change-Id: I9cf643c770e9819de08dbede48b73f3d4fe15bd7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38178 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/pc80')
-rw-r--r--src/include/pc80/mc146818rtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h
index aa50773750..a8221c7259 100644
--- a/src/include/pc80/mc146818rtc.h
+++ b/src/include/pc80/mc146818rtc.h
@@ -171,7 +171,7 @@ static inline u32 cmos_read32(u8 offset)
return value;
}
-static inline void cmos_write32(u8 offset, u32 value)
+static inline void cmos_write32(u32 value, u8 offset)
{
u8 i;
for (i = 0; i < sizeof(value); ++i)