Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1611943rda; Mon, 23 Oct 2023 19:39:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8al3gxqs+vADFXbT3l5TSpUa8/tijxQfVEc5w9mij6yA2LnKXnrpI32shxxlTfEM7AZCc X-Received: by 2002:a17:90b:1bc6:b0:27c:ef5d:646d with SMTP id oa6-20020a17090b1bc600b0027cef5d646dmr8907731pjb.17.1698115157003; Mon, 23 Oct 2023 19:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698115156; cv=none; d=google.com; s=arc-20160816; b=KR47QpOy2PfX/E+VmvhSNTCpM7qsg2emi4Y62dzn8uQb+vH9t/5gRCBEGCQB9JtHwX DjgLUWRDx0803HHWP5zYn1Xq8I0ZLXdg2+BBG13QCoVNLsip5mLJIGeS9WNar3R6j9za 16Fvj7xbQrJ89Rq91I4Y2tqrI9FrmPeAU2KYzU/QJFKgOdg7qxigI3MSEMZBsgIQsSrF GIpEk7YBq4PWP9k50Usj7H0VgFCYMV07T0gJD921plw3rEiksKHRzfkG6LwESX2h8ghl dvanI/AoVnwM7yrOym19w6ptVCeMSkIItn3nxx8/iKm2ilLxYGt9AeFI+ZbhunKCW28D 1shQ== 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=BLAd6gTx1iuzo/h4jYfc87V+EX4iiNpqySH5+O3AwCA=; fh=OmSJjJZ5xnMRR04srgB6/QtF01mHSUkoeULSyNsSq44=; b=apzOKMW9jl7wjiNGRzMeX7tqfpGbNfb76ko6Ps7/QiwR8ufaR+qFJ+rGhyfX8JZN70 S3TEQrT+zSohofey1JOnWIVmUERL/+al0BiGlmuwxEm2VmoHqS04lxBtXkDHfQ7IWK6B /Rsu0xkAIEjH3JldP3Fr/2epEYY1ud9bwp5kV8f4aDWhuV0rDK/h4VvRTh1rNKuLM5Nz il1ZKl4s6PMN+xV+UbSkpDeaA2rjH7VvEbmnwT7MMSFKm+zi1aqzzcmJU9pQux0HesKF iiatpCAq+0slrSiod/lQckC5bANC57h7cXU9LUEmQJ8FRT4XMPrUa5LKVAxb0rHHiImD zFdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XITxCeLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e8-20020a17090a728800b0027762924984si10090547pjg.183.2023.10.23.19.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 19:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XITxCeLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E526980A8573; Mon, 23 Oct 2023 19:39:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbjJXCi7 (ORCPT + 99 others); Mon, 23 Oct 2023 22:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232229AbjJXCi4 (ORCPT ); Mon, 23 Oct 2023 22:38:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23A4410E; Mon, 23 Oct 2023 19:38:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90A7EC433C8; Tue, 24 Oct 2023 02:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698115110; bh=BLAd6gTx1iuzo/h4jYfc87V+EX4iiNpqySH5+O3AwCA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=XITxCeLMW5Y7+vmuVAqgqyvOyeoOXEFdXycPwuOcMYKIINKAoevSwstM+Uhy99ScJ CUMF0RwSFEI9h9KKjhcKgR5mUcQEy5vNy6CPEYnhlF41xyj1dRMapQatjoN5v+WN4Y gywPwvPExB47myrYIxmG8oCzl956R4Iw/en+cRi44JkY9Q/Y/udA8RYCe4sKfTQCbF 2zbDW/kwf0jrhSg6lmr59ql81w0Vk2ahW14ctH/jftcoZYrARVZTt3wc0AY5wIyONy roTL9ryjjOGOpkl+tO6kWaSwvPMnUoKWD0ie4tcQhDgXbHZMeUbzBmoYYp5N8+Rd90 6GkGoFsbPItRQ== Message-ID: <44e42cafc7a20083b139a6bb40628a1a.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230909164738.47708-1-biju.das.jz@bp.renesas.com> References: <20230909164738.47708-1-biju.das.jz@bp.renesas.com> Subject: Re: [PATCH] clk: si570: Simplify probe() 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:38:28 -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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 19:39:12 -0700 (PDT) Quoting Biju Das (2023-09-09 09:47:38) > 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 adding struct clk_si570_info as match data > instead of clk_si570_variant and replace the ID lookup table for > the match data by i2c_get_match_data(). This allows to simplify > probe(). >=20 > Drop enum clk_si570_variant 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