Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2822325rwb; Sun, 20 Nov 2022 02:13:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tq1TOLb7dDPqaUenK3xiPCOvI3kyM6L4QjCXaqooeDKa2k2IDzXSAddzRlm9f3ylyLcOH X-Received: by 2002:a17:902:ce90:b0:186:b46d:da5e with SMTP id f16-20020a170902ce9000b00186b46dda5emr7177589plg.92.1668939226196; Sun, 20 Nov 2022 02:13:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668939226; cv=none; d=google.com; s=arc-20160816; b=WWaLyLloPiWlMuKx7qr+MRT8Ch7YflYJ85tT4WC7N6AIVAJvJPfG2wx7Kb7OM0zKB7 pdTc8lPq1IirIbiJEGFvORb7kVAmWqrzu3KCnAt1143Fatv1Q8+wCJis4nNeZejxNrnh CsUhbxqcKhQwiD2vtEQ7JWRJjwgGiUDXiTIsIVz4iNkIOqT+GNk32oLfD+pUKIz5dGN3 ge3PoRq8sVhBrHmYKMzAlFLFXiEJOONAHS27k5ZpQf/yLViZ/PYdk9VBMetjZboGTfLu yZlVdSoLbH8Was4Hw63Y99zILGqB70CVmxl4xgZFGhlqF16s4YdkY325QBjqkQ35LKn+ X4ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9CeH73YP6L8/tKyBqkauv8yKtr7kbd62tDdWAPZkAPI=; b=YWxyoierReesEsrXZb1LzreC/YzC7W5M3TQAe9tf6+eJBP6c7w5KdijVEswXdI604L 8KsrYl/4CpZu7MGz1us/135vMtGF4fY7msX/wFI0WWJP6Vky7QPrcL9E/2ow0Gqrdz6T 5tWE3Qvke6TK/FKrrOWUEr83PnlTkRsB/bdDJpw3fKjA1VeJKUx5NRHYMcP3m8MUzdxn UyAbfDTq/WjOUH0YVAIpsdbHE+xAIRpIqPWdLwFv2cAfl8ZzIaxOO2/DXDRyl8VYHkHF YUNLkd6DEoQfAVAgcFlabKJBdG/i4pc+shzttiB6ZraqeTniTwXPCmzt0MOheORjVo1a teBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@melexis.com header.s=google header.b=CjxvDjAC; 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 u14-20020a170902714e00b0018916aae7cfsi2023057plm.450.2022.11.20.02.13.34; Sun, 20 Nov 2022 02:13:46 -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; dkim=pass header.i=@melexis.com header.s=google header.b=CjxvDjAC; 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 S229530AbiKTJuB (ORCPT + 91 others); Sun, 20 Nov 2022 04:50:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiKTJt7 (ORCPT ); Sun, 20 Nov 2022 04:49:59 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CDE0140C2 for ; Sun, 20 Nov 2022 01:49:57 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id b2so6773406iof.12 for ; Sun, 20 Nov 2022 01:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9CeH73YP6L8/tKyBqkauv8yKtr7kbd62tDdWAPZkAPI=; b=CjxvDjAC682hi79CFVg17+4dp3JhMhAc40aEGnJ3NS481Pr3nGHUjwE8ClLB6CM9jH b1XnhdS0mGnc1T7nmV9lzCEYinDIcD4uhthvWkbozJfF4Ak9HpdoLr4ijZnczDh9J8Y2 fY9BDgZmDzSAfs5akNVG3e65VheTKYLBypctBsos1CEoUgFM1tXgDv9NE5P9SRlT0X2p cqP7c7KgV5mCtxNxSL/MLFXqJc9GkOW4Gbh7QKYgt152wf+s0E993T8BE4tz07jEo87P bOGgc4+coqYoRgjvHk95fjDX1ycXC8nxeFC+NqzOavTOckzQu7elST8g5TSyR3OgHTZ1 FFzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9CeH73YP6L8/tKyBqkauv8yKtr7kbd62tDdWAPZkAPI=; b=KW0K4CoN+mrHUkOw/9ooaLOkYwpZ6W8VQlXy5aSQMn8URgsXmj2VTrCECfVrhO9qZ8 KTDQzio4DGgS7zMN84zYlMzG8dJ1lEB6TfLJZ/dgO/GOKZc8JXaz/dsoLLI1xYyqL32s nmli5ThP0DsJyVA/mhYRVloSExTM/YlaJ1mVJatpmXZKr2Rhl0PQ13zClnu1ao/r9YI+ nJ0c7xhvE9257UiCFDm66rkLMHMKswPUu7if6VjudaPdfw8Bsz/iYKr3/XfQhlD+ZPxI +8A/JgIxg3tFKHpk9c/Vf5/DcyxDQFLYOGUCmLhF39e+fIEl/V8ifW4xtlecR3b1TdCM xa/g== X-Gm-Message-State: ANoB5pmHoll6aOtjS4kb3mNI7rYn68qnfvIpJAZA745O7qcCF7c7IC0Z 9KH9/4zHqfWOje+UjSU0rJ400uwSDX14BaKT1c0brg== X-Received: by 2002:a02:6d54:0:b0:376:24f6:d0f4 with SMTP id e20-20020a026d54000000b0037624f6d0f4mr6421543jaf.206.1668937796820; Sun, 20 Nov 2022 01:49:56 -0800 (PST) MIME-Version: 1.0 References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-187-uwe@kleine-koenig.org> <20221119100250.iw757ovgwjbwr2ho@pengutronix.de> In-Reply-To: <20221119100250.iw757ovgwjbwr2ho@pengutronix.de> From: Crt Mori Date: Sun, 20 Nov 2022 10:49:20 +0100 Message-ID: Subject: Re: [PATCH 186/606] iio: temperature: mlx90632: Convert to i2c's .probe_new() To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang , Angel Iglesias , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Grant Likely , Lee Jones , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 Ok. Acked-by: Crt Mori (resending since previous mail was not delivered because it was not plainte= xt) On Sat, 19 Nov 2022 at 11:02, Uwe Kleine-K=C3=B6nig wrote: > > Hello, > > On Sat, Nov 19, 2022 at 12:04:41AM +0100, Crt Mori wrote: > > On Fri, 18 Nov 2022 at 23:46, Uwe Kleine-K=C3=B6nig wrote: > > > > > > From: Uwe Kleine-K=C3=B6nig > > > > > > .probe_new() doesn't get the i2c_device_id * parameter, so determine > > > that explicitly in the probe function. > > > > > > Signed-off-by: Uwe Kleine-K=C3=B6nig > > > --- > > > drivers/iio/temperature/mlx90632.c | 12 ++++++++++-- > > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/tempera= ture/mlx90632.c > > > index f1f5ebc145b1..19e30cfca8a7 100644 > > > --- a/drivers/iio/temperature/mlx90632.c > > > +++ b/drivers/iio/temperature/mlx90632.c > > > @@ -1168,9 +1168,9 @@ static int mlx90632_enable_regulator(struct mlx= 90632_data *data) > > > return ret; > > > } > > > > > > -static int mlx90632_probe(struct i2c_client *client, > > > - const struct i2c_device_id *id) > > > +static int mlx90632_probe(struct i2c_client *client) > > > { > > > + const struct i2c_device_id *id =3D i2c_client_get_device_id(c= lient); > > > struct mlx90632_data *mlx90632; > > > struct iio_dev *indio_dev; > > > struct regmap *regmap; > > > @@ -1337,7 +1337,15 @@ static struct i2c_driver mlx90632_driver =3D { > > > .of_match_table =3D mlx90632_of_match, > > > .pm =3D pm_ptr(&mlx90632_pm_ops), > > > }, > > > +<<<<<<< ours > > > > Maybe some of the merge artifacts left (also below)? > > *groan*, ok, thanks for pointing out the obvious. Fixed in my tree. Ftr, > the fixup is: > > diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature= /mlx90632.c > index 19e30cfca8a7..753b7a4ccfdd 100644 > --- a/drivers/iio/temperature/mlx90632.c > +++ b/drivers/iio/temperature/mlx90632.c > @@ -1337,15 +1337,7 @@ static struct i2c_driver mlx90632_driver =3D { > .of_match_table =3D mlx90632_of_match, > .pm =3D pm_ptr(&mlx90632_pm_ops), > }, > -<<<<<<< ours > - .probe =3D mlx90632_probe, > -||||||| base > - .probe =3D mlx90632_probe, > - .remove =3D mlx90632_remove, > -=3D=3D=3D=3D=3D=3D=3D > .probe_new =3D mlx90632_probe, > - .remove =3D mlx90632_remove, > ->>>>>>> theirs > .id_table =3D mlx90632_id, > }; > module_i2c_driver(mlx90632_driver); > > When (and if) I'll resend the series, the fixed version will be > included. (Unless someone picks up the broken patch with the above > fixup of course :-) > > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-K=C3=B6nig = | > Industrial Linux Solutions | https://www.pengutronix.de/ = |