[PATCH 0/2] Make mc146818rtc more self-contained

Bernhard Beschow posted 2 patches 4 years ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220205175913.31738-1-shentey@gmail.com
Maintainers: Aurelien Jarno <aurelien@aurel32.net>, "Michael S. Tsirkin" <mst@redhat.com>, "Hervé Poussineau" <hpoussin@reactos.org>, Paolo Bonzini <pbonzini@redhat.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>
hw/isa/piix4.c               | 15 +--------------
hw/rtc/mc146818rtc.c         | 34 ++++++++++++++++++++++++++++++++++
include/hw/rtc/mc146818rtc.h | 35 +----------------------------------
3 files changed, 36 insertions(+), 48 deletions(-)
[PATCH 0/2] Make mc146818rtc more self-contained
Posted by Bernhard Beschow 4 years ago
The internal state of mc146818rtc is currently exported as RTCState. This
violates encapsulation. Resolve it by first converting the last external user,
then by unexporting RTCState.

Bernhard Beschow (2):
  isa/piix4: Resolve RTCState attribute
  mc146818rtc: Unexport RTCState

 hw/isa/piix4.c               | 15 +--------------
 hw/rtc/mc146818rtc.c         | 34 ++++++++++++++++++++++++++++++++++
 include/hw/rtc/mc146818rtc.h | 35 +----------------------------------
 3 files changed, 36 insertions(+), 48 deletions(-)

-- 
2.35.1