From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0E96C4332F for ; Fri, 18 Nov 2022 23:19:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232752AbiKRXTc (ORCPT ); Fri, 18 Nov 2022 18:19:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbiKRXTE (ORCPT ); Fri, 18 Nov 2022 18:19:04 -0500 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F1A97ED7 for ; Fri, 18 Nov 2022 15:04:26 -0800 (PST) Received: by mail-il1-x131.google.com with SMTP id z9so3239652ilu.10 for ; Fri, 18 Nov 2022 15:04:26 -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=WjpJ7YUQJY6Hgwjbl7LkJRbvBhSrnKhNjJy14nrac+U=; b=QXnrZJlmcrDl8ajS1QaMM5U5XhIP9Q2mC7yAVVRUjiB7zK38w1xgLa8ESg7U8Yt9iI VYMRDuhem+WVOLHh8pxPOizrn/1gRSc+Mu+mRZGfopx/rwl7xkEEmlfsRlgi06/G/HTn nBr1oCqipzTM3V46kR8iekHIl+/GqlU7XrEStitC9Ts4P4bImBFE0EnExTdfKUJl6rOJ rKmDCN13WEyYwm/GNI87PSY0zfrRj8LAb5bR0OaMI91uRSY9z4LBSSJnEjvrjyL0Tiah JaEXOnsxQepBnFlPZfXlPH5v0tv5HYG89UUMhuhw+U05mMUUaGWWtOZ7sh4KwNrrM0Ab NKXg== 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=WjpJ7YUQJY6Hgwjbl7LkJRbvBhSrnKhNjJy14nrac+U=; b=jIqDcBmc5X4Wr4w4o3JVyWawXdfCqUT2bYZIns33qDZTK3WAamOOhG2eq0bPhG4/OH 28T8Z9l1cjfxvv6BElxBnC2dx+3m2Lx8eNk/Q0emvnYDKmcGH2cUDQ/nk53HvfaZcR/I WjjL/ptkro/Xbm+OpZMOhaff/6HAujrpP0mZY6/3cXGknREbzM8UBlZs9x36ZmbkSLaL FRv47xCHnQ8ssziNnl3dWyC903egUuzTbTcU0sib6TPvXYX+YEVl+vYJotg9sEmaOhBK jhJSR3ULhHQDw2pywqHKKJbnstYvYpIpLtJp0PjNWVNfy+5qDfxXASyAyqjVPyjd4l2Z /+9A== X-Gm-Message-State: ANoB5pn9hMOpDEYYbYaP3E8wTejZLMWu4S78CyCJIm35k3agKL5r9MHr 0DNHbHDB67PNoUNzSgIY/A9/kUhdG50Ch/xG50oQHQ== X-Google-Smtp-Source: AA0mqf6EPSbZL7sdYYo5fUTE7eiO759F6woaqf3tsefxpBjSBXpqMr9uED2zRYnpYuiPHIRrbFgrLXPbp7EOuYIVplc= X-Received: by 2002:a92:680d:0:b0:302:dc:bb47 with SMTP id d13-20020a92680d000000b0030200dcbb47mr4114938ilc.81.1668812665683; Fri, 18 Nov 2022 15:04:25 -0800 (PST) MIME-Version: 1.0 References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-186-uwe@kleine-koenig.org> In-Reply-To: <20221118224540.619276-186-uwe@kleine-koenig.org> From: Crt Mori Date: Sat, 19 Nov 2022 00:03:49 +0100 Message-ID: Subject: Re: [PATCH 185/606] iio: temperature: mlx90614: Convert to i2c's .probe_new() To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Crt Mori Crt Mori Melexis Technologies NV Transportstraat 1 3980 Tessenderlo Mobile: +32 492 46 22 15 E-mail: cmo@melexis.com Website: www.melexis.com ---------------------------------------------------------- The contents of this e-mail are CONFIDENTIAL AND PROPRIETARY. Please read our disclaimer at http://www.melexis.com/mailpolicy 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/mlx90614.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature= /mlx90614.c > index 8eb0f962ed25..909fadb62349 100644 > --- a/drivers/iio/temperature/mlx90614.c > +++ b/drivers/iio/temperature/mlx90614.c > @@ -537,9 +537,9 @@ static int mlx90614_probe_num_ir_sensors(struct i2c_c= lient *client) > return (ret & MLX90614_CONFIG_DUAL_MASK) ? 1 : 0; > } > > -static int mlx90614_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int mlx90614_probe(struct i2c_client *client) > { > + const struct i2c_device_id *id =3D i2c_client_get_device_id(clien= t); > struct iio_dev *indio_dev; > struct mlx90614_data *data; > int ret; > @@ -675,7 +675,7 @@ static struct i2c_driver mlx90614_driver =3D { > .of_match_table =3D mlx90614_of_match, > .pm =3D pm_ptr(&mlx90614_pm_ops), > }, > - .probe =3D mlx90614_probe, > + .probe_new =3D mlx90614_probe, > .remove =3D mlx90614_remove, > .id_table =3D mlx90614_id, > }; > -- > 2.38.1 >