From cbf957158806bcd5c733c45baa324559904c609c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 5 Jan 2020 08:05:45 +0200 Subject: drivers/pc80/rtc: Separate {get|set}_option() prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Long-term plan is to support loading runtime configuration from SPI flash as an alternative, so move these prototypes outside pc80/. Change-Id: Iad7b03dc985550da903d56b3deb5bd736013f8f1 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/38192 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/drivers/pc80/rtc/mc146818rtc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/pc80/rtc/mc146818rtc.c b/src/drivers/pc80/rtc/mc146818rtc.c index 715e440955..ee61a6c22d 100644 --- a/src/drivers/pc80/rtc/mc146818rtc.c +++ b/src/drivers/pc80/rtc/mc146818rtc.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -251,7 +252,7 @@ static enum cb_err locate_cmos_layout(struct region_device *rdev) return CB_SUCCESS; } -enum cb_err get_option(void *dest, const char *name) +enum cb_err cmos_get_option(void *dest, const char *name) { struct cmos_option_table *ct; struct region_device rdev; @@ -344,7 +345,7 @@ static enum cb_err set_cmos_value(unsigned long bit, unsigned long length, return CB_SUCCESS; } -enum cb_err set_option(const char *name, void *value) +enum cb_err cmos_set_option(const char *name, void *value) { struct cmos_option_table *ct; struct region_device rdev; -- cgit v1.2.3