]> Git Repo - qemu.git/commit - hw/arm/vexpress.c
hw: Use PFLASH_CFI0{1,2} and TYPE_PFLASH_CFI0{1,2}
authorMarkus Armbruster <[email protected]>
Fri, 8 Mar 2019 09:46:00 +0000 (10:46 +0100)
committerMarkus Armbruster <[email protected]>
Mon, 11 Mar 2019 21:53:44 +0000 (22:53 +0100)
commit81c7db723ebd0c677784a728020c7e8845868daf
tree3094bc659ad728fb889bcbe308244771dec573a4
parente7b6274197c5f096860014ca750544d6aca0b9b9
hw: Use PFLASH_CFI0{1,2} and TYPE_PFLASH_CFI0{1,2}

We have two open-coded copies of macro PFLASH_CFI01().  Move the macro
to the header, so we can ditch the copies.  Move PFLASH_CFI02() to the
header for symmetry.

We define macros TYPE_PFLASH_CFI01 and TYPE_PFLASH_CFI02 for type name
strings, then mostly use the strings.  If the macros are worth
defining, they are worth using.  Replace the strings by the macros.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Message-Id: <20190308094610[email protected]>
hw/arm/vexpress.c
hw/arm/virt.c
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
hw/xtensa/xtfpga.c
include/hw/block/flash.h
This page took 0.026584 seconds and 4 git commands to generate.