Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4227849rwb; Mon, 21 Nov 2022 05:22:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7AmaOtqwzqpOMe7EjTbDDjsc2KopcRCEg9fcjY6qHXOiAOfKys522nEl69fLw6716YO4Gc X-Received: by 2002:a17:907:c081:b0:78b:5182:7ffa with SMTP id st1-20020a170907c08100b0078b51827ffamr5714946ejc.244.1669036972206; Mon, 21 Nov 2022 05:22:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669036972; cv=none; d=google.com; s=arc-20160816; b=YqqR5ARLsnqszFSHleBHklda25XQPlg3V6INvEUrL7RRlhgbrCxx5XE5635f1fqEOX CtAnXGCGrkfzEOmKIThJjySLuY8e+r/Ljzr4M/FxYnhxWjGf5RWp8L6bAqIuIgS7OVDn mzd7xrSGnYMHBWTQUnD7ytkzhVyd26wY7udjeEYASRrVaKU55OBN7hoRD32S3Ns2OsI0 i4MOWeKBM7iReIiy9CzB3QuZA02xDdYDM7IOQE6zw19NWVe8JizBnbAcTg30tvEM+FhN D7wXBLpE4lJ/RTvF4nbFYhee5TVJW3OPwZoMXIyk8I0b3PlgePagZ8ez+kReECVrD5u6 kaMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OT5voHo8eud+U22Kep8frh+ewAbWliYYiyYUY7ptGOs=; b=m05/RQuL3TErlgULhu7AQuvteLhzfQi2tGBptPEuAoXraLOg+HL1PphwNCxSz7F+4/ dsmt+Y/u2zhwYByZyP53U1Ivs6vhoiA+4+GzE3lmOdJYSz+WWyT0c0DnkXmqec5W6BUN pHro8dUjC+Oy8v6cnlTy20AuJDmLukatneym4gxKMg3I9N1z6aaNg9O+6pXFzpIISc7g tkqgZmYV1pMQOxc4sk7KJPaT9gMqaON+iD9sEaWWwsPotytm9upU9YG+VCe+abMO0hZi 6r5UXj/rR1vmVeh3TkQ0COo8jP13LaYu1yYqgH7L5MMdyk1KUv9s4v9izG7Lro1sUtwo gC9g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a170906251500b0078da414a7cesi7167349ejb.149.2022.11.21.05.22.27; Mon, 21 Nov 2022 05:22:52 -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 S229813AbiKUNBe (ORCPT + 93 others); Mon, 21 Nov 2022 08:01:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230099AbiKUNBM (ORCPT ); Mon, 21 Nov 2022 08:01:12 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D81A89BA16; Mon, 21 Nov 2022 05:01:10 -0800 (PST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id 78B9A1C0010; Mon, 21 Nov 2022 13:01:05 +0000 (UTC) Date: Mon, 21 Nov 2022 14:01:04 +0100 From: Jacopo Mondi To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Jacopo Mondi , Andy Shevchenko , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 067/606] iio: adc: max9611: Convert to i2c's .probe_new() Message-ID: <20221121130104.ftptygyvtgzxplhv@uno.localdomain> References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-68-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221118224540.619276-68-uwe@kleine-koenig.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Hi Uwe, On Fri, Nov 18, 2022 at 11:36:41PM +0100, Uwe Kleine-König wrote: > From: Uwe Kleine-König > > The probe function doesn't make use of the i2c_device_id * parameter so it > can be trivially converted. > > Signed-off-by: Uwe Kleine-König Acked-by: Jacopo Mondi Thanks j > --- > drivers/iio/adc/max9611.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/adc/max9611.c b/drivers/iio/adc/max9611.c > index f982f00303dc..cb7f4785423a 100644 > --- a/drivers/iio/adc/max9611.c > +++ b/drivers/iio/adc/max9611.c > @@ -510,8 +510,7 @@ static const struct of_device_id max9611_of_table[] = { > }; > > MODULE_DEVICE_TABLE(of, max9611_of_table); > -static int max9611_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int max9611_probe(struct i2c_client *client) > { > const char * const shunt_res_prop = "shunt-resistor-micro-ohms"; > struct max9611_dev *max9611; > @@ -557,7 +556,7 @@ static struct i2c_driver max9611_driver = { > .name = DRIVER_NAME, > .of_match_table = max9611_of_table, > }, > - .probe = max9611_probe, > + .probe_new = max9611_probe, > }; > module_i2c_driver(max9611_driver); > > -- > 2.38.1 >