Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1480621pxa; Thu, 13 Aug 2020 09:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNu0lrur2vhxIZtRC2TJQQjDpVFSWHVu/8Iat8EVbTOaqwtTztml5KLCv+EiR+tcXwvuOa X-Received: by 2002:a17:906:7492:: with SMTP id e18mr5481535ejl.375.1597335602951; Thu, 13 Aug 2020 09:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597335602; cv=none; d=google.com; s=arc-20160816; b=jLUDHGx2Br2RXAiJo1Z2l9Vups8M7fv/3zMjc+x5WTVIVtwwTPjRU/B0hFcyNS6Dcr Z0MzUFtz1NVJHu65kt0GjjllO90J1NPjgBdxQKKNEfWemOBoPsv2QsdmQcNNqdlbDZOc TDEsAzbfQ3/uZoisq6Fl/5uKRq0aSg3VO67LK3MjFL4ZEw3RJk5yb7MpTyI12uDCQBrf euJo5AcdnA1AjHvvuNz+t6Y8uhaMqOZd9fAGeC/qF+45z74gxQUMHOPMzQatzr4a8sUX VSlHEc7aP/Njz6shnA9N8Z4qgfCUExHkEqN6aNPvvAz2D0BqcQwsZYWIDI4Rj9KDdJhi 8hyg== 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=owPEqH/qCbplrQufVaJE1mENQ+TDMScPaWEpqIZ0SMw=; b=J+I9eMq099t3ijjcOppf+Hv5XUF0P1+IjGrRRAhOENiejXZ1kKEJ2I+4i3e41GYDeM EC5dQ7WjnFD3QzFXnBBwbhounZAeqv/E5xUyjb9RBKCTQdY9vHOQHoO9XU12sYS+91sp LKyWizDDx53w9+0sVCmWkxFzOWHgjUTDiB/DFpvucWFSx+eyhTRiNGIAnDm/YOy62beQ PAR5evL5CC9c4unTbKj1Tp2SUl9DAVSy3trJ+PsI73R1T4j4Uto7SVOeunN/MxsI8tWv v/8zJGYz5coTRBDuDjNk1yKM4HqvhwNI7L/B1BXCG7jZADNVvtKn0zEnVTyeGqmpaHDk Ac0w== 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 y3si3847209edi.200.2020.08.13.09.19.39; Thu, 13 Aug 2020 09:20:02 -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 S1726522AbgHMQTH (ORCPT + 99 others); Thu, 13 Aug 2020 12:19:07 -0400 Received: from 12.mo5.mail-out.ovh.net ([46.105.39.65]:44835 "EHLO 12.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgHMQTE (ORCPT ); Thu, 13 Aug 2020 12:19:04 -0400 X-Greylist: delayed 475 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Aug 2020 12:19:03 EDT Received: from player696.ha.ovh.net (unknown [10.108.35.12]) by mo5.mail-out.ovh.net (Postfix) with ESMTP id 4D91428F064 for ; Thu, 13 Aug 2020 18:19:02 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player696.ha.ovh.net (Postfix) with ESMTPSA id 6818515474814; Thu, 13 Aug 2020 16:18:56 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006d263d468-f464-43ed-bd99-473694ab4806, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: Rudolf Marek , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/w83793.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:18:45 +0200 Message-Id: <20200813161845.1511261-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7491175034432343545 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrheileeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/w83793.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c index 3f59f2a1a5e3..e7d0484eabe4 100644 --- a/drivers/hwmon/w83793.c +++ b/drivers/hwmon/w83793.c @@ -283,8 +283,7 @@ static void w83793_release_resources(struct kref *ref) static u8 w83793_read_value(struct i2c_client *client, u16 reg); static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value); -static int w83793_probe(struct i2c_client *client, - const struct i2c_device_id *id); +static int w83793_probe(struct i2c_client *client); static int w83793_detect(struct i2c_client *client, struct i2c_board_info *info); static int w83793_remove(struct i2c_client *client); @@ -303,7 +302,7 @@ static struct i2c_driver w83793_driver = { .driver = { .name = "w83793", }, - .probe = w83793_probe, + .probe_new = w83793_probe, .remove = w83793_remove, .id_table = w83793_id, .detect = w83793_detect, @@ -1646,8 +1645,7 @@ static int w83793_detect(struct i2c_client *client, return 0; } -static int w83793_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int w83793_probe(struct i2c_client *client) { struct device *dev = &client->dev; static const int watchdog_minors[] = { -- 2.25.4