Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3251149rdh; Thu, 28 Sep 2023 06:57:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmw6dbHbeGm1oAxys/G/FqmNdtu/0VnaG/aGsrGQKi+Ib70oj5RiDJeKLsZbW//SlLsgY1 X-Received: by 2002:a05:6a00:1496:b0:68a:3ba3:e249 with SMTP id v22-20020a056a00149600b0068a3ba3e249mr1321355pfu.16.1695909422063; Thu, 28 Sep 2023 06:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695909422; cv=none; d=google.com; s=arc-20160816; b=xAI/cFsCI+xaL0WPa9URtOKXLeL/SuWIYjnCQRRBwSOaoX6oDY+BW5+1fHMbqT5g2S 0dcg5OrKpX86xe+4ejaGOsmEzs60R3BA2g+aK/ZV5r4sLbSSV7LvB/F3+QCoQil8D/Am lZZac2dnjTJh9FVkZjrEjFb8TLJqdi/ADnGTRhwSd0XIvwR4jA33uZwR/hb2O+fgoCSs 1ixkbTgeEm+NPGymQpIX9DsILPpqSu10ZLkK4xsa40qWLrApSU3F/MVz3LivOE3oVU7V d7rMxuEb6vr6/AdO33RYOLmb25JBX1PRrYbSxP7+wF1T7u5I0A6qL6lggTeom22GMwti j0xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TjjgloJ1FYDCfreDfBCIiPHKbTHCv7+BxWCfE3KlJFE=; fh=TZPy8KA2tpdZjq5CIwj816cLyUxiiBM2TXPMulr9qNc=; b=pOSo72tzijsuAiD2vTSFA02tapiKFnBC0pMnI8crfEpQt8WImPimvqTFxNUlLpTlkq YFAYcOy8p2RDDKl7OXwGeWA36sKguaqP6VedZlte+HDEeppugo918AsnxILvEK5UuJDS Mac1GUlc0XC9iynu+/v3PzH7pQQE8OuVBYYcIaAxDuFl4BYcPFQKZ3PE6jMW82ATU+np uxLGKEbtqjTpEuVcAxryasHOM/+foe2E8rH19cUPrYVS0ddUkfARyM8Fyw4i1ZWSbigk f8SmoxkdHOBo/y4RbaU8ONgNphgb+uyhWuGfq0ShklZAMG9ZyQDUP1qzIfrWVeh+R75Z wkxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tKsztWv/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j9-20020a056a00234900b00690d7d99e2fsi20097483pfj.212.2023.09.28.06.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 06:57:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tKsztWv/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 992218325207; Thu, 28 Sep 2023 06:44:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232286AbjI1No2 (ORCPT + 99 others); Thu, 28 Sep 2023 09:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232135AbjI1No1 (ORCPT ); Thu, 28 Sep 2023 09:44:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5478E19E; Thu, 28 Sep 2023 06:44:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C854C433C7; Thu, 28 Sep 2023 13:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695908665; bh=cXUjA+LGZtBzr9vrfFevPK3DQpphxgfc5qeUDaaGDrU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tKsztWv/lMkAJjLZNCC7L70ZUOotYuFQ8ZKqX+y1+I8FAHhUxDL+zMBP3i7fzDS00 TBjWczubIuvyeDwXjaglijEfY4cZV1VWk89u7knd+eLZvswK5nBXHTuvXN8X+0RXRV SBJH4xFPJzZgoZB18Wdf4RV/wWY2EZW07Xn9D6GFmr/j7J+aHlWKzJOLxuW0ks1uZQ +EVSyooiUWFTX7FqFFDdy0UEzKJrRqLejFFDN1gYhQe3GHjK/X73mqdtXiKyU0fm3N W6Psu4umL2sVZVmGW5go5PnsOhkCMxPWoWX2th084iJULiE5cTjVfYVwhKzdJNt2/i b/rixK/gyhDzg== Date: Thu, 28 Sep 2023 14:44:20 +0100 From: Lee Jones To: Andy Shevchenko Cc: Biju Das , Pavel Machek , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das Subject: Re: [PATCH v2 1/2] leds: pca955x: Convert enum->pointer for data in the match tables Message-ID: <20230928134420.GK9999@google.com> References: <20230923171921.53503-1-biju.das.jz@bp.renesas.com> <20230923171921.53503-2-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 06:44:38 -0700 (PDT) On Mon, 25 Sep 2023, Andy Shevchenko wrote: > On Sat, Sep 23, 2023 at 06:19:20PM +0100, Biju Das wrote: > > Convert enum->pointer for data in the match tables, so that > > device_get_match_data() can do match against OF/ACPI/I2C tables, once i2c > > bus type match support added to it. > > > > Replace enum->struct *pca955x_chipdefs for data in the match table. > > Simplify the probe() by replacing device_get_match_data() and ID lookup > > for retrieving data by i2c_get_match_data(). > > > > While at it, add const definition to pca955x_chipdefs[]. > > ... > > > - struct pca955x_chipdef *chipdef; > > + const struct pca955x_chipdef *chipdef; > > No need to preserve TAB(s) here. Follow-up please. -- Lee Jones [李琼斯]