[PATCH v3 1/4] wifi: libertas: fix capitalization in mrvl_ie_data struct
Doug Brown
doug at schmorgal.com
Mon Jan 16 22:37:18 PST 2023
On 1/16/2023 7:39 PM, Ping-Ke Shih wrote:
>
>
>> -----Original Message-----
>> From: Doug Brown <doug at schmorgal.com>
>> Sent: Tuesday, January 17, 2023 4:21 AM
>> To: Kalle Valo <kvalo at kernel.org>; David S. Miller <davem at davemloft.net>; Eric Dumazet
>> <edumazet at google.com>; Jakub Kicinski <kuba at kernel.org>; Paolo Abeni <pabeni at redhat.com>
>> Cc: Dan Williams <dcbw at redhat.com>; Simon Horman <simon.horman at corigine.com>;
>> libertas-dev at lists.infradead.org; linux-wireless at vger.kernel.org; netdev at vger.kernel.org; Doug Brown
>> <doug at schmorgal.com>
>> Subject: [PATCH v3 1/4] wifi: libertas: fix capitalization in mrvl_ie_data struct
>>
>> This struct is currently unused, but it will be used in future patches.
>> Fix the code style to not use camel case.
>>
>> Signed-off-by: Doug Brown <doug at schmorgal.com>
>> ---
>> drivers/net/wireless/marvell/libertas/types.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/wireless/marvell/libertas/types.h
>> b/drivers/net/wireless/marvell/libertas/types.h
>> index cd4ceb6f885d..398e3272e85f 100644
>> --- a/drivers/net/wireless/marvell/libertas/types.h
>> +++ b/drivers/net/wireless/marvell/libertas/types.h
>> @@ -105,7 +105,7 @@ struct mrvl_ie_header {
>>
>> struct mrvl_ie_data {
>> struct mrvl_ie_header header;
>> - u8 Data[1];
>> + u8 data[1];
>
> data[]. see [1]
>
> [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays
Hi Ping-Ke,
Thanks for the link. There are several other cases of this same syntax
for flexible trailing arrays in this file, so I will update this patch
in the next version of the series to fix them all.
>
>> } __packed;
>>
>> struct mrvl_ie_rates_param_set {
>> --
>> 2.34.1
>
More information about the libertas-dev
mailing list