From patchwork Fri Sep 6 16:33:24 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: 13794459 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BAC8DCE7B0C for ; Fri, 6 Sep 2024 16:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LfmJOb/jUm+7E9CUcvrFmOvdVMUS+Zu+g542F26uVC0=; b=1nTU2s7ONxde21 5kRjd3VWlF8wTnBYU1c0ecLZbF+3+I/o40rB2Z/cLO/MuzR6MgvmKpH6STm31PgAD83oVTJH7LBWI +c8yzQsvknDSAzbbh/HuVnCT0MK1toTXHHFUnslvBsdX63S1ZMDgh4pUgHiPxU3iewnxVnCgA8fG6 HOvthMTHdwUJ1+gMMurOAkr5Ga8KeIW6sABKLnYSJTzngs6g7dypuubEolnHo+Iiy8UDuuxmqSr3e 0SXEpU8ohMjYmpvxs8xitXyNO1YOWX1Kl/cmLS+4HRCoG6SrqEmmf6EVxF3YsqLBHKAaT8yU+mwpG QCq4dKsKLIaxO7dU2poA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbwI-0000000Czrp-1ZrY; Fri, 06 Sep 2024 16:36:02 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbtw-0000000CzW7-07Yw for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 16:33:38 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a86e5e9ff05so270870066b.1 for ; Fri, 06 Sep 2024 09:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725640414; x=1726245214; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LfmJOb/jUm+7E9CUcvrFmOvdVMUS+Zu+g542F26uVC0=; b=ytby8KzJzSWgf+EG6Vtaing0wHSRafDFfdgwubsFQe6ySxhCDTWbTlSzTf4e2kzoeB w1WgR8oOBds4srhkG9e+R1uTtyXk4VXhjNCTQAX8QVJellRvWAmHuZZnNuT6XwV2q0V6 8Wbbs6f8eiLowP3mU9zQfhb1bP5HcI3vtMO6VUuKTPvlxLA8lGoXGpH32nZhPkWAX/04 8uooPrWR8gZdON7ZbE1d9Pf+J4abobmGhUN5bIjPdPNfALheuJzwNQXZCXEExiqsrDI9 8DsS5tYgkmCRYmBYQ+xuQc+3TB591vB84sGEapFQk0CnqtpRrdzFUHgyd8LTsYn3rqK1 doZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725640414; x=1726245214; 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=LfmJOb/jUm+7E9CUcvrFmOvdVMUS+Zu+g542F26uVC0=; b=T2rfLzMgcykD74Xwzf1ivAPO8trasJ4rHmPiNGKIZZatbjQfUkGG/yKZrzmQmJ4lWq ScrKYIU5LbUEAJuRnjhrs3hbjdBXvrnuGeBABrqKF6rc7Nuhfm8cgHAsz4q97VvIl7gH SJLp5I1XVw11BV+nVCHdsDaL5wjhZCoMQnY3oHOn/d6loAJdwQKdn941ds+fPGKQs0my zVgzwJlJXZ+bxP09cNGgHBTzLwE8S+XPtXMo8cXlhhtuPjfhllmz093bzfTctcsq2Ufs o00kCzHbR8mU9PUfQ6G/Q9Q7cU7rcAqvAkv+Ge/2LZL3jjUmNm9FYGPurc31TZo4+rKI v1uQ== X-Forwarded-Encrypted: i=1; AJvYcCX+9bfZRzadUFQ/+uwbYE/TAOhLDauIpDLK0mhuIiK+ow6N+PDp8QL9FvM5vcEHGsyU1MQD1C7rJCD2ClBjinaN@lists.infradead.org X-Gm-Message-State: AOJu0YwVXmOHyZNdWwdclJIHSRe00rV/1q5+rgUtcmgEvnj3lwDZhXZ9 QENwnZy+u74i/B3Z7JiMhuUn4deaPQ1G/WSHPldL1ZK/cTJnyJcDGsi/Ay+Li74= X-Google-Smtp-Source: AGHT+IFWSyBL0JGYi5gI1X5ENn5sLmxFPNM801IhUvElezaEQPT8qc9UzQS1LyqxKb6OmdTn5QYizw== X-Received: by 2002:a17:907:31cc:b0:a8a:7549:2a25 with SMTP id a640c23a62f3a-a8a88667a59mr272522666b.36.1725640413963; Fri, 06 Sep 2024 09:33:33 -0700 (PDT) Received: from localhost (p5dc68d3d.dip0.t-ipconnect.de. [93.198.141.61]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a61fbb039sm298591366b.18.2024.09.06.09.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 09:33:33 -0700 (PDT) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Peter Huewe , Jarkko Sakkinen Subject: [PATCH] tpm: Drop explicit initialization of struct i2c_device_id::driver_data to 0 Date: Fri, 6 Sep 2024 18:33:24 +0200 Message-ID: <20240906163325.321610-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1930; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=I9FitKu32sQS6CHvjwK/wGygEoj/DAIBEjDdIB8l+C0=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBm2y7V5AcqoyWa4VJFQjAwbJEE1qbNFlEeYbWwT gmNcKMDW6iJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZtsu1QAKCRCPgPtYfRL+ Tow1B/96v1OtyI0evFeGDr47TBuE+9OV4qiOz6lar458tuI7pRp1VwY0uXc1hqYoML4Nl3AhQYz px9YKkHpK2Y4WGR1Gp2GqD5tiiJFPoJwjhL8N10fc++DFaxqauamORBnm4vLVT0VFR324LQqRi4 vLfFVR4y6riib2KX9w/7mrWJLfVuXXfeFcvgWDeiPuvKsG42/R1JXUYyVcgiHjwZI6P7mA6vmcJ DNjjhFDZdBCFz1Zzz7rtJqzm1zOEufthJInBDGkgTgam6l45OcSaVjj82SO7HtvHmvg14zd6Hjj D0rEl7r/nkkgSoTSl+MuPPaaOP6X4S4OIl5milsuB+esvEqS X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_093336_092079_A5E51875 X-CRM114-Status: GOOD ( 12.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Claudiu Beznea , Jason Gunthorpe , =?utf-8?q?Ahelenia_Ziemia=C5=84ska?= , linux-integrity@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/st33zp24/i2c.c | 2 +- drivers/char/tpm/tpm_i2c_atmel.c | 2 +- drivers/char/tpm/tpm_tis_i2c.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) base-commit: 9aaeb87ce1e966169a57f53a02ba05b30880ffb8 diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp24/i2c.c index 45ca33b3dcb2..81348487c125 100644 --- a/drivers/char/tpm/st33zp24/i2c.c +++ b/drivers/char/tpm/st33zp24/i2c.c @@ -133,7 +133,7 @@ static void st33zp24_i2c_remove(struct i2c_client *client) } static const struct i2c_device_id st33zp24_i2c_id[] = { - {TPM_ST33_I2C, 0}, + { TPM_ST33_I2C }, {} }; MODULE_DEVICE_TABLE(i2c, st33zp24_i2c_id); diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index 301a95b3734f..d1d27fdfe523 100644 --- a/drivers/char/tpm/tpm_i2c_atmel.c +++ b/drivers/char/tpm/tpm_i2c_atmel.c @@ -186,7 +186,7 @@ static void i2c_atmel_remove(struct i2c_client *client) } static const struct i2c_device_id i2c_atmel_id[] = { - {I2C_DRIVER_NAME, 0}, + { I2C_DRIVER_NAME }, {} }; MODULE_DEVICE_TABLE(i2c, i2c_atmel_id); diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c index 9511c0d50185..6cd07dd34507 100644 --- a/drivers/char/tpm/tpm_tis_i2c.c +++ b/drivers/char/tpm/tpm_tis_i2c.c @@ -375,7 +375,7 @@ static void tpm_tis_i2c_remove(struct i2c_client *client) } static const struct i2c_device_id tpm_tis_i2c_id[] = { - { "tpm_tis_i2c", 0 }, + { "tpm_tis_i2c" }, {} }; MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);