From: Joe Perches <joe@perches.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
Santiago Hormazabal <santiagohssl@gmail.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>,
Ezequiel Garcia <ezequiel@collabora.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] media: Add support for the AM/FM radio chip KT0913 from KT Micro.
Date: Fri, 17 Jul 2020 10:58:37 -0700 [thread overview]
Message-ID: <97fc1ed63f4b4d1b6b450acf0cfc2dcad84e9ca1.camel@perches.com> (raw)
In-Reply-To: <234961cc-f783-475c-d3db-69720a7da010@xs4all.nl>
On Fri, 2020-07-17 at 12:04 +0200, Hans Verkuil wrote:
> On 17/07/2020 11:51, Joe Perches wrote:
> > On Fri, 2020-07-17 at 11:29 +0200, Hans Verkuil wrote:
> > > It's standard linux codingstyle to use lowercase for hex numbers.
> > > Can you change that throughout the source for the next version?
> >
> > Is there a standard? It's not in coding-style.rst.
> >
> > While I prefer lowercase too, it seems the kernel has
> > only ~2:1 preference for lowercase to uppercase hex.
> >
> > $ git grep -ohP '\b0[xX][0-9a-f]+\b' | grep [a-f] | wc -l
> > 1149833
> > $ git grep -ohP '\b0[xX][0-9A-F]+\b' | grep [A-F] | wc -l
> > 575781
> >
> Well, it's indeed not a standard for the kernel as a whole, but certainly
> for drivers/media:
>
> $ git grep -ohP '\b0[xX][0-9a-f]+\b' drivers/media/ | grep [a-f] | wc -l
> 109272
> $ git grep -ohP '\b0[xX][0-9A-F]+\b' drivers/media/ | grep [A-F] | wc -l
> 22392
>
> The media subsystem has a 5:1 preference for lowercase. And uppercase is
> mostly found in older drivers.
> Still, I really prefer lowercase over uppercase, especially in new drivers.
That's certainly any maintainer's preference right.
Slightly unrelated:
The last 100k commits have only a ~2.5:1 use of
lowercase to uppercase hex constants.
While my cut-off for declaring something a generic
kernel style standard is also ~5:1, this isn't a
style check I would put into checkpatch as the
per-subsystem variability is quite high.
cheers, Joe
next prev parent reply other threads:[~2020-07-17 17:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 0:44 [PATCH 0/3] KT091 FM/AM driver Santiago Hormazabal
2020-07-17 0:44 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add KT Micro Santiago Hormazabal
2020-07-23 20:51 ` Rob Herring
2020-07-17 0:44 ` [PATCH 2/3] media: kt0913: device tree binding Santiago Hormazabal
2020-07-23 20:51 ` Rob Herring
2020-07-17 0:44 ` [PATCH 3/3] media: Add support for the AM/FM radio chip KT0913 from KT Micro Santiago Hormazabal
2020-07-17 9:29 ` Hans Verkuil
2020-07-17 9:51 ` Joe Perches
2020-07-17 10:04 ` Hans Verkuil
2020-07-17 17:58 ` Joe Perches [this message]
2020-07-17 15:10 ` Santiago Hormazabal
2020-08-03 2:09 [PATCH 0/3] KT0913 FM/AM driver Santiago Hormazabal
2020-08-03 2:09 ` [PATCH 3/3] media: Add support for the AM/FM radio chip KT0913 from KT Micro Santiago Hormazabal
2020-08-03 13:05 ` Hans Verkuil
2020-08-03 13:37 ` Santiago Hormazabal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=97fc1ed63f4b4d1b6b450acf0cfc2dcad84e9ca1.camel@perches.com \
--to=joe@perches.com \
--cc=devicetree@vger.kernel.org \
--cc=ezequiel@collabora.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=santiagohssl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).