vboot/ui: remove validate_selection function
Given that we are sending the full vb2_ui_context into
UI-related functions, it's impossible to fully validate that
called functions don't modify UI state in unexpected ways.
Assume UI-related functions are mutating vb2_ui_context data
correctly. Screen init functions (see CL:2168072) will be
used to set selected_item and disabled_mask before displaying
a screen for the first time.
change_screen() is also changed to return a vb2_error_t value
to be more consistent with action functions.
TEST=make clean && make runtests
Signed-off-by: Joel Kitching <email@example.com>
Tested-by: Joel Kitching <firstname.lastname@example.org>
Commit-Queue: Yu-Ping Wu <email@example.com>
Reviewed-by: Joel Kitching <firstname.lastname@example.org>
Reviewed-by: Yu-Ping Wu <email@example.com>
3 files changed