OSDN Git Service

hw/rtc: Rename rtc_[get|set]_memory -> mc146818rtc_[get|set]_cmos_data
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 10 Feb 2023 23:18:53 +0000 (00:18 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000 (22:29 +0100)
commit2d4bd81e396fb7d5f9af0c55be78a6af2f1fd19c
treed51177717e358d90d1bb49aa2f7491c999e514ff
parent55c86cb8038d8a2db792712fd27b4f486ee09c7a
hw/rtc: Rename rtc_[get|set]_memory -> mc146818rtc_[get|set]_cmos_data

rtc_get_memory() and rtc_set_memory() helpers only work with
TYPE_MC146818_RTC devices. 'memory' in their name refer to
the CMOS region. Rename them as mc146818rtc_get_cmos_data()
and mc146818rtc_set_cmos_data() to be explicit about what
they are doing.

Mechanical change doing:

  $ sed -i -e 's/rtc_set_memory/mc146818rtc_set_cmos_data/g' \
        $(git grep -wl rtc_set_memory)
  $ sed -i -e 's/rtc_get_memory/mc146818rtc_get_cmos_data/g' \
        $(git grep -wl rtc_get_memory)

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230210233116.80311-4-philmd@linaro.org>
hw/i386/microvm.c
hw/i386/pc.c
hw/i386/x86.c
hw/ppc/prep.c
hw/rtc/mc146818rtc.c
include/hw/rtc/mc146818rtc.h