Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1487824pxa; Thu, 13 Aug 2020 09:29:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5/NvDFnC3weZ60T6ATq7K461DGDo05xBaHBtuHaqxhoNp9PmY/Il1KJEOLHCSKH4Sg/9p X-Received: by 2002:aa7:c395:: with SMTP id k21mr5592184edq.386.1597336151818; Thu, 13 Aug 2020 09:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597336151; cv=none; d=google.com; s=arc-20160816; b=qcJ4uEHU/YqVaM7R7xQF01PHTC0PfyiQBf7fiRJzauTTyurhojD1Fo7cj+zCWAIwzX 9DW3RWYdc9ZLoWffpURZylMNBUt/vG5y1UYVmugw4xCREg1tgbbyx8ZVTTtvbC+CNgXk 71FoB8c0xwbrR6yFej2JcPxEkAzB3vRZhWgbw7AVsmrhQCYJK0UsH4VKn3yo+fZ+dkhs JoFrgRQBymL6eLkb92oDdBVKA5oOJ1RoiyuL/IhQHOivsPhkC0pl4+aMr33PcUrSs8Fe Xj3g2cTqvv6BI4XfxWL1GmBbtogAAen45UsM04oVhJbB70cs7NHOC1Xs1ij0nuKi6UlZ JYEQ== 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=b2VYbzAbvgMJaHhPcGSNPqcEVkum0Njn9h20e6gwRpE=; b=FBA7h2eBEYeY4I6A0cAyULmZMT+Pm3dX/6XPqmpQkLF9lFZZymbWf7rKldZqmM7X1o Vr8qRKpNiNhsizntLB1cvc7wzdprdZe87Ecpldd15rrIxEkrEGXpyS16uv4r/8tEB/tY u2iqZ1xcqi8lrQLt1akB3s9i4yRRtEkPbo+v3g2H/RfJta0ffuU8eleyoyEoBK9NKD29 yKti8wKZeicYl+CZhlSq+Y11qqgfM5rrSKPdV18uMh5WEzOOLXAIgm9rZQZGnMssXTkX Wn0yVR3+UtCcy1pqKfXtA8KQ/HZChc+M7V00ehJOU7n20oFuru0X4Xi+hkR7zgUHYE9W QNMw== 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 ov30si3324389ejb.181.2020.08.13.09.28.48; Thu, 13 Aug 2020 09:29:11 -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 S1726605AbgHMQ0O (ORCPT + 99 others); Thu, 13 Aug 2020 12:26:14 -0400 Received: from 17.mo5.mail-out.ovh.net ([46.105.56.132]:39152 "EHLO 17.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgHMQ0N (ORCPT ); Thu, 13 Aug 2020 12:26:13 -0400 X-Greylist: delayed 335 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Aug 2020 12:26:13 EDT Received: from player737.ha.ovh.net (unknown [10.108.35.124]) by mo5.mail-out.ovh.net (Postfix) with ESMTP id 7575E28EB84 for ; Thu, 13 Aug 2020 18:20:36 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player737.ha.ovh.net (Postfix) with ESMTPSA id 21D02BC5348D; Thu, 13 Aug 2020 16:20:31 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006f1c74461-ce2b-407c-839a-3d80edbb9b02, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: Marc Hulsman , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/w83791d.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:20:26 +0200 Message-Id: <20200813162026.1512242-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7517633679366245843 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejfeejrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/w83791d.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c index aad8d4da5802..37b25a1474c4 100644 --- a/drivers/hwmon/w83791d.c +++ b/drivers/hwmon/w83791d.c @@ -315,8 +315,7 @@ struct w83791d_data { u8 vrm; /* hwmon-vid */ }; -static int w83791d_probe(struct i2c_client *client, - const struct i2c_device_id *id); +static int w83791d_probe(struct i2c_client *client); static int w83791d_detect(struct i2c_client *client, struct i2c_board_info *info); static int w83791d_remove(struct i2c_client *client); @@ -342,7 +341,7 @@ static struct i2c_driver w83791d_driver = { .driver = { .name = "w83791d", }, - .probe = w83791d_probe, + .probe_new = w83791d_probe, .remove = w83791d_remove, .id_table = w83791d_id, .detect = w83791d_detect, @@ -1346,8 +1345,7 @@ static int w83791d_detect(struct i2c_client *client, return 0; } -static int w83791d_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int w83791d_probe(struct i2c_client *client) { struct w83791d_data *data; struct device *dev = &client->dev; -- 2.25.4