Skip to contentSkip to conversation

CamelCase can it be fixed per Checkpatch.pl script

RFC Ashok Kumar 2 participants 2 messages May 7, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): ZjmsAVlZmA5sje/Y.ref@c

#1 lore raw

Found some files in Staging Drivers for which checkpatch.pl throws a CHECK to +remove CamelCase.

For instance in program vt6655/card.c find the usage of CamelCase as
i) Variable names eg: &priv->apTD0Rings[0]
ii) Function names eg: void CARDvSafeResetRx(

Note: some of the functions are
+static functions

Reviewed lore and seems in some instances removing CamelCase was allowed and in +some case removing them was disallowed.

Hence wanted comments if we should change them or not.

Thanks
Ashok

#2 lore raw
Quoted 7 lines · Ashok Kumar

Found some files in Staging Drivers for which checkpatch.pl throws a CHECK to +remove CamelCase.

For instance in program vt6655/card.c find the usage of CamelCase as
i) Variable names eg: &priv->apTD0Rings[0]
ii) Function names eg: void CARDvSafeResetRx(

Quoted 7 lines

Note: some of the functions are
+static functions

Reviewed lore and seems in some instances removing CamelCase was allowed and in +some case removing them was disallowed.

Hence wanted comments if we should change them or not.

It's better to work with the corresponding driver maintainer. Generic comment is that functions must be renamed, while variables / fields naming usually depends on the maintainer's decision.

Signature · 2 lines
With best wishes
Dmitry