efi_loader: EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.SetState() correct parameter

KeyToggleState is a pointer according to UEFI spec 2.8.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2019-05-18 17:07:52 +02:00
parent 1344f7d0f6
commit acee965263
2 changed files with 4 additions and 4 deletions

View file

@ -639,7 +639,7 @@ struct efi_simple_text_input_ex_protocol {
struct efi_event *wait_for_key_ex; struct efi_event *wait_for_key_ex;
efi_status_t (EFIAPI *set_state) ( efi_status_t (EFIAPI *set_state) (
struct efi_simple_text_input_ex_protocol *this, struct efi_simple_text_input_ex_protocol *this,
u8 key_toggle_state); u8 *key_toggle_state);
efi_status_t (EFIAPI *register_key_notify) ( efi_status_t (EFIAPI *register_key_notify) (
struct efi_simple_text_input_ex_protocol *this, struct efi_simple_text_input_ex_protocol *this,
struct efi_key_data *key_data, struct efi_key_data *key_data,

View file

@ -825,7 +825,7 @@ out:
* efi_cin_set_state() - set toggle key state * efi_cin_set_state() - set toggle key state
* *
* @this: instance of the EFI_SIMPLE_TEXT_INPUT_PROTOCOL * @this: instance of the EFI_SIMPLE_TEXT_INPUT_PROTOCOL
* @key_toggle_state: key toggle state * @key_toggle_state: pointer to key toggle state
* Return: status code * Return: status code
* *
* This function implements the SetState service of the * This function implements the SetState service of the
@ -836,9 +836,9 @@ out:
*/ */
static efi_status_t EFIAPI efi_cin_set_state( static efi_status_t EFIAPI efi_cin_set_state(
struct efi_simple_text_input_ex_protocol *this, struct efi_simple_text_input_ex_protocol *this,
u8 key_toggle_state) u8 *key_toggle_state)
{ {
EFI_ENTRY("%p, %u", this, key_toggle_state); EFI_ENTRY("%p, %p", this, key_toggle_state);
/* /*
* U-Boot supports multiple console input sources like serial and * U-Boot supports multiple console input sources like serial and
* net console for which a key toggle state cannot be set at all. * net console for which a key toggle state cannot be set at all.