Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Uwe Kleine-König (The Capable Hub)"
	<u.kleine-koenig@baylibre.com>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>
Cc: "David Rhodes" <david.rhodes@cirrus.com>,
	"Richard Fitzgerald" <rf@opensource.cirrus.com>,
	"Jaroslav Kysela" <perex@perex.cz>,
	"Takashi Iwai" <tiwai@suse.com>,
	"Shenghao Ding" <shenghao-ding@ti.com>,
	"Kevin Lu" <kevin-lu@ti.com>, "Baojun Xu" <baojun.xu@ti.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Martin Povišer" <povik+lin@cutebit.org>,
	"Support Opensource" <support.opensource@diasemi.com>,
	"Nick Li" <nick.li@foursemi.com>,
	"M R Swami Reddy" <mr.swami.reddy@ti.com>,
	"Vishwas A Deshpande" <vishwas.a.deshpande@ti.com>,
	"Peter Rosin" <peda@axentia.se>,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Oder Chiou" <oder_chiou@realtek.com>,
	"Fabio Estevam" <festevam@gmail.com>,
	"Kiseok Jo" <kiseok.jo@irondevice.com>,
	"Kevin Cernekee" <cernekee@chromium.org>,
	"Steven Eckhoff" <steven.eckhoff.opensource@gmail.com>,
	"Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
	"Charles Keepax" <ckeepax@opensource.cirrus.com>,
	"Thorsten Blum" <thorsten.blum@linux.dev>,
	"Chris Morgan" <macromorgan@hotmail.com>,
	"Dan Carpenter" <dan.carpenter@linaro.org>,
	"Marco Crivellari" <marco.crivellari@suse.com>,
	"Weidong Wang" <wangweidong.a@awinic.com>,
	"Aaron Kling" <webgeek1234@gmail.com>,
	"Teguh Sobirin" <teguh@sobir.in>,
	"Luca Weiss" <luca.weiss@fairphone.com>,
	"Bharadwaj Raju" <bharadwaj.raju@machinesoul.in>,
	"Hsieh Hung-En" <hungen3108@gmail.com>,
	"Binbin Zhou" <zhoubinbin@loongson.cn>,
	"Shimrra Shai" <shimrrashai@gmail.com>,
	"Zhang Yi" <zhangyi@everest-semi.com>,
	"Srinivas Kandagatla" <srinivas.kandagatla@oss.qualcomm.com>,
	"Qasim Ijaz" <qasdev00@gmail.com>,
	"Sharique Mohammad" <sharq0406@gmail.com>,
	"Chen Ni" <nichen@iscas.ac.cn>,
	"Neo Chang" <YLCHANG2@nuvoton.com>,
	"Cezary Rojewski" <cezary.rojewski@intel.com>,
	"Cristian Ciocaltea" <cristian.ciocaltea@collabora.com>,
	"Kees Cook" <kees@kernel.org>,
	"Qianfeng Rong" <rongqianfeng@vivo.com>,
	"Tim Bird" <tim.bird@sony.com>,
	"Bram Vlerick" <bram.vlerick@openpixelsystems.org>,
	"Peter Korsgaard" <peter@korsgaard.com>,
	"Linus Walleij" <linusw@kernel.org>,
	"Wenyuan Li" <2063309626@qq.com>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Shengjiu Wang" <shengjiu.wang@nxp.com>,
	"Sebastian Krzyszkowiak" <sebastian.krzyszkowiak@puri.sm>,
	"Xichao Zhao" <zhao.xichao@vivo.com>,
	linux-sound@vger.kernel.org, patches@opensource.cirrus.com,
	linux-kernel@vger.kernel.org, asahi@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	"Markus Schneider-Pargmann" <msp@baylibre.com>
Subject: Re: [PATCH v1 2/2] ASoC: Use named initializers for arrays of i2c_device_data
Date: Thu, 14 May 2026 07:59:38 +0200	[thread overview]
Message-ID: <28af26ab-bb6b-4763-8405-e36fe3ce68fd@kernel.org> (raw)
In-Reply-To: <65f6da30-eb20-4020-b13a-ac7d4c823dfc@kernel.org>

On 13/05/2026 21:00, Krzysztof Kozlowski wrote:
> On 13/05/2026 19:23, Uwe Kleine-König (The Capable Hub) wrote:
>>  MODULE_DEVICE_TABLE(i2c, adau1372_i2c_ids);
>> diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c
>> index 16b9b2658341..5dd961b233ce 100644
>> --- a/sound/soc/codecs/adau1373.c
>> +++ b/sound/soc/codecs/adau1373.c
>> @@ -1599,7 +1599,7 @@ static int adau1373_i2c_probe(struct i2c_client *client)
>>  }
>>  
>>  static const struct i2c_device_id adau1373_i2c_id[] = {
>> -	{ "adau1373" },
>> +	{ .name = "adau1373" },
>>  	{ }
>>  };
> 
> This is inconsistent with most (or all?) of other xx_device_id table
> usages and, IIUC, is not even necessary to achieve your goal (which
> itself is good).

After talking on IRC, I see that actually many of platform_device_id use
named initializers for '.name' and PCI uses macro for that, thus my
"consistency" concern is not really valid. Especially that if you change
i2c and spi tables, the named initializers might be more frequent...

Best regards,
Krzysztof


      reply	other threads:[~2026-05-14  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13 17:23 [PATCH v1 0/2] ASoC: Rework initialization of i2c_device_ids Uwe Kleine-König (The Capable Hub)
2026-05-13 17:23 ` [PATCH v1 2/2] ASoC: Use named initializers for arrays of i2c_device_data Uwe Kleine-König (The Capable Hub)
2026-05-13 19:00   ` Krzysztof Kozlowski
2026-05-14  5:59     ` Krzysztof Kozlowski [this message]

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=28af26ab-bb6b-4763-8405-e36fe3ce68fd@kernel.org \
    --to=krzk@kernel.org \
    --cc=2063309626@qq.com \
    --cc=YLCHANG2@nuvoton.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=asahi@lists.linux.dev \
    --cc=baojun.xu@ti.com \
    --cc=bharadwaj.raju@machinesoul.in \
    --cc=bram.vlerick@openpixelsystems.org \
    --cc=brgl@kernel.org \
    --cc=broonie@kernel.org \
    --cc=cernekee@chromium.org \
    --cc=cezary.rojewski@intel.com \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=cristian.ciocaltea@collabora.com \
    --cc=dan.carpenter@linaro.org \
    --cc=david.rhodes@cirrus.com \
    --cc=festevam@gmail.com \
    --cc=hungen3108@gmail.com \
    --cc=kees@kernel.org \
    --cc=kevin-lu@ti.com \
    --cc=kiseok.jo@irondevice.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=luca.weiss@fairphone.com \
    --cc=macromorgan@hotmail.com \
    --cc=marco.crivellari@suse.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mr.swami.reddy@ti.com \
    --cc=msp@baylibre.com \
    --cc=nichen@iscas.ac.cn \
    --cc=nick.li@foursemi.com \
    --cc=nuno.sa@analog.com \
    --cc=oder_chiou@realtek.com \
    --cc=patches@opensource.cirrus.com \
    --cc=peda@axentia.se \
    --cc=perex@perex.cz \
    --cc=peter@korsgaard.com \
    --cc=povik+lin@cutebit.org \
    --cc=qasdev00@gmail.com \
    --cc=rf@opensource.cirrus.com \
    --cc=rongqianfeng@vivo.com \
    --cc=sebastian.krzyszkowiak@puri.sm \
    --cc=sharq0406@gmail.com \
    --cc=shenghao-ding@ti.com \
    --cc=shengjiu.wang@nxp.com \
    --cc=shimrrashai@gmail.com \
    --cc=srinivas.kandagatla@oss.qualcomm.com \
    --cc=steven.eckhoff.opensource@gmail.com \
    --cc=support.opensource@diasemi.com \
    --cc=teguh@sobir.in \
    --cc=thorsten.blum@linux.dev \
    --cc=tim.bird@sony.com \
    --cc=tiwai@suse.com \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=vishwas.a.deshpande@ti.com \
    --cc=wangweidong.a@awinic.com \
    --cc=webgeek1234@gmail.com \
    --cc=zhangyi@everest-semi.com \
    --cc=zhao.xichao@vivo.com \
    --cc=zhoubinbin@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