Skip to contentSkip to conversation

Staging: gdm724x: hci: Changed camel-case to snake-case.

PATCH In review Quytelda Kahja 3 participants 5 messages Feb 21, 2018 – Feb 22, 2018 Staging

lore
Share & tools
lore
#0 lore raw

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
index 22ce8b9477b6..f8837c7103ac 100644
@@ -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
#1 lore raw
Quoted 13 lines · Quytelda Kahja

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 +0 -0
index 22ce8b9477b6..f8837c7103ac 100644

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

#2 lore raw

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.

---
 drivers/staging/gdm724x/hci_packet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm724x/hci_packet.h +0 -0
index 22ce8b9477b6..f8837c7103ac 100644

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

#3 lore raw
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

maintainer
#4 lore raw
In reply to Dan Carpenter
Quoted 9 lines · Dan Carpenter
Quoted 8 lines · Quytelda Kahja

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(-)
Quoted 13 lines

drivers/staging/gdm724x/hci_packet.h struct tlv { · line 53

Quoted 10 lines
drivers/staging/gdm724x/hci_packet.h +1 -1
index 22ce8b9477b6..f8837c7103ac 100644
@@ -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