pflash_cfi01: Add pflash_cfi01_get_blk() helper
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 8 Mar 2019 13:14:41 +0000 (14:14 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 11 Mar 2019 21:53:44 +0000 (22:53 +0100)
commite60cf76549a628d63f865fb6faeb1c7c0f390d0b
tree4cf40214686740948cca1344773dababe0f84b3c
parentcda4aa9a5a08777cf13e164c0543bd4888b8adce
pflash_cfi01: Add pflash_cfi01_get_blk() helper

Add an helper to access the opaque struct PFlashCFI01.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190308131445.17502-9-armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/pflash_cfi01.c
include/hw/block/flash.h