hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | hw/i386/pc: Get pflash MemoryRegion with sysbus_mmio_get_region()hw/ | +1 | 1 reply | |
| 2/4 | hw/mips/malta: Get pflash MemoryRegion with sysbus_mmio_get_region()hw/ | +1 | 0 replies | |
| 3/4 | hw/xtensa/xtfpga: Get pflash MemoryRegion with sysbus_mmio_get_region()hw/ | +2 | 1 reply | |
| 4/4 | hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()hw/ include/ | +0 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Max Filippov |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | A-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()
TYPE_PFLASH_CFI01 is a TYPE_SYS_BUS_DEVICE which registers its romd MemoryRegion with sysbus_init_mmio(), so we can use the generic sysbus_mmio_get_region() to get the region, no need for a specific pflash_cfi01_get_memory() helper.
First replace the few pflash_cfi01_get_memory() uses by sysbus_mmio_get_region(), then remove the now unused helper.
Philippe Mathieu-Daudé (4):
hw/i386/pc: Get pflash MemoryRegion with sysbus_mmio_get_region() hw/mips/malta: Get pflash MemoryRegion with sysbus_mmio_get_region() hw/xtensa/xtfpga: Get pflash MemoryRegion with
sysbus_mmio_get_region()
hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()
include/hw/block/flash.h | 1 - hw/block/pflash_cfi01.c | 5 ----- hw/i386/pc_sysfw.c | 2 +- hw/mips/malta.c | 2 +- hw/xtensa/xtfpga.c | 3 ++- 5 files changed, 4 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.2