From patchwork Mon Dec 2 11:36:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13890327 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 E38981C6F56 for ; Mon, 2 Dec 2024 11:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733139420; cv=none; b=r59ew9hOto8oU7iedJpdCnSX8u8fscz6uKnKSnBFoDtcVzZ5lxkbEE8uMll5TVEeNsWOdlFBU9pst0I4x8TcAlZqynZClh8ptp8XFBaMcFqo+qJ3Ryp7J1whwfCrZiVaXyhtfeRynNIhkM9E+eFMfxEULm+fWijkWxAeRGZJuOQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733139420; c=relaxed/simple; bh=Bswv2ShtZ15EuEQneXOzrttn0rUwfA/DlAUnJf4MQAQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=F1ckjHNMKIQDj5dRqE08GkxoNTP6bLGH1t7L1H6bXoNRDhT6+jCXMkoIZGnqI+xLw2RsaePiZLTMAUUUiehGmV1PuEduccgMHvhJw7oKlfcAtGlDvX2rtwKeCUAr66kgW5XUHvfEHsqXbaZGaDYofMAv1HU7AFqVnMNHpoXcbZU= 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=zsRCuEzY; arc=none smtp.client-ip=209.85.128.50 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="zsRCuEzY" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-434a10588f3so25641945e9.1 for ; Mon, 02 Dec 2024 03:36:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1733139415; x=1733744215; 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=L6QzxVLWRzRH/qOa9cOwOHFOV2Etnv6DT+rOyPz2/6k=; b=zsRCuEzYCSbDoJbFivfq6TxhcKcJqpW0gIhNMpnknMK72R0VObN/6hUFHcL33yGeBq J6+Z+4tha/pl9hL11LJC+Dfr2TECknKnXTohPJlnzBiNOA2AD7B7SLaNNdRB0uzCiYiE xXOFo2TcsAyPzDXd/NsPwqrfExYRovDFhlLOaB+lQ2g8fB1CgrF1oM+Y4JI19T9vgdNm sXEVAD3DoGwQ/+CLDYM4jjcgCbIFVxP38eWbTFqS8+L7enCG5yVL4ws2gGsZzSY08ILi FO8wSBBwxnZ9zV74cPNn8EcocFuhEQUEKOtfHUCIjig9beuNICEzxyaTRS7agi3iHv1t 82sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733139415; x=1733744215; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L6QzxVLWRzRH/qOa9cOwOHFOV2Etnv6DT+rOyPz2/6k=; b=p2iY01Sadf9KRLEH4Eh/fhc2j15x209dniIoCCrM1s+y3nFf10jonKvv23BgjZxZ2S i2ZkzQyY64XIBaI/DuPRnQAELQWELFvln2qA2yrfC3m4vPbr/KOjwRnJCkJ8VXoucpLL 7jJhsnDPrO/ZS/E++hUDrggkY8c1sqxRUb9DQYCj13UWbLBiPb8goibczUg0rCkzwRB7 Q84rinWKX5G4/Xp3D9DrP3fZc7y38Zss7qZ/ypbQcF03exnO8OI/ucp+2L5vLfOKIhdq 5pOny24mGmF12qwEu7ofKRK3cp9bNfOMXD9VHUXFSC4xBxYB89ShB4yTOs6tiZLJTGsI mJEA== X-Forwarded-Encrypted: i=1; AJvYcCWHDuHVRyN/4yyigJfcAeJzr8FcrfW0+SgcvI/B5grN8MPIcfIAA1n/POZ6Bo4y0BVTHqo20wRQBFysPw==@vger.kernel.org X-Gm-Message-State: AOJu0YzqjQBlm0A4Dkx4KHvESh1hdsFSGGI3i1OnqR496vO375xNKhU3 Mmh3l7fSiCGQ0xy8DYbm4L0ia9/Mz/FfQ0wWNyqkyexUOtXgxJsAm/vWsGOK8Yc= X-Gm-Gg: ASbGncscN2idJytCRJdD2QoQ0k53GriQLMb0KwXyKTrY7+lXZRW4ZLqLfe/ibtLGscA sIC/wIKCEGXdEkjt4ZMnrY6G0hTOy0CWmWZWdgb7sWEADEI33GICKjCNJ0HcTXOMBMaqJa8mQ8I iOpFdJgFfaReOLe8az9qNPNztenDtbBdMNigQNBFK97nuYoJYHZ3WbDUVqZ0TWviOV4nBgDEy1q Es+jgzsz+MNFHtApYzJFtW+tQYNFWgS6VdFnCUCz/lJ9a4iCNa8+sLZJozMA/9TFtRCcDRuJZ+0 Ztf6 X-Google-Smtp-Source: AGHT+IHDatiBRoIWwmUQ8rVBdMNdL4Mcz8nzQA/dLpj0wUKVfFU1d2TbucDXr8tjCjv/lds2UQqKAg== X-Received: by 2002:a05:600c:3546:b0:431:5044:e388 with SMTP id 5b1f17b1804b1-434a9de78d0mr187356325e9.22.1733139415315; Mon, 02 Dec 2024 03:36:55 -0800 (PST) Received: from localhost (p5dc6838f.dip0.t-ipconnect.de. [93.198.131.143]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385dd99504csm10275406f8f.85.2024.12.02.03.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 03:36:54 -0800 (PST) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Liam Girdwood , Mark Brown Cc: David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= , Jaroslav Kysela , Takashi Iwai , Kiseok Jo , Binbin Zhou , Tang Bin , Harshit Mogalapalli , Yang Li , Igor Prusov , linux-sound@vger.kernel.org, patches@opensource.cirrus.com, asahi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: Drop explicit initialization of struct i2c_device_id::driver_data to 0 Date: Mon, 2 Dec 2024 12:36:41 +0100 Message-ID: <20241202113641.1003836-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3641; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=Bswv2ShtZ15EuEQneXOzrttn0rUwfA/DlAUnJf4MQAQ=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBnTZvJNx/F0I5Qb9qkzsGuYkyoo72y5wqfySfJ5 7IJSHQeUR2JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZ02byQAKCRCPgPtYfRL+ TnClB/9XFZJTTFfAaG9fQkpSBU9HElltsdBYGA7AOiTCGNvpZR1ZwTeF+imbmJ4GKZqQl9xq6qg 4Q/rfLb8DPw7o95P6hG9TxWRJ36Cgr2xR2Ox8kKe+M/Bu8AxVTOQTYeiWURC91JCJKmpSVY4fK9 7XBPHeQJJKHyHQ0DgqDV5QdVTwncw5l0nhDcWicsGKQdwcpfaDHlICCpDbaK+zjWohRTpcCb0jY bf16wDBqXGRwOJFDEbi91nCfEL4YV1WbjX54pA9u78NuU+zjvAGKcyaGjfe4Wzxe0tT2LYoUTUS GeRPMD7CtJ0R4t4QvZ1zVID44/6vQywEuTf2RY8AYFeWR5nD X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. Signed-off-by: Uwe Kleine-König --- Hello, this is the third iteration of this patch (after ba2a2c378ada ("ASoC: codecs: Drop explicit initialization of struct i2c_device_id::driver_data to 0") 6f9faf1410fe ("ASoC: codecs: Drop explicit initialization of struct i2c_device_id::driver_data to 0") these unused zeros seem to repopup even though in the mean time most templates should be fine. Best regards Uwe sound/soc/codecs/cs42l84.c | 2 +- sound/soc/codecs/es8323.c | 2 +- sound/soc/codecs/ntp8835.c | 2 +- sound/soc/codecs/ntp8918.c | 2 +- sound/soc/codecs/sma1307.c | 4 ++-- sound/soc/codecs/uda1342.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) base-commit: f486c8aa16b8172f63bddc70116a0c897a7f3f02 diff --git a/sound/soc/codecs/cs42l84.c b/sound/soc/codecs/cs42l84.c index 17d5c96e334d..88cf3c03986e 100644 --- a/sound/soc/codecs/cs42l84.c +++ b/sound/soc/codecs/cs42l84.c @@ -1087,7 +1087,7 @@ static const struct of_device_id cs42l84_of_match[] = { MODULE_DEVICE_TABLE(of, cs42l84_of_match); static const struct i2c_device_id cs42l84_id[] = { - {"cs42l84", 0}, + { "cs42l84" }, {} }; MODULE_DEVICE_TABLE(i2c, cs42l84_id); diff --git a/sound/soc/codecs/es8323.c b/sound/soc/codecs/es8323.c index 6f4fa36ea34d..a9822998199f 100644 --- a/sound/soc/codecs/es8323.c +++ b/sound/soc/codecs/es8323.c @@ -758,7 +758,7 @@ static int es8323_i2c_probe(struct i2c_client *i2c_client) } static const struct i2c_device_id es8323_i2c_id[] = { - { "es8323", 0 }, + { "es8323" }, { } }; MODULE_DEVICE_TABLE(i2c, es8323_i2c_id); diff --git a/sound/soc/codecs/ntp8835.c b/sound/soc/codecs/ntp8835.c index 796e1410496f..2cc4c6395f55 100644 --- a/sound/soc/codecs/ntp8835.c +++ b/sound/soc/codecs/ntp8835.c @@ -454,7 +454,7 @@ static int ntp8835_i2c_probe(struct i2c_client *i2c) } static const struct i2c_device_id ntp8835_i2c_id[] = { - { "ntp8835", 0 }, + { "ntp8835" }, {} }; MODULE_DEVICE_TABLE(i2c, ntp8835_i2c_id); diff --git a/sound/soc/codecs/ntp8918.c b/sound/soc/codecs/ntp8918.c index 0493ab6acbe4..a332893fc51d 100644 --- a/sound/soc/codecs/ntp8918.c +++ b/sound/soc/codecs/ntp8918.c @@ -371,7 +371,7 @@ static int ntp8918_i2c_probe(struct i2c_client *i2c) } static const struct i2c_device_id ntp8918_i2c_id[] = { - { "ntp8918", 0 }, + { "ntp8918" }, {} }; MODULE_DEVICE_TABLE(i2c, ntp8918_i2c_id); diff --git a/sound/soc/codecs/sma1307.c b/sound/soc/codecs/sma1307.c index f2cea6186d98..480bcea48541 100644 --- a/sound/soc/codecs/sma1307.c +++ b/sound/soc/codecs/sma1307.c @@ -2011,8 +2011,8 @@ static void sma1307_i2c_remove(struct i2c_client *client) } static const struct i2c_device_id sma1307_i2c_id[] = { - { "sma1307a", 0 }, - { "sma1307aq", 0 }, + { "sma1307a" }, + { "sma1307aq" }, { } }; diff --git a/sound/soc/codecs/uda1342.c b/sound/soc/codecs/uda1342.c index 3d49a7869948..b0b29012842d 100644 --- a/sound/soc/codecs/uda1342.c +++ b/sound/soc/codecs/uda1342.c @@ -319,7 +319,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(uda1342_pm_ops, uda1342_suspend, uda1342_resume, NULL); static const struct i2c_device_id uda1342_i2c_id[] = { - { "uda1342", 0 }, + { "uda1342" }, { } }; MODULE_DEVICE_TABLE(i2c, uda1342_i2c_id);