Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1612123rda; Mon, 23 Oct 2023 19:39:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXBlFA7vsXPNlJiEGcOmfSyoy/njMLpy+7Mqt+SOonZi4Z6aU+DmqVkYhnRFhopBYQBbRT X-Received: by 2002:a05:6a20:3948:b0:179:f7cc:c7e6 with SMTP id r8-20020a056a20394800b00179f7ccc7e6mr1398639pzg.38.1698115193995; Mon, 23 Oct 2023 19:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698115193; cv=none; d=google.com; s=arc-20160816; b=XX0FiK+922yq0U8FSA0ZOXpqqks6lX/72rKrWw1kx4pTPqWOApQ9xSb903lT7rtf5n M1JqQ7iq0T1aUgYW19CVQ1o4uQM6NMEs1DchM5XbGd2G0b+jre7kik6kIhD9WJaF9eA4 /M8I1auXNZ0YysOtcpFUcUPnEzij2FW81xyU1NA+bjUwsN00B/8aAMrzw0rgDmwbmn77 WpU/6r1gts3dE0BwSNS0dONdKwM7CsZHLITI/BZ7MUdqovCKw5ndwPB1yrGB7kzel6bI JNluNBd9gZjHJ9AUmV0G/ekt7kawZ96r7Yy5GwI4G67PLUVzoA3wRz+QS2hVkL3XGT2P Ap4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=piXga/OrS0AqCVY619AqIoM6NsxZNT/IHIFGfSBWc2s=; fh=OmSJjJZ5xnMRR04srgB6/QtF01mHSUkoeULSyNsSq44=; b=SJ8rIJDaOYiH23QZwF0PPJ2NFChIkJ8kayxWvyvIcz9uBpAQYMsiDndxJk7IG1V8ln sIrHQqwWEf2AwkbAilE/eQ8NusjZCGErS9I8YjBB9CKGTv0203n+93pFnAOLNEVG1og8 AtXyipowXcsorzLaTA1WbHGxX6WI7u/EvOuApLvRe3mPOZ+UuEUAR5U9mebnobO6X8jB lcjz+FiLhRCsIk8rvYWiWVqLgzL83Qa5VQ9evLUXHcoFmN6vclQIqmzKMxEnT/tRBh3Z a0dwBjJ2VoMzS3hhq7VxXhUWYvVWdCC/zbAl7Ik9Lw7sUKrBZnxsZSt2OeTlbmxltCOP EIiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPxi7wcq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v12-20020a170902b7cc00b001c9ca0a03dcsi7295296plz.86.2023.10.23.19.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 19:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPxi7wcq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 525EE809BBAB; Mon, 23 Oct 2023 19:39:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232229AbjJXCjc (ORCPT + 99 others); Mon, 23 Oct 2023 22:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjJXCjb (ORCPT ); Mon, 23 Oct 2023 22:39:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AAB310E7; Mon, 23 Oct 2023 19:39:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8072C433C8; Tue, 24 Oct 2023 02:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698115155; bh=piXga/OrS0AqCVY619AqIoM6NsxZNT/IHIFGfSBWc2s=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=RPxi7wcqnY8LcO1ZIDRv4+bsr5+wVrMCClH4kYOo5aGeCoMim30S8nV9uY+aadeAv jCkJYMN/0ShFpO3zdk9h5Xk6dIIx1ZNgyH5SgY/knaOX7lIFXNhmN1YoD5DrO8ezyI WijLnADpmpItzhq9R9RPeWyDbZmgsrB4eGIrFg5LRZM2sbv/ct3YnlgM798c9VyrMg 5QKlQ1+m8tnuSkLBGZfbaN2O6diVZMXNjmgmjhM7ZvzATWaX4VXloxdFScMCSJUgw9 TJsaC0YXy3p/+Ww5SuVlsRx2ryUCLNm2qK5NvmXLrGL4MT2WvtHouurJt3m94kKmPO r9WM80xheYyYw== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230909150516.10353-1-biju.das.jz@bp.renesas.com> References: <20230909150516.10353-1-biju.das.jz@bp.renesas.com> Subject: Re: [PATCH] clk: cdce925: Extend match support for OF tables From: Stephen Boyd Cc: Biju Das , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko To: Biju Das , Michael Turquette Date: Mon, 23 Oct 2023 19:39:13 -0700 User-Agent: alot/0.10 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 19:39:48 -0700 (PDT) Quoting Biju Das (2023-09-09 08:05:16) > The driver has an OF match table, still, it uses an ID lookup table for > retrieving match data. Currently, the driver is working on the > assumption that an I2C device registered via OF will always match a > legacy I2C device ID. The correct approach is to have an OF device ID > table using i2c_get_match_data() if the devices are registered via OF/ID. >=20 > Unify the OF/ID table by using struct clk_cdce925_chip_info > as match data for both these tables and replace the ID lookup table for > the match data by i2c_get_match_data(). >=20 > Split the array clk_cdce925_chip_info_tbl[] as individual variables, and > make lines shorter by referring to e.g. &clk_cdce913_info instead of > &clk_cdce925_chip_info_tbl[CDCE913]. >=20 > Drop enum related to chip type as there is no user. >=20 > While at it, remove the trailing comma in the terminator entry for the OF > table making code robust against (theoretical) misrebases or other similar > things where the new entry goes _after_ the termination without the > compiler noticing. >=20 > Signed-off-by: Biju Das > --- Applied to clk-next