From nobody Mon May 25 05:12:30 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 A88FC340286 for ; Mon, 18 May 2026 10:42:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779100929; cv=none; b=hqpliTDjxE38LFHxH81+K7HMgh5QaPyOSQCyNHezNuTroBLknmJyIc8ApzaD3GPWvgZj//abNTi1rPl5gCRfd8SD/8vtiJQi/nUEf5qoanBF4x1dDfWgj6ZmiPfG6Xk3IBR1TuUUgCRV+yQLWWCD8JUtALCBQwdX6PiLJ8+jUyE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779100929; c=relaxed/simple; bh=4mB32vfHvszqQJHCyBSS8xEkBLG77J5fJTMSySUIgyk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=psRg+Le4YbGGdDvq23XoJoAUzMIOkGFQsL2Xn4B6elAWExiE0Ko4RpuvtHAbpRbH6t7yU0pPVzGq2Mmb1jw0zn3l6w3myJMOSrA/cZ6BvgOJJYzCHJI9MEdBKf2QQBDQ0HEYNh+4TKR74KQC/v/NY+P4jNcD68Cc294sV68B1uE= 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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=RNmv3NWc; arc=none smtp.client-ip=209.85.128.44 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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="RNmv3NWc" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4891c00e7aeso14273005e9.2 for ; Mon, 18 May 2026 03:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1779100918; x=1779705718; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hIsaiA//MD8xx+2wW9lv2GQO9AEB+YM672p/Z4VhGw8=; b=RNmv3NWc3L+oZ6qo+3cyM4w8UPPSXebCR/m6HAiMafMyNccvaLntGBIB6ZTo8rmnd+ K8ljtQbPgrFOlyz5tMadZjFo25NkrTifuIKaPNLsHH6gWW+NqJORqI1twBm1r3sn4q06 nbLld+ZriNJNRGb2vhZhg5JrzHQg4ixpXbDnXYpvNtDbsOiBq+orhOgJG41+eqCZh9W/ eDDvsmR+dUC51C2lgXTr00qjXWHXkn3rfTqt3QpB4dmyvbEijhYIX32bMHoP0nrPUVii R9N+MCNMYgqz3S81WVPpYn2WYMRzfGPJZ74xgyMj/8//csIG7onZNHz/9tyf1GpLOLie O9dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779100918; x=1779705718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hIsaiA//MD8xx+2wW9lv2GQO9AEB+YM672p/Z4VhGw8=; b=cwA1afEuzWCGQqwoetAuYqbmWu/YXjVMLlwXRKpNn6e5OtQlTrfZFm1sDZvmTAiAob 0eCY2j6v3+gc/JxCbmQ8R2SWbn4gaixnHineRi8YokZiMqV4eJ8noQC7FQh41/jrN85X HaAgMYrBFoubFRW04DB5m+2MCUR2JJl6WcqUTFTGVBAwmd8ZSZoMtRo8OTsfZtKYsCY0 mkTu9o+9KeOyWYkDXL1BlSipQkH+zeFyhSFFgMyKrtsnVv1cfAMCUpUY4P0g+KLmI5JE by2MbwGV3ygh+UYb/IfF6YWw5gThrB+b9DBdLCiHD5jhAfQrDdXqdKp9Ci+BDfJ9ZZjN vtwA== X-Gm-Message-State: AOJu0YwFKODmEVL8PuX3bhHNDK0bmKjAY3r1DVohi0VsKqvmDyBvB1On wavIfjrtdkqi3ydyP0jq4epF8YVG7tfXbVFsmdlxdXwr/eSB3eP8M8jttXWj1ovAzlQ= X-Gm-Gg: Acq92OGM3YtG95MXrtGU/Y3P4laz3UhWnhH22YyU8blRJh9uOpTJxUxV/H/fWpZLC4O 6ySrm3XHLVCDtpDLI9hqGxOSkEs+jOhsTygj7xqesZtpYQ60V7i77iYpBbpkcNXGpgICPeAT93k BEf8ymMLvNr4/nXvgWJCVuubib/WH3rCxWONfHpB86ByAndpgWP93LUyL6Gg2r0PxPAvHSX/Mw9 1+x9Hwdkh2ddWaVMhsk+QtzmGR/Uo39RRLZLOicOncjV7GchKSze3RI2m0+/bkMRkP1e750frep KSvSOiYgO4P0IVsckhoGF8kljsjDpUaDUux5w6GfjoKB8U7oHcZ/S8wmnWXF9LGP5QUeiJ0PTrg Ps5OIpbKrZrTmC3Wa5xC5JF5LpXl4cr6Ef/cuBHinECj9CFTZg/BgiCosoE+WOL5UjVazVBMjz7 3F7/bYPFsZdyHHN46Sb10xWZ/thTog7KRO3DFmOYwDWJRLANWML335FZTQ54YLtDsca35gEih2w cjwFPrwdamxmko= X-Received: by 2002:a05:600c:470e:b0:489:201c:dc46 with SMTP id 5b1f17b1804b1-48fe60ea590mr203883965e9.12.1779100917928; Mon, 18 May 2026 03:41:57 -0700 (PDT) Received: from localhost (p200300f65f47db049367b55fc4056f2b.dip0.t-ipconnect.de. [2003:f6:5f47:db04:9367:b55f:c405:6f2b]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48febe81b2dsm80200495e9.34.2026.05.18.03.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 03:41:57 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: MyungJoo Ham , Chanwoo Choi Cc: linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] extcon: rt8973: Drop unused driver data Date: Mon, 18 May 2026 12:41:44 +0200 Message-ID: <754d91345cb63e938b8d08d603e48090aecec80d.1779100597.git.u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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=1489; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=4mB32vfHvszqQJHCyBSS8xEkBLG77J5fJTMSySUIgyk=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqCuzqACNvUZMj6dkKNVQAp1x8dq25F8+qDV50t jmaxvQcUdyJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCagrs6gAKCRCPgPtYfRL+ TgoVB/9UldgvdKoUC32Z2cUA+H+vK34+4FeMYhQvfFHGBKkzrYlLJkru4eYF2OY8advjAkqH70a Qsg4fNSupF+gvSgZK/oScU7TZvik86Pzspdb9muc7TZlW7VMjbX+ExghjPkismWnJgbXfnpjtur /W93S4c5CrVpuBKCJCDB3hFGF5pUhPDUXqkSgo2aCSq3rf9s1dnI70jZ91RX6dpEJnqeDw9kq2T TcaiesgBIzDJ3ySjQ4KNGbEiRo3DLm9LL+e2AQALRZYl7F/BU/Jtml8zn05DgXZD1Joh4Ck6xQl tLKoUSqvHMdSEiTDqefYz57ibxjFbMt2/QRkF8tRLWj3nCLU X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable The .driver_data member isn't used in this driver, so the explicit assignment can safely be dropped. Also drop the enum after its only user is gone. While touching this i2c_device_id array, assign .name using a named initializer which makes it easier to understand and more robust to changes in the definition of struct i2c_device_id. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) --- drivers/extcon/extcon-rt8973a.c | 2 +- drivers/extcon/extcon-rt8973a.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-rt8973a.c b/drivers/extcon/extcon-rt8973= a.c index 19bb49f13fb0..dfeedb295c51 100644 --- a/drivers/extcon/extcon-rt8973a.c +++ b/drivers/extcon/extcon-rt8973a.c @@ -684,7 +684,7 @@ static SIMPLE_DEV_PM_OPS(rt8973a_muic_pm_ops, rt8973a_muic_suspend, rt8973a_muic_resume); =20 static const struct i2c_device_id rt8973a_i2c_id[] =3D { - { "rt8973a", TYPE_RT8973A }, + { .name =3D "rt8973a" }, { } }; MODULE_DEVICE_TABLE(i2c, rt8973a_i2c_id); diff --git a/drivers/extcon/extcon-rt8973a.h b/drivers/extcon/extcon-rt8973= a.h index 0d0d69fcac92..039af2d1cac6 100644 --- a/drivers/extcon/extcon-rt8973a.h +++ b/drivers/extcon/extcon-rt8973a.h @@ -8,10 +8,6 @@ #ifndef __LINUX_EXTCON_RT8973A_H #define __LINUX_EXTCON_RT8973A_H =20 -enum rt8973a_types { - TYPE_RT8973A, -}; - /* RT8973A registers */ enum rt8973A_reg { RT8973A_REG_DEVICE_ID =3D 0x1, --=20 2.47.3 From nobody Mon May 25 05:12:30 2026 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 F0BE6345CBD for ; Mon, 18 May 2026 10:42:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779100928; cv=none; b=ZNq+FixncQpYqkbpXH/h00TiTA6HVEwMYoKGd7MDoATVM5UxUyXVxUcyApmDUun5g+Zz+JYDxJGTGlvkpCidrnjz90AJrghI8jfT9mh1KqgTrsYXfJ+JV7d0oqFk29orKBQEy86WoSXB0snOl0ZuoLsLJLhDDOuooBI7lTxHG0k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779100928; c=relaxed/simple; bh=asmaAzuIFVGQ45WudsUfuO4Z4X4lGJdQ6n2lQuJM6b8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IIVcSRU1flbtsDNk0bOIaSjEf2fUxzgXNOPNqpVdwPsIdQ+HIX8hjB01hGA/Y2hLc4oniXJXHtrZyw4za0TAyNiKQkHiSTrp4/1tPRZEiBH7QDLromOGacA4dzcu8XJoFYh/yctLDDLZy/M54JN5LyGbHm9rJdGwGIT+UqFaLlk= 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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=SgjejhPK; arc=none smtp.client-ip=209.85.128.51 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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="SgjejhPK" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-48d102471a4so16922305e9.2 for ; Mon, 18 May 2026 03:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1779100919; x=1779705719; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WO6WhvNjPk3WeNtA/XW/0Z4zz3halDKfe8y4JlNJr7E=; b=SgjejhPKhai3ZofMxiYUrZYRzbPwRhkNRggOwu8TJ7XqJHgclWJCMuBV8r+R+bcR5+ rp0V1CFFdKnKqFRAApqjib/VS0AxMUFwDg5jRwW7rSMVeVgyszf8NqIoZi0lANCn6CWV o/jACwi9nHnOy64Et0XaSMlGmtoco0sLhs6VoKPg6PytUU8nMjdeEfICUnQsv4Org9Lw 78kXcNhPZuR5hlA6dhVLDtpYq6T8mscApS7/SHp34R7RjJgmm1qlbrUAYMPpLouKUrel vNcRquCTLpvVtGGV8sKO1RQcZOhmFQm654nup90W09ZQRHLtpHZYToj8evY+yf6gMMJG aYXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779100919; x=1779705719; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WO6WhvNjPk3WeNtA/XW/0Z4zz3halDKfe8y4JlNJr7E=; b=f3NwlsK1a1UYrS1fPQBAKzFQo89ciGyDyiuTqAhg4FW1dgnvXpl1tT21Khy4gv9/xk VecwvjaHpTqnMzgSSUYvKDV7LEZ3NPuHk7L8jRuzCIFAE2EIcwm9APkDkCTCD4I6B3Cb XFL7DZrnUS/RSvejnkF25WZ04ILEv5ZTcxaIDPltkMT+grqIC7BQcJZrM5CWtNCJ2rvx aMLw8FzrfsU11ZlN9fMON6y/uI9VwOJiZbrVgJrklDSX5l3B3aZGJwDst5eMrIACTrdD HErF5/uL/a5vXecw+nrOKO9sVqPBCjX/NihPoIZtng6V7K9ndsg9dtSgRJTCRPZlkXV8 h4ow== X-Forwarded-Encrypted: i=1; AFNElJ/kYE3n6Ou7zuHWKcySr0at6Fj3dBRqSzFFN1A6eJknkWc2foEt5k9OKrmawjBGHyGDKdeSHT93I+NjxXE=@vger.kernel.org X-Gm-Message-State: AOJu0YzoDG7DIsSLixrdiO98+7RnEwG66Z37qJDu7URkSfo9BU9VbQrK DPF2GuMiyujrT6uTbrB44xmb3oewATMgFsu2lmyTy3wsFEzXNmOmzmkRbf5/fGFM3oZTgq2czvl e6t37 X-Gm-Gg: Acq92OGW8pW0Zs4ZwMkmqyXBOr4Nd+iKfjBuzMka29HRIbsCm5sQ4LY48tN/eAlKP2e i5+dG1FPV5S5jo91C5DLgmo/SdOmHBjh+vvufhCISEvuHnrQMjcurGA/m9d2BgInTvkXg/yHNR6 +c4Td+1yS0w5j3l3Z+nXeZVSxikzTVYqBIVS7l4SYLYuJXfElIh2xRBt4GB/6N7mWkY5qAsEPZr SjgLrh2mbfAA+Ei2heFYUK6favx8aJhXxIPIiiKJ/0159MbspN/o1F+C3RYfo0ypqlhz6eCpsT2 PMMf8w26G/FQiv6tlUKGXr48M4Xr5Kx4R7AsK7lLtABicJC9CUNaakkMMayPs704bH0mpVW0tWl NBv5PD3vrvHPfDwCLDdkUOZpOBBF3T/WrLp9u+tAsUgoQGvVLbyU93EI28J0qWSUvCZhFe+TXqc ooSST9rIiqnHfwnx5aeOwfHgzlimO2RrcQgMyhVEunFTs3udcZUzfbqzeV7pb/lH/FxI3DgfV59 rTpn4NXwG9TUHo= X-Received: by 2002:a05:600c:858d:b0:48f:e230:80a2 with SMTP id 5b1f17b1804b1-48fe65148e1mr176789315e9.32.1779100919148; Mon, 18 May 2026 03:41:59 -0700 (PDT) Received: from localhost (p200300f65f47db049367b55fc4056f2b.dip0.t-ipconnect.de. [2003:f6:5f47:db04:9367:b55f:c405:6f2b]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48fe5ab527asm272690265e9.11.2026.05.18.03.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 03:41:58 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: MyungJoo Ham , Chanwoo Choi Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] extcon: Use named initializers for arrays of i2c_device_data Date: Mon, 18 May 2026 12:41:45 +0200 Message-ID: <07549e42338aedf9e9bee5d6384e5fa1c8635eeb.1779100597.git.u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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=3662; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=asmaAzuIFVGQ45WudsUfuO4Z4X4lGJdQ6n2lQuJM6b8=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqCuzsl4dmv/HZyF4NRjUFNr7t2IF3E8sHafW0P LnzfiLDVjaJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCagrs7AAKCRCPgPtYfRL+ TntQCACtgY0y5InO6Ca2jQK3jLZlTHKdtoCdDFg18S2Z/xuJAJgCzx06w0kxPI+wUvoEB68ECZd bRzWyABl3CEIlfDl2YLXBlD4b3p32ok86UgoaMA4MU9UL8fyyV7y7lXzTovuLboZHPIrp1LE/86 zD24yTTeygLVWEOyPsVKH9CaeueSTmQ6imGg1LgGDkhUybfMW4VAZxaZmm/OSqDrk5XDbtAZ1MB ft1YN0UVRPwL2rFy0rFNNuVFSJIT3JElZvwyzqxA3HdjlYUex8pYTwaSjwLNY5f19zl51qkYm0c g8GcVtezEEx22EDBPLJfDwMFgwnQ+c9nbMfsCS3vbewhlQRn X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable While being less compact, using named 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. While touching all these arrays, unify usage of whitespace in the list terminator. 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=C3=B6nig (The Capable Hub) --- drivers/extcon/extcon-fsa9480.c | 4 ++-- drivers/extcon/extcon-lc824206xa.c | 2 +- drivers/extcon/extcon-max14526.c | 2 +- drivers/extcon/extcon-ptn5150.c | 2 +- drivers/extcon/extcon-sm5502.c | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/extcon/extcon-fsa9480.c b/drivers/extcon/extcon-fsa948= 0.c index a031eb0914a0..5de77ac5a294 100644 --- a/drivers/extcon/extcon-fsa9480.c +++ b/drivers/extcon/extcon-fsa9480.c @@ -350,8 +350,8 @@ static const struct dev_pm_ops fsa9480_pm_ops =3D { }; =20 static const struct i2c_device_id fsa9480_id[] =3D { - { "fsa9480" }, - {} + { .name =3D "fsa9480" }, + { } }; MODULE_DEVICE_TABLE(i2c, fsa9480_id); =20 diff --git a/drivers/extcon/extcon-lc824206xa.c b/drivers/extcon/extcon-lc8= 24206xa.c index 56938748aea8..a758f2955207 100644 --- a/drivers/extcon/extcon-lc824206xa.c +++ b/drivers/extcon/extcon-lc824206xa.c @@ -475,7 +475,7 @@ static int lc824206xa_probe(struct i2c_client *client) } =20 static const struct i2c_device_id lc824206xa_i2c_ids[] =3D { - { "lc824206xa" }, + { .name =3D "lc824206xa" }, { } }; MODULE_DEVICE_TABLE(i2c, lc824206xa_i2c_ids); diff --git a/drivers/extcon/extcon-max14526.c b/drivers/extcon/extcon-max14= 526.c index 3750a5c20612..2c337fd7214f 100644 --- a/drivers/extcon/extcon-max14526.c +++ b/drivers/extcon/extcon-max14526.c @@ -281,7 +281,7 @@ static const struct of_device_id max14526_match[] =3D { MODULE_DEVICE_TABLE(of, max14526_match); =20 static const struct i2c_device_id max14526_id[] =3D { - { "max14526" }, + { .name =3D "max14526" }, { } }; MODULE_DEVICE_TABLE(i2c, max14526_id); diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn515= 0.c index eca1b140aeb0..bcbd38ed0d0d 100644 --- a/drivers/extcon/extcon-ptn5150.c +++ b/drivers/extcon/extcon-ptn5150.c @@ -393,7 +393,7 @@ static const struct of_device_id ptn5150_dt_match[] =3D= { MODULE_DEVICE_TABLE(of, ptn5150_dt_match); =20 static const struct i2c_device_id ptn5150_i2c_id[] =3D { - { "ptn5150" }, + { .name =3D "ptn5150" }, { } }; MODULE_DEVICE_TABLE(i2c, ptn5150_i2c_id); diff --git a/drivers/extcon/extcon-sm5502.c b/drivers/extcon/extcon-sm5502.c index c8c4b9ef72aa..5661b57cbb45 100644 --- a/drivers/extcon/extcon-sm5502.c +++ b/drivers/extcon/extcon-sm5502.c @@ -827,9 +827,9 @@ static SIMPLE_DEV_PM_OPS(sm5502_muic_pm_ops, sm5502_muic_suspend, sm5502_muic_resume); =20 static const struct i2c_device_id sm5502_i2c_id[] =3D { - { "sm5502", (kernel_ulong_t)&sm5502_data }, - { "sm5504", (kernel_ulong_t)&sm5504_data }, - { "sm5703-muic", (kernel_ulong_t)&sm5502_data }, + { .name =3D "sm5502", .driver_data =3D (kernel_ulong_t)&sm5502_data }, + { .name =3D "sm5504", .driver_data =3D (kernel_ulong_t)&sm5504_data }, + { .name =3D "sm5703-muic", .driver_data =3D (kernel_ulong_t)&sm5502_data = }, { } }; MODULE_DEVICE_TABLE(i2c, sm5502_i2c_id); --=20 2.47.3