From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: ojeda@kernel.org,
"Jean-François Lessard" <jefflessard3@gmail.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Geert Uytterhoeven" <geert@linux-m68k.org>,
devicetree@vger.kernel.org, linux-leds@vger.kernel.org,
linux-kernel@vger.kernel.org, "Andreas Färber" <afaerber@suse.de>,
"Boris Gjenero" <boris.gjenero@gmail.com>,
"Christian Hewitt" <christianshewitt@gmail.com>,
"Heiner Kallweit" <hkallweit1@gmail.com>,
"Paolo Sabatino" <paolo.sabatino@gmail.com>
Subject: Re: [PATCH v2 7/8] auxdisplay: Add Titanmec TM16xx 7-segment display controllers driver
Date: Mon, 30 Jun 2025 17:17:34 +0300 [thread overview]
Message-ID: <aGKcfuQdNtQjmVC8@smile.fi.intel.com> (raw)
In-Reply-To: <532c88b8-d938-4633-ac09-12bb3080a023@kernel.org>
On Mon, Jun 30, 2025 at 01:39:25PM +0200, Krzysztof Kozlowski wrote:
> On 30/06/2025 11:54, Andy Shevchenko wrote:
> > On Mon, Jun 30, 2025 at 11:27:21AM +0200, Krzysztof Kozlowski wrote:
> >> On 30/06/2025 09:27, Andy Shevchenko wrote:
> >>> On Mon, Jun 30, 2025 at 08:12:16AM +0200, Krzysztof Kozlowski wrote:
> >>>> On 29/06/2025 15:18, Jean-François Lessard wrote:
...
> >>>>> + display->leds =
> >>>>> + devm_kcalloc(dev, display->num_leds, sizeof(*display->leds), GFP_KERNEL);
> >>>>
> >>>> Wrong wrapping. Use kernel style, not clang style.
> >>>>
> >>>>
> >>>>> + if (!display->leds)
> >>>>> + return -ENOMEM;
> >>>
> >>> Just wondering how .clang-format is official? Note some of the maintainers even
> >>
> >> First time I hear above clang style is preferred. Where is it expected?
> >
> > Documented here:
> > https://www.kernel.org/doc/html/latest/process/coding-style.html#you-ve-made-a-mess-of-it
>
> I mean, which maintainers prefer such style of wrapping. Above I know,
> but it does not solve the discussion we have here - above line wrapping
> preferred by clang and opposite to most of the kernel code.
IIRC Dan Williams (as you might have deduced already from the links).
> > For example, discussed here
> > https://lore.kernel.org/lkml/CAPcyv4ij3s+9uO0f9aLHGj3=ACG7hAjZ0Rf=tyFmpt3+uQyymw@mail.gmail.com/
>
> Heh, I read it and two emails earlier and still could not get they
> prefer to wrap at assignment instead of standard checkpatch-preferred
> wrapping at arguments.
>
> > or here
> > https://lore.kernel.org/lkml/64dbeffcf243a_47b5729487@dwillia2-mobl3.amr.corp.intel.com.notmuch/
>
> This is line length, so not the problem discussed here.
Ah, okay.
> > or
> > ...
> >
> >> I assume clang-format is half-working and should not be used blindly,
> >> but fixed to match actual kernel coding style.
> >
> > That sounds like the case, at least in accordance with Miguel.
> >
> >>> prefer (ugly in some cases in my opinion) style because it's generated by the
> >>> clang-format.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2025-06-30 14:17 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-29 12:59 [PATCH v2 0/8] auxdisplay: Add TM16xx and compatible LED " Jean-François Lessard
2025-06-29 12:59 ` Jean-François Lessard
2025-06-29 12:59 ` [PATCH v2 1/8] dt-bindings: vendor-prefixes: Add Fuda Hisi Microelectronics Jean-François Lessard
2025-06-29 12:59 ` [PATCH v2 2/8] dt-bindings: vendor-prefixes: Add Titan Micro Electronics Jean-François Lessard
2025-06-29 12:59 ` [PATCH v2 3/8] dt-bindings: vendor-prefixes: Add Princeton Technology Corp Jean-François Lessard
2025-07-03 7:32 ` Krzysztof Kozlowski
2025-07-03 8:13 ` Geert Uytterhoeven
2025-06-29 12:59 ` [PATCH v2 4/8] dt-bindings: vendor-prefixes: Add Winrise Technology Jean-François Lessard
2025-06-30 12:25 ` Krzysztof Kozlowski
2025-06-30 13:51 ` Christian Hewitt
2025-07-02 20:14 ` Krzysztof Kozlowski
2025-07-03 0:50 ` Jean-François Lessard
2025-06-29 12:59 ` [PATCH v2 5/8] dt-bindings: vendor-prefixes: Add Wuxi i-Core Electronics Jean-François Lessard
2025-06-30 6:07 ` Krzysztof Kozlowski
2025-06-30 8:19 ` Geert Uytterhoeven
2025-06-30 8:31 ` Christian Hewitt
2025-06-30 8:38 ` Geert Uytterhoeven
2025-06-30 12:24 ` Krzysztof Kozlowski
2025-06-30 13:53 ` Christian Hewitt
2025-06-29 12:59 ` [PATCH v2 6/8] dt-bindings: auxdisplay: add Titan Micro Electronics TM16XX Jean-François Lessard
2025-06-30 6:19 ` Krzysztof Kozlowski
2025-07-01 3:22 ` Jean-François Lessard
2025-07-02 15:02 ` Krzysztof Kozlowski
2025-07-02 15:07 ` Krzysztof Kozlowski
2025-07-02 17:30 ` Jean-François Lessard
2025-07-03 0:33 ` Jean-François Lessard
2025-07-03 7:33 ` Krzysztof Kozlowski
2025-06-29 13:18 ` [PATCH v2 7/8] auxdisplay: Add Titanmec TM16xx 7-segment display controllers driver Jean-François Lessard
2025-06-30 6:12 ` Krzysztof Kozlowski
2025-06-30 7:27 ` Andy Shevchenko
2025-06-30 9:27 ` Krzysztof Kozlowski
2025-06-30 9:54 ` Andy Shevchenko
2025-06-30 11:39 ` Krzysztof Kozlowski
2025-06-30 14:17 ` Andy Shevchenko [this message]
2025-07-02 15:05 ` Krzysztof Kozlowski
2025-07-02 15:19 ` Andy Shevchenko
2025-07-03 20:49 ` Miguel Ojeda
2025-07-04 8:23 ` Krzysztof Kozlowski
2025-07-04 9:26 ` Miguel Ojeda
2025-07-01 1:02 ` Jean-François Lessard
2025-07-01 1:32 ` kernel test robot
2025-06-29 13:19 ` [PATCH v2 8/8] MAINTAINERS: Add entry for TM16xx driver Jean-François Lessard
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=aGKcfuQdNtQjmVC8@smile.fi.intel.com \
--to=andriy.shevchenko@intel.com \
--cc=afaerber@suse.de \
--cc=andy@kernel.org \
--cc=boris.gjenero@gmail.com \
--cc=christianshewitt@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=hkallweit1@gmail.com \
--cc=jefflessard3@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=paolo.sabatino@gmail.com \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®