memory-device: drop get_region_size()
commitaf390027475a0ada7a9da71108d5aee6fcc18151
authorDavid Hildenbrand <david@redhat.com>
Fri, 5 Oct 2018 09:20:19 +0000 (5 11:20 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 24 Oct 2018 09:44:59 +0000 (24 06:44 -0300)
treecfa20288525dbbd2398dcec7ef98efda40d0fa40
parent3a0a2b0a2ba87ed00b732f061e59f890aaa27c17
memory-device: drop get_region_size()

There are no remaining users of get_region_size() except
memory_device_get_region_size() itself. We can make
memory_device_get_region_size() work directly on get_memory_region()
instead and drop get_region_size().

In addition, we can now use memory_device_get_region_size() in pc-dimm
code to implement get_plugged_size()"

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20181005092024.14344-12-david@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/mem/memory-device.c
hw/mem/pc-dimm.c
include/hw/mem/memory-device.h