mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: Andy Shevchenko <andy@kernel.org>,
	Robin van der Gracht <robin@protonic.nl>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	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
Subject: Re: [PATCH v1] auxdisplay: Use designated initializers for arrays of i2c_device_data
Date: Fri, 27 Nov 2026 13:06:17 +0200	[thread overview]
Message-ID: <awlkKRdcMGSTTeQb@ashevche-desk.local> (raw)
In-Reply-To: <45e66776a1cb0fa54d1606b856887abe7e826ae6.1795776138.git.u.kleine-koenig@baylibre.com>

On Fri, Nov 27, 2026 at 11:45:51AM +0100, 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.

I'm fine with this. Geert, do you have a chance to look at and give a tag?

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2026-11-27 11:06 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 [this message]
2026-11-27 11:20 ` Geert Uytterhoeven
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=awlkKRdcMGSTTeQb@ashevche-desk.local \
    --to=andriy.shevchenko@intel.com \
    --cc=1742789905@qq.com \
    --cc=akpm@linux-foundation.org \
    --cc=andy@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=dakr@kernel.org \
    --cc=geert@linux-m68k.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®