From: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Hoan Tran <hoan@os.amperecomputing.com>,
Andy Shevchenko <andy@kernel.org>,
Yinbo Zhu <zhuyinbo@loongson.cn>,
Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com>,
Mika Westerberg <westeri@kernel.org>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-tegra@vger.kernel.org
Subject: Re: [PATCH v2 16/21] gpio: Unify style of acpi_device_id arrays
Date: Fri, 17 Jul 2026 10:31:36 +0200 [thread overview]
Message-ID: <alnjVo8v-3qHKfg8@monoceros> (raw)
In-Reply-To: <alkXuxYdLKn14rKZ@ashevche-desk.local>
[-- Attachment #1: Type: text/plain, Size: 1934 bytes --]
Hello Andy,
On Thu, Jul 16, 2026 at 08:41:15PM +0300, Andy Shevchenko wrote:
> On Wed, Jul 15, 2026 at 06:55:21PM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> > Update the various acpi_device_id arrays to conform to the most used and
> > generally recommended coding style. That is:
>
> ...
>
> > static const struct acpi_device_id dwapb_acpi_match[] = {
> > - { .id = "HISI0181", .driver_data = GPIO_REG_OFFSET_V1 },
> > { .id = "APMC0D07", .driver_data = GPIO_REG_OFFSET_V1 },
> > { .id = "APMC0D81", .driver_data = GPIO_REG_OFFSET_V2 },
> > { .id = "FUJI200A", .driver_data = GPIO_REG_OFFSET_V1 },
> > + { .id = "HISI0181", .driver_data = GPIO_REG_OFFSET_V1 },
> > { .id = "LECA0001", .driver_data = GPIO_REG_OFFSET_V1 },
> > { }
>
> Why this churn? It simply should be folded to the previous patch.
I guess with "previous patch" you mean "[PATCH v2 12/21] gpio: Use named
initializers for acpi_device_id array"? I didn't fold the reordering
into that, because reordering isn't about using named initializers and
mixing in other changes makes reviewing harder. And given that there is
a "churn" patch anyhow (which is "needed" because not all arrays that
use unusual styling have an earlier change) fixing the ordering in the
"unify style" patch IMHO fits better.
But note that for removing trailing , and spacing in the lines that I
touch in patch #12, I agree to do that there. So we're talking about
grey and subjective areas. But note that reordering breaks the promise
of patch #12 "This patch doesn't modify the compiled arrays", which was
the relevant reason for my choice when considering where to implement
your sort request.
Also note that folding cleanups into patches that touch the same code
area also makes it harder to keep commit logs up-to-date, which you
already noticed I didn't master even with only doing one thing per
patch.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-07-17 8:31 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 16:55 [PATCH v2 00/21] gpio: Improvements around device-id arrays Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 01/21] gpio: Remove __maybe_unused annotations from acpi_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 02/21] gpio: fxl6408: Remove __maybe_unused annotations from of_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 03/21] gpio: Drop unused assignment of acpi_device_id driver data Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 04/21] gpio: max7301: Drop unused assignment of spi_device_id " Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 05/21] gpio: mmio: Drop unused assignment of platform_device_id " Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 06/21] gpio: ljca: Drop unused assignment of auxiliary_device_id " Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 07/21] gpio: Add missing ACPI module annotations Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 08/21] gpio: sodaville: Add missing PCI " Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 09/21] gpio: Add missing OF " Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 10/21] gpio: pxa: Add missing platform " Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 11/21] gpio: pl061: Use empty initializer for amba_id terminator Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 12/21] gpio: Use named initializers for acpi_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 13/21] gpio: Use named initializers for spi_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 14/21] gpio: virtio: Use a named initializer for virtio_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 15/21] gpio: pcf857x: Use named initializers for of_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 16/21] gpio: Unify style of acpi_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-16 17:41 ` Andy Shevchenko
2026-07-17 8:31 ` Uwe Kleine-König (The Capable Hub) [this message]
2026-07-17 10:27 ` Andy Shevchenko
2026-07-15 16:55 ` [PATCH v2 17/21] gpio: Unify style of of_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 18/21] gpio: max77620: Unify style of platform_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 19/21] gpio: Unify style of spi_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 20/21] gpio: Unify style of pci_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-16 17:42 ` Andy Shevchenko
2026-07-16 19:59 ` Uwe Kleine-König (The Capable Hub)
2026-07-15 16:55 ` [PATCH v2 21/21] gpio: Unify style of various *_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-16 17:43 ` [PATCH v2 00/21] gpio: Improvements around device-id arrays Andy Shevchenko
2026-07-16 17:45 ` Andy Shevchenko
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=alnjVo8v-3qHKfg8@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=alan.borzeszkowski@linux.intel.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=brgl@kernel.org \
--cc=hoan@os.amperecomputing.com \
--cc=jonathanh@nvidia.com \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=thierry.reding@kernel.org \
--cc=westeri@kernel.org \
--cc=zhuyinbo@loongson.cn \
/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