Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1491244pxa; Thu, 13 Aug 2020 09:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiwTTyhyUpNqrdr9RJGSZw8Kke0QD35Dm6qzqMk5FglV4Xu/+f4AJ5dh9oNgQFYRaovw8E X-Received: by 2002:a17:906:54d3:: with SMTP id c19mr5881866ejp.408.1597336389720; Thu, 13 Aug 2020 09:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597336389; cv=none; d=google.com; s=arc-20160816; b=wB423D6BDOlDpipHQtGAaW9/3xPX6An34Dzk8YKlb9JigoE0/Jz5X2cvJ01ahzL9my B0CtCzPnp/4B8atR/zEt/TQQPEoQoz71LnDp1HbcX/7Yk6MW8/qn2gcC1T7ZzqA0bCZ1 ND32RFL+GMlbDO33eMKCAOBQp8t8yX6ilE2d99gfLYXOI3fyQgDIphsX06HVtN1kTeO9 e4AAWcO3Ec8Y9NyY4k27astqcgW6GdKtqE3gWvLdO7QLVbak27ldbWTlZpEi+N6cL3lb tTNnKX/NACfexFH4lm6zNx2PkgaEEbNFcFFsD1Q7Xn3oep32A8N6uGLI8uNURjcaSrWk R8gQ== 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=A2jxbvA/SbMZJbomMtKJCF5i9h2Rb8vk0Hkq/jVbgeI=; b=qMhOzQMAfR889HYtIqTLy4mlMIcF+Np8d55U+ZnOCFgmujjSI9DoBv5YPtnNAUKfAO DunJZgsde5avbh4lYP1i39hFBuufG8QLQpxa0Q62ytXyRoaJ23qE8vP8111C1oNBGrhi oF1EAkystguWHzVyzouiEVchkrIom4V4cCTvRD+pp3lluT+Cl7FSmJzwDlTg5VVuD4c7 dWaGMRtUrsTiOX15JaAP0fmyzuQJJP+xczHOgYyRe/eMm4OZearzJRHlyIJ1dFxu6hIN pHp9qGDnLKtDMzNBfp0lpFE84PRcVCV8Ifkxc4XNDptcSPFVICTf32j9SI3d3ceVLdsL Vj7w== 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 dm1si3876033edb.315.2020.08.13.09.32.47; Thu, 13 Aug 2020 09:33:09 -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 S1726605AbgHMQbx (ORCPT + 99 others); Thu, 13 Aug 2020 12:31:53 -0400 Received: from 3.mo2.mail-out.ovh.net ([46.105.58.226]:33175 "EHLO 3.mo2.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgHMQbw (ORCPT ); Thu, 13 Aug 2020 12:31:52 -0400 X-Greylist: delayed 353 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Aug 2020 12:31:51 EDT Received: from player688.ha.ovh.net (unknown [10.110.208.202]) by mo2.mail-out.ovh.net (Postfix) with ESMTP id 7C94E1E2FCF for ; Thu, 13 Aug 2020 18:25:57 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player688.ha.ovh.net (Postfix) with ESMTPSA id 1C07A1526A913; Thu, 13 Aug 2020 16:25:52 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-103G005a681ebc9-4fce-49de-94fb-dc3a2d2e09ad, E10370F5499BCD549250CF93A1A6372B2A4BB833) smtp.auth=steve@sk2.org From: Stephen Kitt To: George Joseph , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] drivers/hwmon/asc7621.c: use simple i2c probe Date: Thu, 13 Aug 2020 18:25:44 +0200 Message-Id: <20200813162544.1516647-1-steve@sk2.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7607987149653036303 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdejiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrheikeekrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/asc7621.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c index 9e14e2829ee9..600ffc7e1900 100644 --- a/drivers/hwmon/asc7621.c +++ b/drivers/hwmon/asc7621.c @@ -1087,7 +1087,7 @@ static void asc7621_init_client(struct i2c_client *client) } static int -asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id) +asc7621_probe(struct i2c_client *client) { struct asc7621_data *data; int i, err; @@ -1193,7 +1193,7 @@ static struct i2c_driver asc7621_driver = { .driver = { .name = "asc7621", }, - .probe = asc7621_probe, + .probe_new = asc7621_probe, .remove = asc7621_remove, .id_table = asc7621_id, .detect = asc7621_detect, -- 2.25.4