programmer.h: Convert anon union to anon struct
Convert the anon union of registered masters in the mst
field of the flashctx to a anon struct. If we are going
to dereference a pointer there in an undefined way we
should crash and not plow ahead with invalid memory.
The user of the registered_masters type is therefore
responsible for querying the buses_supported field before
attempting to dereference a ptr field in the anon struct.
TEST=`flashrom -p internal --flash-name`
Signed-off-by: Edward O'Callaghan <firstname.lastname@example.org>
Reviewed-by: Anastasia Klimchuk <email@example.com>
Reviewed-by: Peter Marheine <firstname.lastname@example.org>
Reviewed-by: Daniel Campello <email@example.com>
Reviewed-by: Sam McNally <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
4 files changed