Commit 53d3a735 authored by Doug Brown's avatar Doug Brown Committed by Kalle Valo

wifi: libertas: fix code style in Marvell structs

Several of the structs are using the deprecated convention of items[1]
for a dynamically sized trailing element. Convert these structs to the
modern C99 style of items[]. Also fix a couple of camel case struct
element names.
Signed-off-by: default avatarDoug Brown <doug@schmorgal.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230123053132.30710-2-doug@schmorgal.com
parent f18bd6f5
...@@ -105,23 +105,23 @@ struct mrvl_ie_header { ...@@ -105,23 +105,23 @@ struct mrvl_ie_header {
struct mrvl_ie_data { struct mrvl_ie_data {
struct mrvl_ie_header header; struct mrvl_ie_header header;
u8 Data[1]; u8 data[];
} __packed; } __packed;
struct mrvl_ie_rates_param_set { struct mrvl_ie_rates_param_set {
struct mrvl_ie_header header; struct mrvl_ie_header header;
u8 rates[1]; u8 rates[];
} __packed; } __packed;
struct mrvl_ie_ssid_param_set { struct mrvl_ie_ssid_param_set {
struct mrvl_ie_header header; struct mrvl_ie_header header;
u8 ssid[1]; u8 ssid[];
} __packed; } __packed;
struct mrvl_ie_wildcard_ssid_param_set { struct mrvl_ie_wildcard_ssid_param_set {
struct mrvl_ie_header header; struct mrvl_ie_header header;
u8 MaxSsidlength; u8 maxssidlength;
u8 ssid[1]; u8 ssid[];
} __packed; } __packed;
struct chanscanmode { struct chanscanmode {
...@@ -146,7 +146,7 @@ struct chanscanparamset { ...@@ -146,7 +146,7 @@ struct chanscanparamset {
struct mrvl_ie_chanlist_param_set { struct mrvl_ie_chanlist_param_set {
struct mrvl_ie_header header; struct mrvl_ie_header header;
struct chanscanparamset chanscanparam[1]; struct chanscanparamset chanscanparam[];
} __packed; } __packed;
struct mrvl_ie_cf_param_set { struct mrvl_ie_cf_param_set {
...@@ -164,12 +164,12 @@ struct mrvl_ie_ds_param_set { ...@@ -164,12 +164,12 @@ struct mrvl_ie_ds_param_set {
struct mrvl_ie_rsn_param_set { struct mrvl_ie_rsn_param_set {
struct mrvl_ie_header header; struct mrvl_ie_header header;
u8 rsnie[1]; u8 rsnie[];
} __packed; } __packed;
struct mrvl_ie_tsf_timestamp { struct mrvl_ie_tsf_timestamp {
struct mrvl_ie_header header; struct mrvl_ie_header header;
__le64 tsftable[1]; __le64 tsftable[];
} __packed; } __packed;
/* v9 and later firmware only */ /* v9 and later firmware only */
...@@ -220,7 +220,7 @@ struct led_pin { ...@@ -220,7 +220,7 @@ struct led_pin {
struct mrvl_ie_ledgpio { struct mrvl_ie_ledgpio {
struct mrvl_ie_header header; struct mrvl_ie_header header;
struct led_pin ledpin[1]; struct led_pin ledpin[];
} __packed; } __packed;
struct led_bhv { struct led_bhv {
...@@ -233,7 +233,7 @@ struct led_bhv { ...@@ -233,7 +233,7 @@ struct led_bhv {
struct mrvl_ie_ledbhv { struct mrvl_ie_ledbhv {
struct mrvl_ie_header header; struct mrvl_ie_header header;
struct led_bhv ledbhv[1]; struct led_bhv ledbhv[];
} __packed; } __packed;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment