From patchwork Fri Nov 18 22:43:19 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: 22727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp464167wrr; Fri, 18 Nov 2022 15:34:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DRW0q4h6VA8tYqFNrltTXm34vnseFDlhnnw6LtwIeYaJUzecFsxZxkWIAGDVLR2MnqZmy X-Received: by 2002:a05:6402:3807:b0:45c:a651:87f1 with SMTP id es7-20020a056402380700b0045ca65187f1mr8012531edb.359.1668814451166; Fri, 18 Nov 2022 15:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814451; cv=none; d=google.com; s=arc-20160816; b=mnVJ9hIoFPeeuO8kd8deoy0MWyyzsfY1zjbNomRFOtm8ZWtFw9iJswGNuDhC5lraL5 TBTSAVFeQ2XyuWW1RI/r/KceiTqzShkOe//1QMqVcBf168WcUGcQ3vbRF4750yjkKzTP KDtNqfX7GrGJcqqJ7NWFaj3YQQfCUYH8CQw/n9s8XCHuidw3V/G6gfHM7BtGPG0jv+yG eU1GjE92PFqhDF1zgWF5nhY8m3riWjrgHEFqgTk318ebMhwHeA1VKcI+ZhRJ7Rm11N2p FKggaQ4VAS8jMEjCep9wFfHIEXDxOJFjl5ZrF+sRnCUwyRys7zYkyJSeBkEiEtbk7qmR vMTQ== 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=t1fAoP+B3vSk+/N7iu7GrMn+Hou+d+p3SzovZYwVnAU=; b=kyAt5qSYvCPls5XJAXt2/GqzlYyVOXaDUdQmWpNGdOVDl8g349bCjFdLaXpVdwOCUf 7qnskLms9RGOqrAvmNWAk72+0kZmL+2P4wmqnF+RIdpFQE8Lb4uXgF/DRoKdna28mKnS MshCCFS/sQ5GDXpVLjHv/DLc91/J7WIMobtK1iWRGqCbmJEAoHjUFRe3ZNC/sJ0HnNFP nlOIF4PqGMBnAMnwbodzod2obEm9FCFckBUGBNUMfOGgIAo1+1sO28odkccuvxb6bbz2 ECzEw9hJCSmr6nt+Y9v9dHN88b6QKJ9/EsbtGRwVutEx+5wQiI2o5SohL6+12MAYmHMN Abtg== 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 ml21-20020a170906cc1500b0073d71124609si2872772ejb.182.2022.11.18.15.33.46; Fri, 18 Nov 2022 15:34:11 -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 S235874AbiKRXd0 (ORCPT + 99 others); Fri, 18 Nov 2022 18:33:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235974AbiKRXa3 (ORCPT ); Fri, 18 Nov 2022 18:30:29 -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 0440FD78 for ; Fri, 18 Nov 2022 15:18:25 -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 1owA9L-0004Kq-Ia; Fri, 18 Nov 2022 23:47:55 +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 1owA9I-0058j4-SZ; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000N3-Sf; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH 465/606] mfd: ti-lmu: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:19 +0100 Message-Id: <20221118224540.619276-466-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=ham 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?1749878781472176952?= X-GMAIL-MSGID: =?utf-8?q?1749878781472176952?= 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/mfd/ti-lmu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c index fd6e8c417baa..9921320be255 100644 --- a/drivers/mfd/ti-lmu.c +++ b/drivers/mfd/ti-lmu.c @@ -133,8 +133,9 @@ TI_LMU_DATA(lm3633, LM3633_MAX_REG); TI_LMU_DATA(lm3695, LM3695_MAX_REG); TI_LMU_DATA(lm36274, LM36274_MAX_REG); -static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int ti_lmu_probe(struct i2c_client *cl) { + const struct i2c_device_id *id = i2c_client_get_device_id(cl); struct device *dev = &cl->dev; const struct ti_lmu_data *data; struct regmap_config regmap_cfg; @@ -216,7 +217,7 @@ static const struct i2c_device_id ti_lmu_ids[] = { MODULE_DEVICE_TABLE(i2c, ti_lmu_ids); static struct i2c_driver ti_lmu_driver = { - .probe = ti_lmu_probe, + .probe_new = ti_lmu_probe, .driver = { .name = "ti-lmu", .of_match_table = ti_lmu_of_match,