Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1487615pxa; Thu, 13 Aug 2020 09:28:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+yFQ4q4o8nm+xrE1sfHMIKYhHJeCdEglGHMuzPfhBSdxjr485h4lvzaPgqeaHqayAoEHC X-Received: by 2002:a50:d2c7:: with SMTP id q7mr5211440edg.61.1597336138916; Thu, 13 Aug 2020 09:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597336138; cv=none; d=google.com; s=arc-20160816; b=bmIYprwBXh9dU7NuyC1gsCkq1gvtaBfW93O/HZNUn0Sep9ta0rNfExpofiYwDrnSd3 hlvcXXQroJlEuoQYUjjtDl9LZPzv2gMZNlWlPKNNsJbnGlPR7QpNvvsLsBoC6lsMftUy WlIRc8aIuoRhpEL3k7wLMF5UirwZGZAGoLC64d8ipNmOtEdhVNlWiWEycXSCj6Iny/bL hfq5ltFuk+ipA3BRkzlMviphjoodFwuhHlqgpHX7IcIgCTkZIEdua1Lkep1CEu0Pzlbm 5rz7yTGiyKvorE8TFqNO8ar0/ZhKc/ZdUg2WMcdVUV580ZpzPLp5oIaIeo3Q8hdDzIKD 5dJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7OYYWg8FYvrqMj/rZO4aueTC+0UIZ656MvBP7M3LMo4=; b=ebISR9dO+zGlh6m4c4vMOXV4P8JKAeYDK4qv8UXrauUuZ9uFKNgwjvQKRMb+MFwVEd MtmbmXd8I2dH5XfBPQBwuY2f9oHsYVPUXycmqux+sUY713vmr4zYtmwchuOpj9P+j2H7 tJ53SrBOup8X5qx8UE/U52kUPrFss0kuBm1jvqRTzEHOyjLrKbPrl4zaDT3pe8R3VK4w x5Ub4n3VeZDPLMPEn2SOtPgdAS025eJ9LEu3lDzKyrzb62kEzyPWD93Rv9MQDvAZ11HF 2xx15mwTLB8bKAyK/iF9eIKO+DO+p0xk2DOHZmI3yIJ5u9rHWzdhGxbjRASr4vVpSLzK HhOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz6si3779507edb.254.2020.08.13.09.28.34; Thu, 13 Aug 2020 09:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgHMQ1P (ORCPT + 99 others); Thu, 13 Aug 2020 12:27:15 -0400 Received: from 6.mo179.mail-out.ovh.net ([46.105.56.76]:32778 "EHLO 6.mo179.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbgHMQ1O (ORCPT ); Thu, 13 Aug 2020 12:27:14 -0400 Received: from player716.ha.ovh.net (unknown [10.110.171.50]) by mo179.mail-out.ovh.net (Postfix) with ESMTP id 9B2CC173E81 for ; Thu, 13 Aug 2020 18:27:12 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player716.ha.ovh.net (Postfix) with ESMTPSA id 41802152A09F7; Thu, 13 Aug 2020 16:27:07 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-105G006859e978a-6936-4e1d-aa48-8a114369f44c, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: Steve Glendinning , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/emc2103.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:27:04 +0200 Message-Id: <20200813162704.1517951-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7629097772879269159 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejudeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver doesn't use the id information provided by the old i2c probe function, so it can trivially be converted to the simple ("probe_new") form. Signed-off-by: Stephen Kitt --- drivers/hwmon/emc2103.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/emc2103.c b/drivers/hwmon/emc2103.c index 924c02c1631d..e4c95ca9e19f 100644 --- a/drivers/hwmon/emc2103.c +++ b/drivers/hwmon/emc2103.c @@ -551,7 +551,7 @@ static const struct attribute_group emc2103_temp4_group = { }; static int -emc2103_probe(struct i2c_client *client, const struct i2c_device_id *id) +emc2103_probe(struct i2c_client *client) { struct emc2103_data *data; struct device *hwmon_dev; @@ -653,7 +653,7 @@ static struct i2c_driver emc2103_driver = { .driver = { .name = "emc2103", }, - .probe = emc2103_probe, + .probe_new = emc2103_probe, .id_table = emc2103_ids, .detect = emc2103_detect, .address_list = normal_i2c, -- 2.25.4