Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2173837pxb; Fri, 25 Mar 2022 12:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqw4Td0sXoGKUnKU7mrB2MzxkuYBXGW/7uAxLdIMysoQ6/qjegwJ4NdIEfXCpwiA4LeUKR X-Received: by 2002:a65:494b:0:b0:380:6517:cb32 with SMTP id q11-20020a65494b000000b003806517cb32mr839874pgs.145.1648236281378; Fri, 25 Mar 2022 12:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236281; cv=none; d=google.com; s=arc-20160816; b=FrZEYHNkUkN/wYnWLQQUljGnkra/98qoOMjCgm+XPynmFxf9xh+n50V/XN4h+B482F PYal8voigH2ukEpfhIYyY5nglOTwGMDDs+0jqsA7EGHyqNebgrVWD0xKVaZEcaKJQUR4 00wFZ/i6C6D36AT8b6SxEnqrQSKPjwOkx75dMhFs7XEjPntMfo2s2KuCirWuKI/v8giX +LgaIRv88ikAzucDo1UBllCvqf1NtOGNI6VFRH2/LhvmWg+5EjGUeaay3bwdUf/7CXEs b1iqpMiaEDX4paOpOqHwso0V5gmvcEEtQC1ccDEI8Dj/CeLb4L38a+ltIVAPO1SRm6O8 zRmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Ec/u0msss12Y2wAJ/bi+8lNCOeaOdfXeBx3ZcaKZwj0=; b=FjfZpUO6mWl1DqQZ/AXsfZ8g51vugDlliZqWbpMWFvOo2MfTlOUTyf4Yubm3ea5yHp 9lkNAIwciBn7Wqzlj/mwxeg92Vlr7IDeLGmRcvo4DDBdb8cpVRwHoqa7eoCh12iPRNxu MAbSgOiS0TlIsuf1vOFhdbSEeMyROFGc+dvO5UIDtOJ6Cy/STncmUkNEjGlmGbBc6j4k Pf58R7cBEmIpRVb1QaUxqsMc0IUQu2EJY9wrlRxnOOJal0HLgNFhSyTbEb73kf0mtuzt KYSzdD6/oivlb1rthBJVJm+9ycd5TnmvTKVPZ7WE/fXjHMhzXbKt6vtWz+LUZMcwGe+P JNUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s2-20020a63e802000000b003820b4f8361si422278pgh.182.2022.03.25.12.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:24:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 67CCF2921FC; Fri, 25 Mar 2022 11:32:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352647AbiCXSaC (ORCPT + 99 others); Thu, 24 Mar 2022 14:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344178AbiCXSaA (ORCPT ); Thu, 24 Mar 2022 14:30:00 -0400 X-Greylist: delayed 4197 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 24 Mar 2022 11:28:23 PDT Received: from 17.mo584.mail-out.ovh.net (17.mo584.mail-out.ovh.net [46.105.41.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DC2A1102 for ; Thu, 24 Mar 2022 11:28:21 -0700 (PDT) Received: from player761.ha.ovh.net (unknown [10.108.4.98]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 129A124A92 for ; Thu, 24 Mar 2022 17:09:51 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player761.ha.ovh.net (Postfix) with ESMTPSA id B45E328C421ED; Thu, 24 Mar 2022 17:09:47 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-97G0025265364e-40e9-46d8-84d7-bc7edcd87a9c, 78FFD8E4238D9337B8F0C8EEA79873C5FE5514E5) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Miguel Ojeda Cc: linux-kernel@vger.kernel.org, Wolfram Sang , Stephen Kitt Subject: [PATCH] auxdisplay: lcd2s: use simple i2c probe function Date: Thu, 24 Mar 2022 18:09:29 +0100 Message-Id: <20220324170929.542348-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 11951990462367827590 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudegledgleegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejiedurdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 --- drivers/auxdisplay/lcd2s.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/lcd2s.c b/drivers/auxdisplay/lcd2s.c index 2578b2d45439..0c64b46dbb71 100644 --- a/drivers/auxdisplay/lcd2s.c +++ b/drivers/auxdisplay/lcd2s.c @@ -286,8 +286,7 @@ static const struct charlcd_ops lcd2s_ops = { .redefine_char = lcd2s_redefine_char, }; -static int lcd2s_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int lcd2s_i2c_probe(struct i2c_client *i2c) { struct charlcd *lcd; struct lcd2s_data *lcd2s; @@ -370,7 +369,7 @@ static struct i2c_driver lcd2s_i2c_driver = { .of_match_table = of_match_ptr(lcd2s_of_table), #endif }, - .probe = lcd2s_i2c_probe, + .probe_new = lcd2s_i2c_probe, .remove = lcd2s_i2c_remove, .id_table = lcd2s_i2c_id, }; -- 2.27.0