efi_loader: use type bool for event states
Queued and signaled describe boolean states of events. So let's use type bool and rename the structure members to is_queued and is_signaled. Update the comments for is_queued and is_signaled. Reported-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
037ee6f91b
commit
e190e8972f
@@ -136,8 +136,8 @@ struct efi_object {
|
||||
* @nofify_function: Function to call when the event is triggered
|
||||
* @notify_context: Data to be passed to the notify function
|
||||
* @trigger_type: Type of timer, see efi_set_timer
|
||||
* @queued: The notification functionis queued
|
||||
* @signaled: The event occured
|
||||
* @queued: The notification function is queued
|
||||
* @signaled: The event occurred. The event is in the signaled state.
|
||||
*/
|
||||
struct efi_event {
|
||||
uint32_t type;
|
||||
@@ -147,8 +147,8 @@ struct efi_event {
|
||||
u64 trigger_next;
|
||||
u64 trigger_time;
|
||||
enum efi_timer_delay trigger_type;
|
||||
int queued;
|
||||
int signaled;
|
||||
bool is_queued;
|
||||
bool is_signaled;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user