]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw: Use PFLASH_CFI0{1,2} and TYPE_PFLASH_CFI0{1,2}
authorMarkus Armbruster <armbru@redhat.com>
Fri, 8 Mar 2019 09:46:00 +0000 (10:46 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 30 Jul 2019 20:14:29 +0000 (15:14 -0500)
commitddacb784b33817dd33570b569bd75c6a2fb3dbec
treed5b7a99d94b0112b999cd6ac6cc279ee65c121df
parent03f130c682846a8fcd6cb52189e7a53897cbf51e
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 <armbru@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20190308094610.21210-6-armbru@redhat.com>
(cherry picked from commit 81c7db723ebd0c677784a728020c7e8845868daf)
*prereq for 3a283507
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
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