Staging: gdm724x: hci: Changed camel-case to snake-case.
PATCH 1/1 Staging: gdm724x: hci: Changed camel-case to snake-case.
Changed a variable name from camel to snake case to fix a coding style issue.
--- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm724x/hci_packet.h +1 -1
@@ -50,7 +50,7 @@ struct tlv {struct sdu_header {__dev16 cmd_evt;__dev16 len; -__dev32 dftEpsId; +__dev32 dft_eps_ID;__dev32 bearer_ID;__dev32 nic_type; } __packed;
Signature · 1 line
2.16.2
Quoted 13 lines · Quytelda Kahja
Changed a variable name from camel to snake case to fix a coding style issue.
Signed-off-by Quytelda Kahja <[email protected]>--- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/gdm724x/hci_packet.h +0
-0
drivers/staging/gdm724x/hci_packet.h struct tlv { · line 53
Quoted 5 lines
drivers/staging/gdm724x/hci_packet.h +1
-1@@ -50,7 +50,7 @@ struct tlv {struct sdu_header {__dev16 cmd_evt;__dev16 len; -__dev32 dftEpsId; +__dev32 dft_eps_ID;
I bet this is a part of the user space ABI or there is a specific reason for the name to match the spec or something so it can't be changed...
regards,
dan carpenter
That could be the case, though I'm not sure where to find any specs. Though looking through the history of this driver, it seems that some of the variable names have been slowly changing from camel case to snake case.
Thanks,
Quytelda Kahja
Quoted 26 lines · Dan Carpenter
Quoted 13 lines · Quytelda Kahja
Changed a variable name from camel to snake case to fix a coding style issue.
Signed-off-by Quytelda Kahja <[email protected]>--- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/gdm724x/hci_packet.h +0
-0drivers/staging/gdm724x/hci_packet.h struct tlv { · line 53
Quoted 5 lines
drivers/staging/gdm724x/hci_packet.h +1
-1@@ -50,7 +50,7 @@ struct tlv {struct sdu_header {__dev16 cmd_evt;__dev16 len; -__dev32 dftEpsId; +__dev32 dft_eps_ID;I bet this is a part of the user space ABI or there is a specific reason for the name to match the spec or something so it can't be changed...
regards,
dan carpenter
Quoted 5 lines · Quytelda Kahja
That could be the case, though I'm not sure where to find any specs. Though looking through the history of this driver, it seems that some of the variable names have been slowly changing from camel case to snake case.
Actually, that's fair enough. This either is never tested or it doesn't affect user space that much... The change isn't any different from other changes we've done.
regards,
dan carpenter
Greg KH
maintainerQuoted 9 lines · Dan Carpenter
Quoted 8 lines · Quytelda Kahja
Changed a variable name from camel to snake case to fix a coding style issue.
Signed-off-by Quytelda Kahja <[email protected]>--- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
drivers/staging/gdm724x/hci_packet.h struct tlv { · line 53
Quoted 10 lines
drivers/staging/gdm724x/hci_packet.h +1
-1@@ -50,7 +50,7 @@ struct tlv {struct sdu_header {__dev16 cmd_evt;__dev16 len; -__dev32 dftEpsId; +__dev32 dft_eps_ID;I bet this is a part of the user space ABI or there is a specific reason for the name to match the spec or something so it can't be changed...
This structure is not even used anywhere :(
Quytelda, can you just remove all unused structure definitions from this driver? That would be a much better patch here instead of changing a structure field that no one uses.
thanks,
greg k-h
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel