From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C23413793DE for ; Thu, 28 May 2026 09:06:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779959186; cv=none; b=Fo2ycpBj8LcSDyAdnOG4pE4daGHNc0lPBZ1Zbi1JF1T1El2z7yNELyRiu93vhyhbtFmKlmo1Ck+IEF9oAUR4anu2gcUSktuT627izRk8fEJGsEjm0juBl8HzC57TK/E6OKJoskTTKOG+yDlwK8vu4POWUEy5G7CxZ8IRVmMe81s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779959186; c=relaxed/simple; bh=pePpbntnwnsj7EYGTYln0S0Z1fUMMahUgMDQxO5w1uU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=m0Ue7RDffvLNp88QQnKsXvtfGyEaffeHUi7eFVbfpc2CTqiEHaYojMlv/hlzghHKdzQBpcaxLxcoNdGWBiwu5pA949U7cP02b2WG9QCjzBtRJ+lsNpxmUOWIiPq0DJabUiuaeacmezO3ieCB4DVubPbU+UnE8xAw5DaadjOR91E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=Tv3W1+un; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="Tv3W1+un" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4896c22fcbaso107321025e9.0 for ; Thu, 28 May 2026 02:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1779959182; x=1780563982; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NCpVC/B+fK7iJncp3doDyeYOwNSb+lqrnGIijdp/R+8=; b=Tv3W1+unErPZI61reAybS1V/bYvqFOlMWOiABauoKx7v6A9wwt42V8f+FWjnpsmWSL 31SOA0f14puPUwBpNrUN7FQ1Qz8NPp8O4cwZT2KBHFndrKUyna6LBthvJ8gZjoXLwOfE A0II/Sgt+8HRPnRwJl9noZZDXeYod8kPY3vk7YruzPmQWMHTgGk3XrKlkX6eBNbgI53Z IaHk9U/GXRuGaLZo7gdL1rZELjqDh4mm3ij3S/QCXWhqqyt9lIdeLJwr5lR0qzHwx7nU ycvcrPa4BzwLRAvhImwivIXDBWOW6VBV6GamBq1aTMWdwvR8l7Mm5QdikhjUzSXrWi/l DuqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779959182; x=1780563982; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NCpVC/B+fK7iJncp3doDyeYOwNSb+lqrnGIijdp/R+8=; b=o8SUSpDcTceUGowIIBHs2PGjhhek4RznTJwt0srElzCHfmf1UDLItIL6P2Zk3EBQqR M44r0uiy+ShLgczXtViXxkx4qESLnfkVMV6Hd3VO9l/N45mN6Q4+qgu90M7KETEfk6XV IvawSCa3ojFgLX7hTwIFV6HENn/cXO+KwUZWLFR9K4ZgTCzZjZDGwF1Ak73Qocnfm/KZ +fBkCTsn2n5RArLDZubrY9E23jwAPjD6M91MGGTbMEogzS4WGD188Dmiair74Ot5PuhW hxfjDethqo0KxqUNryqPGL6mjMETDUe8arWuVcF++CQ6aRFXsjeXq4e9q+XyYmPrk+BI wXhA== X-Forwarded-Encrypted: i=1; AFNElJ+qu2xEMXwkCSb6O7iNUagUaUjNu49e+UzUxus+1NqN18iOGDhaJDNOOuZ9IGw6UOUCF1uSuhJEQ7kQxKI=@vger.kernel.org X-Gm-Message-State: AOJu0YztB+B4yNLrAkgAFAytOZFIvUlsaXzodsQv35GVJDgTR/zsYhT+ 8ZFP782+mImmFteYIQ14YTw/XwEU4CVi6ddWpSsXyDUV/4KtOxt8lOpMPaFVlaTPIPg= X-Gm-Gg: Acq92OEg2Sb7P5Kk/HK7GbR9bKfNzVW16ZMEEukyyH1TEwwrEX004EsE6/yPB63NdCd qVWpmFnR80j7bCgF+HEq0FaFGV/+/hxwaYrg1AOSnpmq8UUhOleFTKoWRr9vffN4ZPQmGiFq7zy 8YlRLtIv8o94EmKCUFH+e9FHskPtb/sX+UEZE8OAjzlIn2J/UhRbJo7nrYm6QwznX1/ckuYfBYe XiQHqS5xehuYSx6nn0ur3XktnpvBUU+D/aEU0Xigkhcj04RCZTIIkEpDSzROVdquy/q4/YwB7Qy hK9ryQnZKzJQPpjPx1CtkucZYGzXZE8BEoXRKKKeyaiXUscK4QGLBcqoNo7jvSNssFBo30vKp5q 7RvIpzmTSrXOf+1Mx0ocnAV1HWYMKZijHz1RZ/w4seKwDgA6ZeZNwqD9WWh1M19CjOGCuADKjBs 6cIHfMZtCw65ZKCq6hUEY4Jev+nukS+otqvvw+WdRogGswl6+eHn2esNeeo9JU+jP1gcOGtT5p2 2f45d/XJxqDlGZeOb5fddNi7Q== X-Received: by 2002:a05:600c:35c8:b0:490:44eb:c1e7 with SMTP id 5b1f17b1804b1-49044ebc2d5mr480016505e9.30.1779959181935; Thu, 28 May 2026 02:06:21 -0700 (PDT) Received: from localhost (p200300f65f47db04e95e43453a0d1648.dip0.t-ipconnect.de. [2003:f6:5f47:db04:e95e:4345:3a0d:1648]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-49091d57c0dsm45855525e9.0.2026.05.28.02.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2026 02:06:21 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Liam Girdwood , Mark Brown Cc: Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Charles Keepax , Kuninori Morimoto , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Vijendar Mukunda , Venkata Prasad Potturu , James Ogletree , Fred Treven , Ben Bright , David Rhodes , Richard Fitzgerald , Cezary Rojewski , Peter Ujfalusi , Bard Liao , Kai Vehmanen , Pierre-Louis Bossart , Syed Saba Kareem , "Mario Limonciello (AMD)" , Krzysztof Kozlowski , Mark Pearson , Hasun Park , Li Qiang , Kees Cook , Ranjani Sridharan , Mac Chiang , Maciej Strozek , patches@opensource.cirrus.com, Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= , Srinivas Kandagatla , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Frank Li , Sascha Hauer , Pengutronix Kernel Team , "Guilherme G. Piccoli" , Mario Limonciello , Cristian Ciocaltea , =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= , linux-arm-msm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev Subject: [PATCH v1 0/4] ASoC: Use named initializers for platform_device_id arrays Date: Thu, 28 May 2026 11:05:59 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=2760; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=pePpbntnwnsj7EYGTYln0S0Z1fUMMahUgMDQxO5w1uU=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqGAV3A/XGhyTdPC2Sbsk19+exJrBTv8hN9EsT0 GAAjGOFfiyJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCahgFdwAKCRCPgPtYfRL+ Tgg8B/9D5gNT6QFkJSSGOnZq876EyBKdLt05krj7I+eM9aYvKsGkdCLHcG7QZHsH64DDJCElr0r rkkvYPqCAgT0nB7gOzo9U0qtyp69Vifs5eRYtlUzz+MYNPrOw1HZyPhMUokS9DH1Pp+kkk1fj3S pf2IkbuFyVhLCrKlKWuXJYjCf8Go8i/nKubc2wg6igcHvdnyTzxT+83dJT/P31ERPelDR9wXr3g NwuRB3IaDbFvfetwIRZGEvJ38cIqOwdZWALeex3CzgiNZyJVzlnyX0/cb63x8sz08tUXTRpK9XZ iQM3C8HjSEsS1U3+EfHXzpVCPMgXHp9ra49eC3vLgqNt/Qh1 X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit Hello, this series targets to use named initializers for platform_device_id arrays. In general these are better readable for humans and more robust to changes in the respective struct definition. This robustness is needed as I want to do diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -610,4 +610,7 @@ struct dmi_system_id { struct platform_device_id { char name[PLATFORM_NAME_SIZE]; - kernel_ulong_t driver_data; + union { + kernel_ulong_t driver_data; + const void *driver_data_ptr; + }; }; which allows dropping several casts and eases porting CHERI to mainline linux. When adapting e.g. sound/soc/amd/acp/acp-legacy-mach.c to that and make use of driver_data_ptr, the added const makes it obvious that acp_asoc_probe() modifies the structs linked in the id_table resulting in issues if more than one device is probed using the same platform id. sound/soc/amd/acp/acp-sof-mach.c has the same issue. If you consider the last patch mostly churn, just drop it. Best regards Uwe Uwe Kleine-König (The Capable Hub) (4): ASoC: codecs: mt6357: Drop unused assignment of platform_device_id driver data ASoC: renesas: fsi: Simplify driver_data handling ASoC: Use named initializers for platform_device_id arrays ASOC: Unify code style for platform_device_id arrays sound/soc/amd/acp/acp-sdw-legacy-mach.c | 4 ++-- sound/soc/amd/acp/acp-sdw-sof-mach.c | 4 ++-- sound/soc/amd/acp/acp-sof-mach.c | 14 +++++++------- sound/soc/codecs/adau7118-hw.c | 2 +- sound/soc/codecs/bt-sco.c | 10 +++------- sound/soc/codecs/cs40l50-codec.c | 4 ++-- sound/soc/codecs/cs42l43.c | 4 ++-- sound/soc/codecs/mt6357.c | 4 ++-- sound/soc/codecs/wcd934x.c | 6 ++---- sound/soc/fsl/imx-pcm-rpmsg.c | 6 +++--- sound/soc/intel/avs/boards/da7219.c | 6 ++---- sound/soc/intel/avs/boards/dmic.c | 6 ++---- sound/soc/intel/avs/boards/es8336.c | 6 ++---- sound/soc/intel/avs/boards/hdaudio.c | 6 ++---- sound/soc/intel/avs/boards/i2s_test.c | 6 ++---- sound/soc/intel/avs/boards/max98357a.c | 6 ++---- sound/soc/intel/avs/boards/max98373.c | 6 ++---- sound/soc/intel/avs/boards/max98927.c | 6 ++---- sound/soc/intel/avs/boards/nau8825.c | 6 ++---- sound/soc/intel/avs/boards/pcm3168a.c | 6 ++---- sound/soc/intel/boards/sof_sdw.c | 4 ++-- sound/soc/renesas/fsi.c | 8 +++----- 22 files changed, 51 insertions(+), 79 deletions(-) base-commit: e7d700e14934e68f86338c5610cf2ae76798b663 -- 2.47.3