From nobody Sat Jun 13 16:24:03 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.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 8A113246781 for ; Wed, 6 May 2026 14:49:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778078970; cv=none; b=YZuQgLTnh1EC5BSszBVvs1LufIFQHvl1TCU3ZrYfxjGIyByPEwl+jedLrB0M3veTMycb1zioA5gPw0buQiX0WJkNOAiCjHtOCfwRQljaqoB5Ei/IS9XLIoLVZNeyGb974i19MEqEtxiobWpSRubG+f02RcC3d6o4qRSbFib4d+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778078970; c=relaxed/simple; bh=JAwO0GnFewziOCTbfnLEhiDT49kC56alAv8N5J+cYc4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dYU5Ia4kFsn0Ec6VongV9JWElumDqQ8Yeyab0JxGfMmNba+CJZKtRvoaaw9F8UmMZ87tuVVlFnUEUkEB7ezdXQUOzIZ+2PVOQYQElzAnkLRmOzaB/hqYc2NDZ0QubHd0SrNRx0ToM/3LqPMccze9msyWuccRoYfURf6FNAnlhvw= 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=AwZu543A; arc=none smtp.client-ip=209.85.221.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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="AwZu543A" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-43d73422431so6144110f8f.2 for ; Wed, 06 May 2026 07:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1778078965; x=1778683765; 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=mgapLd3aySuAQ3iWNsV/rjtWMsIkyAS5NNwh4PX1s+k=; b=AwZu543A8oyZx+Tm2Cu9cJEhL2EqBSA+crffBZdk9Tt77tTNFVplORPOunKaZyRSTp gdznyQZDKdOlPeEtmz8GR3OIOBPFjuyGtYkvgAmbaqUCVCYuYKy6JZ0InDm5jsS3fzm8 ve43Nh0k5LTzACGP/URXnozmt8/evldoU7LUUfWomi/b6+bOauZFeFaxcooaOJ+SfZn/ ZGfSNCOXzWovdf2AEQ0svWyEQN8UU5dvphJ1vQZTe9ePigX53DFZDH+5o6a/6X2V2r/R Crgs+HivEL7gmkJdrWNQTyLITnEMzByAVfM1FcqGy1FhgQjFpGyrI0l5Iof4SGtQixeH t0KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778078965; x=1778683765; 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=mgapLd3aySuAQ3iWNsV/rjtWMsIkyAS5NNwh4PX1s+k=; b=XGJG+X+rJG663vEDLbcce35yx+FhJ05DTBkISU4c8NK1TST6kfniMt5P97bth1m4EO 3DVwNGgHXaTiq3f7vJAV6bjBLwUNq5squQXyW4fMFxleM7RLWzLvOKoOQZR5GOu4Xgoj 2koltCv19oRHFOLppC1xik4+IQzME86v6t6FdxOaJE5i8n+2Zn4cH15R1ivsf7N9ivWw OUESIKFjbObu93NRp7t/J2YEsCtJ9kGz99x2lzB1z+vUTdvczvGDtqSvNAlzFQa3P6NH bghANowLxA4f0ZB8uumU+LQkPEWDpidv9l6PUjlGMS6pkYGWjzOgFEp5bcUxFWn5TqP9 Kg7A== X-Forwarded-Encrypted: i=1; AFNElJ/hcWdhB+J1hOwy4QKkbqjydtmU7cpowjXDqI5kDUns+ZlEeDkyg76Uc2FkxJfFZaCoWpNkFF7wMx89LbM=@vger.kernel.org X-Gm-Message-State: AOJu0YxZU0qgFdVhhb2JeZ7nJnCH5GLNiF9enhRNBuGt+4aQtfEogvCb KbqBjtOquiFbseuwraBXDTrxCAQuBGPOsyECMiC7HpqG7+SWdSoEa7okLazCnFKrx3zRjdZTz8O jdZ9Y X-Gm-Gg: AeBDiety9qGdebpnTj/aXV9YijVIYmE8st6P9RK4Xi+zHhr5tRX1OFhdm3iWEHBmJlv iJrLmGR1T8dgtMhiYoX5XdaGXyq7D8zAdfBpS8swCYZKpht7NPjI8eDokY6Yk4hMiB2uj/vTi8W N/EofXCqISN4aNkTOVJHWZ3sYI+ZGLWiBtNwwLx4yYrDSo2OAnwtX6TSX8+xyXCmzsZtSfkbE0p Da0PBm7pyw1QoPVm91nZBju6+rXl6TDdOoreDvaSFph2/WE7RbAs2foubcoPZ9mat4rxMCv93Cc oh8iEqSttasyY2XMR7/7Gmu4RRPQvYoTWub/gUhKeqKcPnTN2DW/6fFUlzl5aZB+4vdG96L71h9 CDmeufVerEaZgNFTTneXJBrKA6jUaBB97k1A9vsnbsJR6pCELMeK9sM/LXvMy2QCN8e1MC4MFg8 uiHL0TexciSCq7tn4leRc+jkyuk5xXR8iXHPMzkwniFHzUy/uFKzBmx9JGzKI7p8VxXtLivTnce JRpbWNKxXHoFolVw/w/QwAg X-Received: by 2002:a05:6000:250c:b0:43e:aefa:db84 with SMTP id ffacd0b85a97d-4515d5c65ddmr6662012f8f.34.1778078964803; Wed, 06 May 2026 07:49:24 -0700 (PDT) Received: from localhost (p200300f65f114e08e4d20e057e51ec46.dip0.t-ipconnect.de. [2003:f6:5f11:4e08:e4d2:e05:7e51:ec46]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4505238e174sm13144251f8f.1.2026.05.06.07.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 07:49:24 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH] gpio: amd8111: Drop useless zeros in array initialisation Date: Wed, 6 May 2026 16:49:18 +0200 Message-ID: <20260506144918.2445358-2-u.kleine-koenig@baylibre.com> 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=1446; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=JAwO0GnFewziOCTbfnLEhiDT49kC56alAv8N5J+cYc4=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBp+1TuEhGAiYN4nXNTv6eOCHx3l6YSA+SkHezNr FKGlSo6MBuJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaftU7gAKCRCPgPtYfRL+ TmtRB/9Y+Nt9AdJxhMk6daKAQG+SwK35kPH1p9uzanjfN4IFYpmu2xFd4OHYNV5l8kzolYmVh07 83PbE1HDsttloHJDICbnu4yB9dU/dnao9g5xvdNbbHk2/o1e6TGl7NAfkIUh9zbIAzFOZ+3qnvB KVElPIV5vY5ayOeAl0SxKovPYSrxWOE8VR+enYAeNSY8eXoMTX8PtePQPqzl9Yuyxg/Si5R3+sM xuZ2KxeDiMolIdl5fQn/zKnuUr4wo1B8BBUmAJKXpjuPCo55AHlK2QFnmjcLV0UVlEO6KkOGuya 6Tix+6Q5hjWnz/3seFHukdXVDTLHXf1Ep4PMyaXhkpfZTzDG X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable The compiler fills in zeros as needed, so there is no technical reason to add explicit zeros at the end of a list initializer. Drop them. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) --- Hello, I'm currently cleaning up lots of pci_device_id tables to not use list initializers. This one is a bit of an outlier because for my next patch quest I need only named initializers for .driver_data, so I don't really *need* this patch in. But this first array member's 0 in the original code initializes .class. It's very unusual to assign .class but not .class_mask, so I guess this was a mistake (without consequences). (Named initializers are great!) Best regards UWe drivers/gpio/gpio-amd8111.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-amd8111.c b/drivers/gpio/gpio-amd8111.c index 15fd5e210d74..8078b5d7b80c 100644 --- a/drivers/gpio/gpio-amd8111.c +++ b/drivers/gpio/gpio-amd8111.c @@ -59,8 +59,8 @@ * want to register another driver on the same PCI id. */ static const struct pci_device_id pci_tbl[] =3D { - { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS), 0 }, - { 0, }, /* terminate list */ + { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS) }, + { }, /* terminate list */ }; MODULE_DEVICE_TABLE(pci, pci_tbl); =20 base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 --=20 2.47.3