pflash: make TYPE_CFI_PFLASH0{1,2} macros public
commit1a004c7fc8d9c9a4a4eb71b5717181f6fe5cf636
authorEfimov Vasily <real@ispras.ru>
Wed, 22 Jun 2016 12:24:48 +0000 (22 15:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 12:03:46 +0000 (29 14:03 +0200)
treeb5d4cbfe1739cc75b13c41576b8030768179b7c9
parent936a6447c8dbb7bfeb41b1007394f8ee34e69d34
pflash: make TYPE_CFI_PFLASH0{1,2} macros public

qdev API can be used to create CFI pflash devices despite existance of helper
functions. The type name is needed in course of such creation. Using the
preprocessor alias instead of the string literal itself is preferable.

The patch makes the aliases accessible through the header.

Signed-off-by: Efimov Vasily <real@ispras.ru>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
include/hw/block/flash.h