Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1491014pxa; Thu, 13 Aug 2020 09:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxxJlPhdGeHNf4aq3bkzIbeEUux3wuWKI4eK8VOMc+JTq07Chr61nlHNxoworcI6wPzi+a X-Received: by 2002:a17:906:5246:: with SMTP id y6mr5557213ejm.316.1597336373770; Thu, 13 Aug 2020 09:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597336373; cv=none; d=google.com; s=arc-20160816; b=jyKrg7rX21xfwvBjdD9j0O2FtQIr6FoBc33fvuvcBSVStDgNIpHrZnhrHDP0g0kcqX WJvht+XxNh4mBk5Gf3DJS2HsJcnQ/tB7v8SM40a4HCuNf8KSpkXW9UCVAPi4HdrGwjS7 eobY7Z2W/qB2XamrIJXoyDSeUFNjeBsMAg9fx4lNGIwaC+cs035LvojoI5fJKeHDDYll rrWWuzB4Ng7Of/dgQ/pGlk1uCW0nkxkU4cFAQr78hRbre7P7gJxChCdhMFclqpEr9+Ii JcFfzDt8PLNOCY9/Un/GiTL0oVFK+kpIQG9gg3HmJl7k8tV5leV8vvRbdaALTkUkk8W7 eeFw== 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=DRK56ouFnAETF/kS9/v5RzM271Uq2Ubf7sSf3lRhRBg=; b=F2DyI7lBZW0KZ0NATUjBthKA2npd6zERIkoBE8T4VFCGvgwxooSTQ0lEHt8BlqAe1G 6mezr3k2v9scW3JcgX3nmDTb9YG5H2iYGJgWybPycpBl4cjYzORA3v5opJqtXkxVFiP2 RTshppnJulL2snh7VHDYF/jhpEIL1rtDx6k7q4tTXdTYOgVg8PKJM8OAPLH15LBycRd5 tFzcFdDgeE/YKNLyFSKAJICvV0Q8elI+NIv0GCQrAfp4J94v1xprel8OSIyGj5ePwBc0 cgCnne61VQzd/C1K1usDVTTGTVMeYHHfijzBzTPMD+xt1Yj6RxTyz7MVJsjdahiq+5v0 IVoQ== 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 dj25si3558473edb.175.2020.08.13.09.32.30; Thu, 13 Aug 2020 09:32:53 -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 S1726593AbgHMQbS (ORCPT + 99 others); Thu, 13 Aug 2020 12:31:18 -0400 Received: from 6.mo5.mail-out.ovh.net ([178.32.119.138]:55774 "EHLO 6.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgHMQbS (ORCPT ); Thu, 13 Aug 2020 12:31:18 -0400 X-Greylist: delayed 1705 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Aug 2020 12:31:17 EDT Received: from player159.ha.ovh.net (unknown [10.108.35.240]) by mo5.mail-out.ovh.net (Postfix) with ESMTP id ECE9728EC77 for ; Thu, 13 Aug 2020 18:23:13 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player159.ha.ovh.net (Postfix) with ESMTPSA id 54DD31538AC9B; Thu, 13 Aug 2020 16:23:08 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-96R001d0cd8b33-75d1-4926-8d88-7b8eb7db5b9d, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: Guillaume Ligneul , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/lm73.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:23:00 +0200 Message-Id: <20200813162300.1514695-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7561825253049847130 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhduheelrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/lm73.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c index 733c48bf6c98..beb0d61bcd82 100644 --- a/drivers/hwmon/lm73.c +++ b/drivers/hwmon/lm73.c @@ -190,7 +190,7 @@ ATTRIBUTE_GROUPS(lm73); /* device probe and removal */ static int -lm73_probe(struct i2c_client *client, const struct i2c_device_id *id) +lm73_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct device *hwmon_dev; @@ -277,7 +277,7 @@ static struct i2c_driver lm73_driver = { .name = "lm73", .of_match_table = lm73_of_match, }, - .probe = lm73_probe, + .probe_new = lm73_probe, .id_table = lm73_ids, .detect = lm73_detect, .address_list = normal_i2c, -- 2.25.4