Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3754583pxa; Sun, 9 Aug 2020 10:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFgT1rTHpsIknsp5HWbl2iZxrD3kFFk8fjTsgPkgA+4CaPelSv0ZPHww4ZmR9kGxN6X/Ro X-Received: by 2002:a50:d80f:: with SMTP id o15mr17984228edj.156.1596994256056; Sun, 09 Aug 2020 10:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596994256; cv=none; d=google.com; s=arc-20160816; b=dg7FhQmdeupSnGNlT1ztuYcx+VNjTrnRacpYVUPflKWww1WD8qWDU0Nme3TDQrCkQY 1SdGFN0G+qMuMwxlUgl1KV16b1JemMH/wxM7WY65ElSACbezYsX8HOKF0OwvfxV0euhP x6ZvlbILifBb00cUW5YupWM3BnJjco+Y4WoQagK7RDisCWOGq3nLdU/qUpYSzspNRmfT BkFegOR6kg4vyenhOciBr/xRH6om6yobiDagxQ9cri/S9FDvuz7/jkkGAcBDW3t/5cXL APrllGO3tK+Eyz1E3/WAbo7EoFzFlLBW0UmFTLdRyN+MDZHMzfET8sbR+ukxYRuNx0C+ kh5w== 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=YVTzj/paHK99rQdzyzk4ZpmYvL84rngwA7x8Zjo+N68=; b=d3/1NcDpcHTCHBsjKGb4xhnb0IPI4ICd5HFAuKBxfzB/IGwE1MGOE4csQseoEvDq8Q Zry9gv4IV0yyzxiAl+LY3R2Wra97OXgd/tTPtWCziSqC54mpZ0aXLX1nlpfKJw2KvWTv 2/G2hTGCIQYqG7/Ons3ULwmt1U3TPBgkDrbFgqZRJEPPox9PU9ES53HORMpd1tx1EeMX XqIPqh5AX3lBb5MnRys/ul1c2cMuwjePfZz/LC7JP0d4Vhb2hP/hiXS4xcEdbR/AyNrD DIv5qTrZcR6CLwTXc6WVk9FIhiEPZfbM2H5ZZ3aBFEL49mRjZbVpIzfQEiuJfhaMIKTR QvOA== 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 mm22si8909060ejb.735.2020.08.09.10.30.18; Sun, 09 Aug 2020 10:30:56 -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 S1726321AbgHIR2I (ORCPT + 99 others); Sun, 9 Aug 2020 13:28:08 -0400 Received: from 20.mo4.mail-out.ovh.net ([46.105.33.73]:58761 "EHLO 20.mo4.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbgHIR2I (ORCPT ); Sun, 9 Aug 2020 13:28:08 -0400 X-Greylist: delayed 304 seconds by postgrey-1.27 at vger.kernel.org; Sun, 09 Aug 2020 13:28:07 EDT Received: from player739.ha.ovh.net (unknown [10.108.54.94]) by mo4.mail-out.ovh.net (Postfix) with ESMTP id 21F9223D2EE for ; Sun, 9 Aug 2020 19:23:01 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player739.ha.ovh.net (Postfix) with ESMTPSA id 928C511196944; Sun, 9 Aug 2020 17:22:52 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-98R002ca650353-51cd-4c79-b08e-5414a764e4d7, 949AEE3423C323647D875781C307A391B5D7792E) smtp.auth=steve@sk2.org From: Stephen Kitt To: Kukjin Kim , Krzysztof Kozlowski , Russell King , patches@opensource.cirrus.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH v2] ARM: s3c64xx: use simple i2c probe function Date: Sun, 9 Aug 2020 19:22:43 +0200 Message-Id: <20200809172243.15192-1-steve@sk2.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 3527725885183315233 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrkeeigdduuddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeefledrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The i2c probe functions here don't use the id information provided in their second argument, so the single-parameter i2c probe function ("probe_new") can be used instead. This avoids scanning the identifier tables during probes. Signed-off-by: Stephen Kitt --- Changes since v1: - split into per-sub-architecture patches. arch/arm/mach-s3c64xx/mach-crag6410-module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index 34f1baa10c54..43b587e79d21 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c @@ -378,8 +378,7 @@ static const struct { .i2c_devs = wm2200_i2c, .num_i2c_devs = ARRAY_SIZE(wm2200_i2c) }, }; -static int wlf_gf_module_probe(struct i2c_client *i2c, - const struct i2c_device_id *i2c_id) +static int wlf_gf_module_probe(struct i2c_client *i2c) { int ret, i, j, id, rev; @@ -432,7 +431,7 @@ static struct i2c_driver wlf_gf_module_driver = { .driver = { .name = "wlf-gf-module" }, - .probe = wlf_gf_module_probe, + .probe_new = wlf_gf_module_probe, .id_table = wlf_gf_module_id, }; base-commit: bcf876870b95592b52519ed4aafcf9d95999bc9c -- 2.20.1