From patchwork Fri Nov 18 22:35:41 2022 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: 22570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447681wrr; Fri, 18 Nov 2022 14:50:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TMpbFO2pV7iKv3vpRjwBKcf6sMQ38UAbGgS7zv2BxA+SzTm60ymFyVwijskSgRwSzwW8k X-Received: by 2002:a63:d18:0:b0:46e:b0e3:ee46 with SMTP id c24-20020a630d18000000b0046eb0e3ee46mr8262363pgl.622.1668811804719; Fri, 18 Nov 2022 14:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811804; cv=none; d=google.com; s=arc-20160816; b=pPSVYCQ72K4kIfuxBOI4UXsPz1S1N6ug6k0dShlLXfTIEVYoQKjxzlUbCUAYdkCIEU s1/1QgYVWhv4zF4xNluKOS49ui9dIt/2wQ1+7LnLfUva2uQDkD0niXjwdUCXeSy5CSEu qd/OxZl09tKyhB+kliJ6ixsRg+0PZ5h4dsovQzlaZagrQcko7O0EiZjzmOECA8uYYZQF 3TybiOllWyz27nz/szviyA9TGt/DKRENwIspFXysdehpUqUO3/5eM1V6AdQStQ6Qokly kpn1BmlakqrO7Ajrm/mTRlRvvC4uZV1TJCUjzEl/VJdNgESQOWvrTvDPrW0n5mBSTSpn i+wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jvW2J+dNNeRjcyMJcO+5BzR+6MlYgd7fDUqgm7yAQRM=; b=l8FadwD4Px3mA2/+labGaw/l6lCGvOzM7OEqu2LCoiCmUPSVCHSvzXmwXVYLx8lL1P 1PSkXwyq21gag1VoS+uLIg0o5dt2WbniQWqqsn+FI5Pqgy/2meoTiryK+7ce4jPAIWux oxWxAYC3daGBupw7aJg+/AZ1THIkAqnLcEqmtZvxXEoVbqZPwSNASgfjj2X27VLIekPO rNaj1R3H3+GxTXu5/jhBZ6tHaQU/9nUJU4zmB8xrWbvE2MQnkK5s2VICvDslaN90A/ha rcmMQZQ5Btwu8fus9KFGXs5Dd6Bb131vmKgAcnQf3xG9ZudZ6ZE+XnelTIsKzvQ7T7/D yrSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a634966000000b004769f0faab8si4894981pgk.740.2022.11.18.14.49.52; Fri, 18 Nov 2022 14:50:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233438AbiKRWtS (ORCPT + 99 others); Fri, 18 Nov 2022 17:49:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232263AbiKRWqu (ORCPT ); Fri, 18 Nov 2022 17:46:50 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B57B73A7 for ; Fri, 18 Nov 2022 14:46:37 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owA7f-0007Pv-QE; Fri, 18 Nov 2022 23:46:11 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1owA7d-00588C-BZ; Fri, 18 Nov 2022 23:46:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7d-00HavL-E2; Fri, 18 Nov 2022 23:46:09 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Herbert Xu , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 007/606] crypto: atmel-sha204a - Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:41 +0100 Message-Id: <20221118224540.619276-8-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118224540.619276-1-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749876006912569086?= X-GMAIL-MSGID: =?utf-8?q?1749876006912569086?= From: Uwe Kleine-König .probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König --- drivers/crypto/atmel-sha204a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/atmel-sha204a.c b/drivers/crypto/atmel-sha204a.c index a84b657598c6..13d5299175a9 100644 --- a/drivers/crypto/atmel-sha204a.c +++ b/drivers/crypto/atmel-sha204a.c @@ -91,9 +91,9 @@ static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max, return max; } -static int atmel_sha204a_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int atmel_sha204a_probe(struct i2c_client *client) { + const struct i2c_device_id *id = i2c_client_get_device_id(client); struct atmel_i2c_client_priv *i2c_priv; int ret; @@ -143,7 +143,7 @@ static const struct i2c_device_id atmel_sha204a_id[] = { MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id); static struct i2c_driver atmel_sha204a_driver = { - .probe = atmel_sha204a_probe, + .probe_new = atmel_sha204a_probe, .remove = atmel_sha204a_remove, .id_table = atmel_sha204a_id,