From patchwork Wed Sep 18 12:31:52 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: 13806866 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 1E6F4CCD1A3 for ; Wed, 18 Sep 2024 12:34:07 +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=hZhliqxgyY7Mq8AOL7Bnvj0uEwOcI/YT63YI4qZtzkU=; b=sL6GTs3RYtXlNJ itu3Ih+zmh3GKcZdWuLqmwUWeg7H2GDV61aN6QKzRV6vFuicFTZVxtTOEt4mWtJeHCxfuykCHq8xu ALSVq9I5pN43tBfr5FM5Auvq4rTndMY/Ibo6LMYYzDvtlBdQSsl5NNCfeb9Gi+9MoknyC5tzcLwyz LQkug+OAT3YuSYZ2PCWRFMjxoSSURvAs6zFqfla0F+rBVRYh4r1vSSWqhmn3brpp4FTN6Rn7x7UUC 07BdbsUTPaOsVa2m4mR1teK7g4ACwXuSfsFa4ZTuv5Eic4hncVDnI/Huowy4xaZibMBNeUvsthnBV s/IIs/bZVcNrkffqPXrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqtsY-00000008F5M-28Dk; Wed, 18 Sep 2024 12:33:54 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqtrR-00000008EtS-2J0Y for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 12:32:47 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5c24c92f699so7186163a12.2 for ; Wed, 18 Sep 2024 05:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1726662764; x=1727267564; 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=hZhliqxgyY7Mq8AOL7Bnvj0uEwOcI/YT63YI4qZtzkU=; b=sJpemc3lwxKRj5RqyftbZn8eZ0pJsKxnbN7qsNlRyouXZvQ5wGWVhG3flkBwyVCnGD nPndYt3nKUc3tWyhtj2LLEJagfOXyf5kMW+/ycv+orCTkUo3C1qTTd5i5RXJYVtofJaz OBq3bTVhV0yep2EY9mRvqeEGoqHLWbLTUPn9XevlhJAjDnWIF07TqYGtUmVTx1msh3r/ LhPilreB1M3JqktzYJXmFFi1HFlSZ9muE0s5nO6eru31Wpkwts6c78FfYfELO5rWRK51 Wk3WdurYObrMwCeH0CPlvIWVY53nOBUFKsaQrknVvqB46jHhuwtl5H41YE02rQFH4bYG f61w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726662764; x=1727267564; 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=hZhliqxgyY7Mq8AOL7Bnvj0uEwOcI/YT63YI4qZtzkU=; b=Q+rdjiI1Nfu5gpybq00Gvef8W+FmGQPs5RwUY4AUuMtPmEH8ljNXGB90aNg8vZ8ICa OSV2EmS939ntfZ8KWHDtJ84zFx7tpM0+hh/Do07V2MSCrt/dOndTg/M7u9p6W3GJ8qAz 5Fi2g5ny73zZ/dSr7wPguhX6h2WrjkJt0xO7G9zAs1ZhtJyKVVRudcK314FjIwknGkPj sJHSLWRp8sTDRxQ5I5QV6zl84rKa/S6lao50eNowfo5AQbKRQcNaSon2f77FKdyOBsa3 O/309+TOu/R+y97uYmGqwCDrXg0JgHL+kDM9nKCAKbDfMmeEsDguK/X0mg16MCxobKx7 v0TQ== X-Forwarded-Encrypted: i=1; AJvYcCUEGRmfplzKbLwUzP4fF43fSTtc91yJGYsIT5P3AhmP++Wac8fZNp5RrRzCMB63jDH/UewC3a4W19zeLvvy+vvZ@lists.infradead.org X-Gm-Message-State: AOJu0YzUDrN5NtsLXym9RECWy4G+0TjAbJh96WD2jKuTONb4FXy4i1KQ DLLoE7oitp4vQ94Csxg7BBjKHlVGV94RH8J5BbCLoNEZfW2ah2l7sDqRYJAWI6I= X-Google-Smtp-Source: AGHT+IEEDVpwRhC6Scvjb+H97Br0hyyr92G4Ib/fmF+/0i4P6aqXZzcuKxCynYAv7kEBWVtqeg7aiw== X-Received: by 2002:a05:6402:40c4:b0:5c4:23ba:95c4 with SMTP id 4fb4d7f45d1cf-5c423ba9733mr16448765a12.9.1726662763852; Wed, 18 Sep 2024 05:32:43 -0700 (PDT) Received: from localhost ([2a02:8071:b783:6940:a2bb:f619:b5e9:672f]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb89e07sm4851775a12.76.2024.09.18.05.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 05:32:43 -0700 (PDT) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Herbert Xu , "David S. Miller" Subject: [PATCH] crypto: Drop explicit initialization of struct i2c_device_id::driver_data to 0 Date: Wed, 18 Sep 2024 14:31:52 +0200 Message-ID: <20240918123150.1540161-10-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=1525; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=vKJnZkWWS80Qtmju8Q/9wyDHuf8ljsMViMpaXgjgy/0=; b=owGbwMvMwMXY3/A7olbonx/jabUkhrRXJ1w8dDpM8y8z5jDwORyTZn4WmPqhwennjICZHXItE hlHjrt0MhqzMDByMciKKbLYN67JtKqSi+xc++8yzCBWJpApDFycAjAR5kfs/6smq/sGl/Xlab2J sP/LE3yI1/l2v/WrgFcqNY6m7/wXOBn87Shg/NEpfd3IptDEe0HP8Xu3kzi6z62JFXjxlimp71w hv+7irQ+SAxY7pN1fdXtVblhl88520YW29++c2++2SjBoq8/P9OKGjcyml6KUtsXammo5JH2W4P osJDJNr9RtiXyBlMRGidg4xgo3nmXmSWIbzdoT9Nm4Zt54Z7BQz3+nlFzmqqeKr34ceNiUqHO0d lVRMNPeHl/DJ5G220/k2mn/O58ky/Yqmpml/TVT+ByNgGa1LQoLH/28nlK51LTY0tyH+3lJ9IPf +tlej757Bt1O+rjj2ORfrP51sWdF0qynXH/64+vGaaEA 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-20240918_053245_609413_60F1A99B X-CRM114-Status: GOOD ( 14.74 ) 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 , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Claudiu Beznea , 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 --- drivers/crypto/atmel-ecc.c | 2 +- drivers/crypto/atmel-sha204a.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) base-commit: 55bcd2e0d04c1171d382badef1def1fd04ef66c5 diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c index 590ea984c622..0d48e64d28b1 100644 --- a/drivers/crypto/atmel-ecc.c +++ b/drivers/crypto/atmel-ecc.c @@ -379,7 +379,7 @@ MODULE_DEVICE_TABLE(of, atmel_ecc_dt_ids); #endif static const struct i2c_device_id atmel_ecc_id[] = { - { "atecc508a", 0 }, + { "atecc508a" }, { } }; MODULE_DEVICE_TABLE(i2c, atmel_ecc_id); diff --git a/drivers/crypto/atmel-sha204a.c b/drivers/crypto/atmel-sha204a.c index a02d496f4c41..75bebec2c757 100644 --- a/drivers/crypto/atmel-sha204a.c +++ b/drivers/crypto/atmel-sha204a.c @@ -202,8 +202,8 @@ static const struct of_device_id atmel_sha204a_dt_ids[] __maybe_unused = { MODULE_DEVICE_TABLE(of, atmel_sha204a_dt_ids); static const struct i2c_device_id atmel_sha204a_id[] = { - { "atsha204", 0 }, - { "atsha204a", 0 }, + { "atsha204" }, + { "atsha204a" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id);