* [RFC] CamelCase can it be fixed per Checkpatch.pl script [not found] <ZjmsAVlZmA5sje/Y.ref@c> @ 2024-05-07 4:20 ` Ashok Kumar 2024-05-07 13:42 ` Dmitry Baryshkov 0 siblings, 1 reply; 2+ messages in thread From: Ashok Kumar @ 2024-05-07 4:20 UTC (permalink / raw) To: Greg Kroah-Hartman, dri-devel, linux-fbdev, linux-staging, linux-kernel, outreachy [-- Attachment #1: mtxt --] [-- Type: text/plain, Size: 500 bytes --] 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] CamelCase can it be fixed per Checkpatch.pl script 2024-05-07 4:20 ` [RFC] CamelCase can it be fixed per Checkpatch.pl script Ashok Kumar @ 2024-05-07 13:42 ` Dmitry Baryshkov 0 siblings, 0 replies; 2+ messages in thread From: Dmitry Baryshkov @ 2024-05-07 13:42 UTC (permalink / raw) To: Ashok Kumar Cc: Greg Kroah-Hartman, dri-devel, linux-fbdev, linux-staging, linux-kernel, outreachy On Mon, May 06, 2024 at 09:20:17PM -0700, Ashok Kumar wrote: > 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. 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. -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-07 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <ZjmsAVlZmA5sje/Y.ref@c>
2024-05-07 4:20 ` [RFC] CamelCase can it be fixed per Checkpatch.pl script Ashok Kumar
2024-05-07 13:42 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox