cmos: Rename the CMOS related functions.
Most of the code related to the mc146818 is not related to the RTC and is really for managing the CMOS storage. Since we intend to add a generic API for RTC drivers it's inconvenient for those functions to have an rtc_ prefix. This CL renames those functions so they start with cmos_ instead. There are some places where rtc_init was called with a comment that says something about starting the RTC. That wasn't correct before (the RTC is always running), but it looks a little odd now that the function is called cmos_init. This CL also opportunistically cleans up some style problems in this file. BUG=None TEST=Built for link. Built for nyan. BRANCH=nyan Change-Id: Id4b9f6bea93e8bd5eaef2cb17f296adb9697114c Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/197794 Reviewed-by: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
a7c69981b1
commit
9a9ad24888
36 changed files with 131 additions and 128 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef PC80_MC146818RTC_H
|
||||
#define PC80_MC146818RTC_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef RTC_BASE_PORT
|
||||
#define RTC_BASE_PORT 0x70
|
||||
#endif
|
||||
|
|
@ -168,8 +170,8 @@ static inline void cmos_write32(u8 offset, u32 value)
|
|||
#endif
|
||||
|
||||
#if !defined(__ROMCC__)
|
||||
void rtc_init(int invalid);
|
||||
void rtc_check_update_cmos_date(u8 has_century);
|
||||
void cmos_init(int invalid);
|
||||
void cmos_check_update_date(u8 has_century);
|
||||
#if CONFIG_USE_OPTION_TABLE
|
||||
int set_option(const char *name, void *val);
|
||||
int get_option(void *dest, const char *name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue