Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1490218pxa; Thu, 13 Aug 2020 09:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfdC/S6dslTIbmCBnSExoBPkNfNUf+h7jGjp8Vo7Jcy+zuTMEtmZj50ri2IwozzxMIqr0L X-Received: by 2002:a50:ec90:: with SMTP id e16mr5642820edr.234.1597336307618; Thu, 13 Aug 2020 09:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597336307; cv=none; d=google.com; s=arc-20160816; b=kfkmEM1dugQvk7ryW64qenF4nSQF3BwEIaSvWGniM4SDupIa5iFqfQqw59DeB+kDCq tendxkeckxHBHYAQZx8/uClEX2Xp3ez6fqKefBPI+3+XGyc0r+KW/ei8fwwTlO2kG7yv gKLxPL8flxyQw/0+tcadqzIpHzIQG0M3C207S99CVp+VFWrkHMhqGz4Omz7NglvNY+ca z6CA6OBABWnCZlhpqL40xZ/5UG9dBda78ekv/ObXGrLTXYnkMEfxNnyV6xVtBFjMPK79 rxqnOKtRg1+NIImY9y8VszNwo1Nv2QXM7YzjGXZ5J7BKDAz+sft35WI+E8Izjqq5jHPy Q2eA== 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=w9z4X2qhewyFElKMYpcS4/8OtzVktKtNGfndQVQe3lw=; b=cB3JkU8wVw9TVHSqfftYQ2l5LxV/wUyIkmM6duaDrFphhlF/M+pl8dkNIE0be+vL2S k6hme03+XAs4/wJDPywQ5ShB4LKtuQFMCHHUHlZUVeaAWPMV/2lTpIOnsnO34j/VtRYB uUAWuOCsQOZYfUz/eeghiVgHL6dZx5PcsMx5ZID0Ef0stAqocSCScgMkZjmaGBJYFIsd EkdBR06cW354uKpO77SnFNOtRO3fU++2E9sm3l8e1CMyi3K4DccjvrugIgaIu37gf5MA zjbYSZfDnnEh6IAhn/fmeD4Ql6k6KSTVsn1qQROx5jmJMdFwtVrY5AREgPwP9nV+3UJl usCQ== 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 q8si3721024edn.409.2020.08.13.09.31.24; Thu, 13 Aug 2020 09:31:47 -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 S1726673AbgHMQ2E (ORCPT + 99 others); Thu, 13 Aug 2020 12:28:04 -0400 Received: from 14.mo6.mail-out.ovh.net ([46.105.56.113]:36299 "EHLO 14.mo6.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbgHMQ2E (ORCPT ); Thu, 13 Aug 2020 12:28:04 -0400 Received: from player691.ha.ovh.net (unknown [10.108.35.197]) by mo6.mail-out.ovh.net (Postfix) with ESMTP id A8046222F4F for ; Thu, 13 Aug 2020 18:10:21 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player691.ha.ovh.net (Postfix) with ESMTPSA id 352C3155163E0; Thu, 13 Aug 2020 16:10:15 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-104R0051ed08ce6-8045-4efe-9ce6-aae512e6b7fc, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: Beniamin Bia , Michael Hennerich , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/adm1177.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:09:58 +0200 Message-Id: <20200813160958.1506536-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7344526571069328700 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrheiledurdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/adm1177.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/adm1177.c b/drivers/hwmon/adm1177.c index d314223a404a..6e8bb661894b 100644 --- a/drivers/hwmon/adm1177.c +++ b/drivers/hwmon/adm1177.c @@ -196,8 +196,7 @@ static void adm1177_remove(void *data) regulator_disable(st->reg); } -static int adm1177_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int adm1177_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct device *hwmon_dev; @@ -277,7 +276,7 @@ static struct i2c_driver adm1177_driver = { .name = "adm1177", .of_match_table = adm1177_dt_ids, }, - .probe = adm1177_probe, + .probe_new = adm1177_probe, .id_table = adm1177_id, }; module_i2c_driver(adm1177_driver); -- 2.25.4