提交 1f88e0a2 编写于 作者: J Jules Irenge 提交者: Hans de Goede

platform/x86: acer-wmi: use __packed instead of __attribute__((packed))

checkpatch.pl tool warns about using __attribute__((packed))
"WARNING: __packed is preferred over __attribute__((packed))"
To fix this __attribute__((packed)) is replaced by __packed
Signed-off-by: NJules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/20210912011741.30495-1-jbi.octave@gmail.comReviewed-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
上级 b0179b80
...@@ -138,7 +138,7 @@ struct event_return_value { ...@@ -138,7 +138,7 @@ struct event_return_value {
u16 reserved1; u16 reserved1;
u8 kbd_dock_state; u8 kbd_dock_state;
u8 reserved2; u8 reserved2;
} __attribute__((packed)); } __packed;
/* /*
* GUID3 Get Device Status device flags * GUID3 Get Device Status device flags
...@@ -172,33 +172,33 @@ struct func_input_params { ...@@ -172,33 +172,33 @@ struct func_input_params {
u8 app_status; /* Acer Device Status. LM, ePM, RF Button... */ u8 app_status; /* Acer Device Status. LM, ePM, RF Button... */
u8 app_mask; /* Bit mask to app_status */ u8 app_mask; /* Bit mask to app_status */
u8 reserved; u8 reserved;
} __attribute__((packed)); } __packed;
struct func_return_value { struct func_return_value {
u8 error_code; /* Error Code */ u8 error_code; /* Error Code */
u8 ec_return_value; /* EC Return Value */ u8 ec_return_value; /* EC Return Value */
u16 reserved; u16 reserved;
} __attribute__((packed)); } __packed;
struct wmid3_gds_set_input_param { /* Set Device Status input parameter */ struct wmid3_gds_set_input_param { /* Set Device Status input parameter */
u8 function_num; /* Function Number */ u8 function_num; /* Function Number */
u8 hotkey_number; /* Hotkey Number */ u8 hotkey_number; /* Hotkey Number */
u16 devices; /* Set Device */ u16 devices; /* Set Device */
u8 volume_value; /* Volume Value */ u8 volume_value; /* Volume Value */
} __attribute__((packed)); } __packed;
struct wmid3_gds_get_input_param { /* Get Device Status input parameter */ struct wmid3_gds_get_input_param { /* Get Device Status input parameter */
u8 function_num; /* Function Number */ u8 function_num; /* Function Number */
u8 hotkey_number; /* Hotkey Number */ u8 hotkey_number; /* Hotkey Number */
u16 devices; /* Get Device */ u16 devices; /* Get Device */
} __attribute__((packed)); } __packed;
struct wmid3_gds_return_value { /* Get Device Status return value*/ struct wmid3_gds_return_value { /* Get Device Status return value*/
u8 error_code; /* Error Code */ u8 error_code; /* Error Code */
u8 ec_return_value; /* EC Return Value */ u8 ec_return_value; /* EC Return Value */
u16 devices; /* Current Device Status */ u16 devices; /* Current Device Status */
u32 reserved; u32 reserved;
} __attribute__((packed)); } __packed;
struct hotkey_function_type_aa { struct hotkey_function_type_aa {
u8 type; u8 type;
...@@ -210,7 +210,7 @@ struct hotkey_function_type_aa { ...@@ -210,7 +210,7 @@ struct hotkey_function_type_aa {
u16 display_func_bitmap; u16 display_func_bitmap;
u16 others_func_bitmap; u16 others_func_bitmap;
u8 commun_fn_key_number; u8 commun_fn_key_number;
} __attribute__((packed)); } __packed;
/* /*
* Interface capability flags * Interface capability flags
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册