Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp510740imn; Thu, 28 Jul 2022 07:29:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNe/iBpY2Oh7OFW0sbZKD+739tf6y//pGJMLJCmEGLgbcf6LHyEbFvehkY3cScOEzKjJId X-Received: by 2002:a17:902:900c:b0:16a:4521:10fd with SMTP id a12-20020a170902900c00b0016a452110fdmr26714730plp.75.1659018555979; Thu, 28 Jul 2022 07:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659018555; cv=none; d=google.com; s=arc-20160816; b=n8ySS0UN1LVMk+d3iRHLw4lkiKRrFl4IXGG2XQA39A5UqXqft8LLlxgF1XpE5eeAqN 0vggb5+vkwtfy9bO1pp0NNtGfhb/IBkhusIic7rpTHNMEkxolg62V2wEZa/Ef+4ZLNt1 Rsl2OmMtOlGOeVjmN4QY/iHsp/Shad5q+70s/EIV+zhYGzJm8lJYhUxG259a40agw0vm fubLoHQpymYxf9j+Cruhj5K89Ehl3Jhqqi3uUbZwzORes5T7EaHF8UFQMr6TnDrMTXGD m2SUzdlEl7/DYsQpfWfl13t7vai5t4VroV4bllFE9itqowbNvhysEFDfBmsZpFq3/myA gFMg== 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 :dkim-signature; bh=lmQYtc1hSA2dj1fab7+3HzZDSuHervzNbSwsZTrDXjc=; b=YV29y4DKrQQDqY5noXX2hpeMEE13f5435zFEu+5adqHyybX5VnpxWCIdyt/v8o8JG+ 5IhWlGqPtaP3F9f8HNr2fB7E1YRHeTXQIq7jVuCXusBcO8W4zBjNi0AnxplBw6+33J1V gRc5qm82dGnv5jQy4Bap43bNKGelSOYf1RJs895CfOpyblXa2mjd086ZyaSFK86bQztl HmFbtYn/eyctnOLn6RvxzGnLx/ExE6LPAijy4LDv90vi5gCk/gW8Ve4hOZB7CZ+mQxI/ m0XunfWm7dOLSMK1Ke2VA60+jLCHZC4PToG8PbD7Um07D6JOdRhE5UDJtP5AWUyUZCGO TrwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="QXUxjVv/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a656806000000b00419b6682d43si1345052pgt.175.2022.07.28.07.28.59; Thu, 28 Jul 2022 07:29:15 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b="QXUxjVv/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231277AbiG1NcS (ORCPT + 99 others); Thu, 28 Jul 2022 09:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbiG1NcJ (ORCPT ); Thu, 28 Jul 2022 09:32:09 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528FC14095; Thu, 28 Jul 2022 06:32:09 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id f7so2120890pjp.0; Thu, 28 Jul 2022 06:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lmQYtc1hSA2dj1fab7+3HzZDSuHervzNbSwsZTrDXjc=; b=QXUxjVv/gljXab51PFwJL1C/wua/AScPk2bmSfmz6gdfQHtCzkhJTi+xGfkdYw+exf TGQfnxDkwloVWUF3030IK9oe/TJVHbU6xS8yrMGCo0g3207kXuwarKDjBROixk+4nG6S V7mKEhgXUJ3Qugvr9Z/igXxLXBCTjYZPK5jPWoZXKsMLPyQRgYpq1dbNnKA1NZH6315C gQwhk1ZzN9HeJMBtVBivGQHolmf/FVomggU2LYS1k7r3MhdZnnotRTCuHHD48lCxFSwQ T80wHrZEP/g0Qm064hTopGqRwyQsBzsDeyGIL0fY2HgftkPfdJhVExkTs/BK3sZkZqB5 p0dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lmQYtc1hSA2dj1fab7+3HzZDSuHervzNbSwsZTrDXjc=; b=d0G+57BPYI29oXuKqfeh9mFe29sqlofEqtoID+H95wJoZ+OrB351yyN9nHGZWmCZBr 0lEq7R1/CZo3qa6x9djbijnpqZxhzSY61vVgpjGLuo58RgxkVTkmGGAIf8vjyplCUUwX 9iiUI/6rBJUjCnTgi2EebxkzPLaFWURAYK3rfytSiTVLsAbPhb2Yab0DBSEPTuG4nm3A ObIYAE2LnwT9xI3qxnfufuZ2FhjNltqg/HaT+TisWulerzva4sY6boplsQF6Wj7xvEMT oxy9r0tWnz4NHR4EqpOhU22N/7dM7Rj/VB5I0JyBSWzmD4f2jMbVjaLNy2cV7FAzSOmm 0SUQ== X-Gm-Message-State: AJIora9SCo2TqddipHdbiwOTrl/qAK/Bu0l+KNxZc+lR7L/ZSTYb2lb+ i9zo4DsPbmOKEI/F+k+XznkztrBq7zPrRQ== X-Received: by 2002:a17:90b:4c50:b0:1f2:c763:52fc with SMTP id np16-20020a17090b4c5000b001f2c76352fcmr10184248pjb.233.1659015128869; Thu, 28 Jul 2022 06:32:08 -0700 (PDT) Received: from localhost.localdomain (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id u188-20020a6379c5000000b00419b128cf98sm928474pgc.54.2022.07.28.06.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 06:32:08 -0700 (PDT) From: Potin Lai To: Andy Shevchenko , Jonathan Cameron , Lars-Peter Clausen Cc: Patrick Williams , Potin Lai , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH v5 1/2] iio: humidity: hdc100x: switch to probe_new callback Date: Thu, 28 Jul 2022 12:54:34 +0000 Message-Id: <20220728125435.3336618-2-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220728125435.3336618-1-potin.lai.pt@gmail.com> References: <20220728125435.3336618-1-potin.lai.pt@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Switch to probe_new callback due to probe is deprecated soon. Signed-off-by: Potin Lai Reviewed-by: Andy Shevchenko --- drivers/iio/humidity/hdc100x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c index 9e0fce917ce4c..0d514818635cb 100644 --- a/drivers/iio/humidity/hdc100x.c +++ b/drivers/iio/humidity/hdc100x.c @@ -351,8 +351,7 @@ static const struct iio_info hdc100x_info = { .attrs = &hdc100x_attribute_group, }; -static int hdc100x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int hdc100x_probe(struct i2c_client *client) { struct iio_dev *indio_dev; struct hdc100x_data *data; @@ -422,7 +421,7 @@ static struct i2c_driver hdc100x_driver = { .name = "hdc100x", .of_match_table = hdc100x_dt_ids, }, - .probe = hdc100x_probe, + .probe_new = hdc100x_probe, .id_table = hdc100x_id, }; module_i2c_driver(hdc100x_driver); -- 2.31.1