mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Geert Uytterhoeven" <geert@linux-m68k.org>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: "Robin van der Gracht" <robin@protonic.nl>,
	"Danilo Krummrich" <dakr@kernel.org>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Takashi Sakamoto" <o-takashi@sakamocchi.jp>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Wang Jun" <1742789905@qq.com>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Kees Cook" <kees+treewide@kernel.org>,
	"Pawel Zalewski" <pzalewski@thegoodpenguin.co.uk>,
	linux-kernel@vger.kernel.org, "Andy Shevchenko" <andy@kernel.org>
Subject: Re: [PATCH v1] auxdisplay: Use designated initializers for arrays of i2c_device_data
Date: Fri, 27 Nov 2026 12:20:42 +0100	[thread overview]
Message-ID: <8ed51f54-ed79-4b1d-913f-2b6ddad9e568@app.fastmail.com> (raw)
In-Reply-To: <45e66776a1cb0fa54d1606b856887abe7e826ae6.1795776138.git.u.kleine-koenig@baylibre.com>

On Fri, Nov 27, 2026, at 11:45, Uwe Kleine-König wrote:
> While being less compact, using designated initializers allows to more
> easily see which members of the structs are assigned which value without
> having to lookup the declaration of the struct. And it's also more
> robust against changes to the struct definition.
>
> The mentioned robustness is relevant for a planned change to struct
> i2c_device_id that replaces .driver_data by an anonymous union.
>
> This patch doesn't modify the compiled arrays, only their representation
> in source form benefits. The former was confirmed with x86 and arm64
> builds.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

  parent reply	other threads:[~2026-11-27 11:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 10:45 Uwe Kleine-König
2026-11-27 11:06 ` Andy Shevchenko
2026-11-27 11:20 ` Geert Uytterhoeven [this message]
2026-11-27 11:59 ` 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=8ed51f54-ed79-4b1d-913f-2b6ddad9e568@app.fastmail.com \
    --to=geert@linux-m68k.org \
    --cc=1742789905@qq.com \
    --cc=akpm@linux-foundation.org \
    --cc=andy@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=dakr@kernel.org \
    --cc=kees+treewide@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=o-takashi@sakamocchi.jp \
    --cc=pzalewski@thegoodpenguin.co.uk \
    --cc=rdunlap@infradead.org \
    --cc=robin@protonic.nl \
    --cc=u.kleine-koenig@baylibre.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

all inboxes | Powered by JetHome®