[PATCH 0/3] hw/rtc: Rename RTCState -> MC146818RtcState and adapt API

Philippe Mathieu-Daudé posted 3 patches 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230210233116.80311-1-philmd@linaro.org
Maintainers: Sergio Lopez <slp@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Aurelien Jarno <aurelien@aurel32.net>, "Hervé Poussineau" <hpoussin@reactos.org>, Huacai Chen <chenhuacai@kernel.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>
hw/i386/microvm.c            |  28 ++++----
hw/i386/pc.c                 |  74 +++++++++++----------
hw/i386/x86.c                |   8 ++-
hw/isa/piix4.c               |   2 +-
hw/isa/vt82c686.c            |   2 +-
hw/ppc/prep.c                |  11 ++-
hw/rtc/mc146818rtc.c         | 125 +++++++++++++++++------------------
include/hw/rtc/mc146818rtc.h |  14 ++--
8 files changed, 132 insertions(+), 132 deletions(-)
[PATCH 0/3] hw/rtc: Rename RTCState -> MC146818RtcState and adapt API
Posted by Philippe Mathieu-Daudé 1 year, 2 months ago
rtc_get_memory() and rtc_set_memory() helpers only work with
MC146818 RTC devices, not any ISA device. Rename accordingly
including 'MC146818' in the method names.

Philippe Mathieu-Daudé (3):
  hw/rtc/mc146818rtc: Rename RTCState -> MC146818RtcState
  hw/rtc/mc146818rtc: Pass MC146818RtcState instead of ISADevice
    argument
  hw/rtc: Rename rtc_[get|set]_memory -> mc146818rtc_[get|set]_cmos_data

 hw/i386/microvm.c            |  28 ++++----
 hw/i386/pc.c                 |  74 +++++++++++----------
 hw/i386/x86.c                |   8 ++-
 hw/isa/piix4.c               |   2 +-
 hw/isa/vt82c686.c            |   2 +-
 hw/ppc/prep.c                |  11 ++-
 hw/rtc/mc146818rtc.c         | 125 +++++++++++++++++------------------
 include/hw/rtc/mc146818rtc.h |  14 ++--
 8 files changed, 132 insertions(+), 132 deletions(-)

-- 
2.38.1