Re: [PATCH v2 2/2] iio: afe: iio-rescale: Add platform IDs

From: Andy Shevchenko

Date: Mon Nov 30 2026 - 06:39:30 EST


On Sat, Nov 28, 2026 at 10:21:25AM +0100, Fabio Forni wrote:
> On 28/11/26 01:30, Jonathan Cameron wrote:
> > On Sat, 28 Nov 2026 00:22:10 +0100
> > Fabio Forni via B4 Relay <devnull+development.redaril.me@xxxxxxxxxx> wrote:

...

> > I don't mind on that bit, but use a few more lines to make it easier
> > to add additional fields in future and generally make it easier to read.
>
> Will do, but to be honest I always have a hard time syncing with
> maintainers' own style.

As a maintainer and contributor I fell your pain as I have the same issue.

> Why isn't clang-format style simply agreed upon and enforced?

Because it doesn't fit all? At least I do not like some of the clang-format
style decisions.

> Automatic formatting would reduce cognitive effort, and chances to argue :)

Much more for bikeshedding.

> I think Go and the Black formatter for Python did the right job on that matter: one
> style, no questions.

Propose the change to the documentation, and see what will happen.
I will be one of the first to against this.

Also note:
Documentation/dev-tools/clang-format.rst
Documentation/process/4.Coding.rst:61:Note that you can also use the ``clang-format`` tool to help you with
Documentation/process/coding-style.rst:721: ...seems like the same Note as above...
Documentation/process/generated-content.rst:30

--
With Best Regards,
Andy Shevchenko