Message ID | 20230621031605.234149-1-ychuang570808@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A24DEB64D7 for <linux-arm-kernel@archiver.kernel.org>; Wed, 21 Jun 2023 03:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UKgJt6/baqWnqaQzzwg+etfogLCcEBuZQezcXG+v7XA=; b=DoBi347UWruhm1 2sRtO7niILBOd/81TpxTB0v6j1xyqwx96sg3CKdUFuYWpahLglvPJ7LA1P/CuXXLJ8Yxetg4vNDWL vUqjMcMJD0FXdXseej4e9h6OXJzxqOxsoz9lDBVoNNGr8GjNbNRpEvG0eRIlXff1PPM3v7E36e59i JCWp4IBjg9jI3uQkdBzoPt956PTjdgijKt5DaOAKVm0cErOOor50CCcXTD+W7YtsWAElYkTlxIot6 vuQsx+RpmTm2D8hOhYkyrv2yF5ersZ91wmBrZLHC+NVG9YlGVpcJMF63dMzjqCgqw5OGgCqQ02Rle e/oHdqbk5E0iCCbEERog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBoKO-00D2YO-0B; Wed, 21 Jun 2023 03:16:16 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBoKL-00D2XI-1p for linux-arm-kernel@lists.infradead.org; Wed, 21 Jun 2023 03:16:14 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1b51780bed0so43470665ad.3 for <linux-arm-kernel@lists.infradead.org>; Tue, 20 Jun 2023 20:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687317372; x=1689909372; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7nB6R0ouDG8zHyz3+Z8AEZ2eoEA3QO4GpFCpSBeZ10g=; b=iCO3ku+Uhm6rlxOnDEhVNOLzuI4wQF4xrBGC+dvhpnMwUtSbewBEWazsqWS4pg3gTb xKWj4eO3LtyZxjaxEOgUrHqu/oS29qzD40oBn9L0Lq2rVZfV/9RUP0u5M2u1xK9AURqb rBdWju/6G9Gpyn5RAJrD1QpIiy7HDpgFx+km7MUgd+2ezcKxGYZV92sVS2IQUGSoXQFT swwWLWVUbQQJEB//eYUPhKozDoqqh5bXbxDjtnnVAg6lfIc553Cy5SBMlMi5wM8JBA1p Cdg+9t3lEe9dkWMDudaDGpCDIE3RJic0DU+tDi/CZ4XBfRZq9R3jePj18RlMrThCng4N MVZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687317372; x=1689909372; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7nB6R0ouDG8zHyz3+Z8AEZ2eoEA3QO4GpFCpSBeZ10g=; b=YM/THAcqLcs/Ow0E6WImDHWrYbbnqqnbE1lv4oSrAIXn4k+KIJVHYms+zdKMrxcXGx dSfPsKZjX/L9a6x31CgxfFZNBHe6gp3Oy3IcWsw/YSrpabnn2RwosMdLpC9AS7nQjMuR fU7C0pERbV62QBuC9MWr62NIi8PpAJdY+zpCOwZzi9Gfcs0UDmUc62ct2Jh7+YiIeaeW kWT5gcX7O+yEwUZeysyFKviNBurYZ6sJWbGPmzOO6tCXexqSK5lzZkjjGRVHNSXHwU3c EZrT5N1jfuNxMsf1JLO2e+4+f6etEUIxZ/4msfnBbYlPE7URloL8VtWs0Ih3/WvXGpco OYnQ== X-Gm-Message-State: AC+VfDxeXdwxeFsfOYTxYaTLOmISXFdQx4XA8qszPMQsswNaVRSvKwxp wDhp5jI03pTykrTERioB46U= X-Google-Smtp-Source: ACHHUZ4UcsTpEvDFFd3DyltwlAJiswPaNd58ZXIHCY/uOaxB0kW+EmvrOngR2fOsSwWb49PYi6r/Lg== X-Received: by 2002:a17:902:ea0f:b0:1b6:6b03:10cd with SMTP id s15-20020a170902ea0f00b001b66b0310cdmr6482846plg.67.1687317371780; Tue, 20 Jun 2023 20:16:11 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id w13-20020a170902d3cd00b001b01fc7337csm2257747plb.247.2023.06.20.20.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 20:16:11 -0700 (PDT) From: Jacky Huang <ychuang570808@gmail.com> To: mturquette@baylibre.com, sboyd@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, soc@kernel.org, krzysztof.kozlowski+dt@linaro.org, schung@nuvoton.com, Jacky Huang <ychuang3@nuvoton.com> Subject: [PATCH v2 0/2] clk: nuvoton: Use clk_parent_data instead and add a header file Date: Wed, 21 Jun 2023 03:16:03 +0000 Message-Id: <20230621031605.234149-1-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_201613_609228_4BF24E2E X-CRM114-Status: GOOD ( 14.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
clk: nuvoton: Use clk_parent_data instead and add a header file
|
expand
|
From: Jacky Huang <ychuang3@nuvoton.com> This set of patches addresses some of the issues that were identified in the ma35d1 clock driver. 1. The external functions referenced between the .c files in this driver should not be declared within the .c files themselves. Instead, a shared .h file should be created to reference them. 2. For the declaration of parent clocks, use struct clk_parent_data instead of a string. Due to the change in the passed arguments, replace the usage of devm_clk_hw_register_mux() with clk_hw_register_mux_parent_data() for all cases. v2: - In v1, all these modifications were included in a single patch, which is not ideal. In v2, there were no changes made to the patch content itself, but the different modification topics were separated into two individual patches Jacky Huang (2): clk: nuvoton: Add clk-ma35d1.h for driver extern functions clk: nuvoton: Use clk_parent_data instead of string for parent clock drivers/clk/nuvoton/clk-ma35d1-divider.c | 7 +- drivers/clk/nuvoton/clk-ma35d1-pll.c | 5 +- drivers/clk/nuvoton/clk-ma35d1.c | 737 +++++++++++++---------- drivers/clk/nuvoton/clk-ma35d1.h | 18 + 4 files changed, 447 insertions(+), 320 deletions(-) create mode 100644 drivers/clk/nuvoton/clk-ma35d1.h