From patchwork Sun Aug 29 20:48:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 12464335 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8080AC432BE for ; Sun, 29 Aug 2021 20:48:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5FB5260F51 for ; Sun, 29 Aug 2021 20:48:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232450AbhH2UtV (ORCPT ); Sun, 29 Aug 2021 16:49:21 -0400 Received: from relay02.th.seeweb.it ([5.144.164.163]:35993 "EHLO relay02.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234667AbhH2UtS (ORCPT ); Sun, 29 Aug 2021 16:49:18 -0400 Received: from Marijn-Arch-PC.localdomain (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 53D6E1FABE; Sun, 29 Aug 2021 22:48:24 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Pavel Dubrova , Marijn Suijten , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] sdm660 clock-controller cleanup Date: Sun, 29 Aug 2021 22:48:18 +0200 Message-Id: <20210829204822.289829-1-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Following earlier cleanup in gcc to replace parent_names with parent_data to use pointers to internal clk_hws, this patchset removes more dependencies on global clock names through clk_parent_data's .name field, and uses ARRAY_SIZE to determine the number of parent clocks in the parent_data arrays instead of hardcoding it. Marijn Suijten (4): clk: qcom: gcc-sdm660: Use ARRAY_SIZE for num_parents clk: qcom: gpucc-sdm660: Use ARRAY_SIZE for num_parents clk: qcom: mmcc-sdm660: Use ARRAY_SIZE for num_parents clk: qcom: gpucc-sdm660: Remove fallback to global clock names drivers/clk/qcom/gcc-sdm660.c | 80 ++++++++++++++++----------------- drivers/clk/qcom/gpucc-sdm660.c | 15 +++---- drivers/clk/qcom/mmcc-sdm660.c | 72 ++++++++++++++--------------- 3 files changed, 83 insertions(+), 84 deletions(-)