mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
programmer: Smoothen register_opaque_master() API
It was impossible to register a const struct opaque_master that would point to dynamically allocated `data`. Fix that so that we won't have to create more mutable globals. BUG=b:185191942 TEST=builds Change-Id: Id3adb4cf04ae04dbe87ddb96f30871cb5f7c8ff0 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54170 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
6a5db26e68
commit
9309bed290
@ -725,7 +725,7 @@ struct opaque_master {
|
||||
int (*erase) (struct flashctx *flash, unsigned int blockaddr, unsigned int blocklen);
|
||||
void *data;
|
||||
};
|
||||
int register_opaque_master(const struct opaque_master *mst);
|
||||
int register_opaque_master(const struct opaque_master *mst, void *data);
|
||||
|
||||
/* programmer.c */
|
||||
void *fallback_map(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
|
Reference in New Issue
Block a user