mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
opaque_master: Add shutdown function in opaque_master struct
With this, register_opaque_master can take care of register_shutdown as well, and every opaque master only needs to call register_opaque_master instead of calling both register_opaque_master and register_shutdown. Next patches in the chain convert opaque masters to use new API. BUG=b:185191942 TEST=builds and ninja test from CB:56413 Change-Id: I34183e6bafc787eec54ee4a26b73a40803f3ce99 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/56823 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Nico Huber

parent
c87a770f5d
commit
c845e64b4f
@ -443,6 +443,7 @@ struct opaque_master {
|
||||
int (*read) (struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len);
|
||||
int (*write) (struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
|
||||
int (*erase) (struct flashctx *flash, unsigned int blockaddr, unsigned int blocklen);
|
||||
int (*shutdown)(void *data);
|
||||
void *data;
|
||||
};
|
||||
int register_opaque_master(const struct opaque_master *mst, void *data);
|
||||
|
Reference in New Issue
Block a user