Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp47135lfb; Wed, 29 Jun 2022 17:02:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgYE163cnsbOFTLQb2OOVgVUYngN44zDJ/c4Flk1ed2K5xU9ReVZLFkEgTgj1pCxqWGuOp X-Received: by 2002:a17:906:49:b0:6f3:bb5e:54a8 with SMTP id 9-20020a170906004900b006f3bb5e54a8mr5695259ejg.534.1656547354542; Wed, 29 Jun 2022 17:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656547354; cv=none; d=google.com; s=arc-20160816; b=zAyX2gIR1euwWZNIXdY0SW5tBQgGvLhCEdWWdM9LwrEW2f31DGclK/3xQ6x/Uy+B5x L3TnzeUgusduENae+HViAcxnMO0kq1Ezc6CiCIxWODfWPsfeEiDWf5LlZhDZvJbw7Z9P rJsQbYjqnEHRS04FJmuGQEcZWNZp6+5r+8+dpAfbcD1NmxkwJUwOeKnofuD7LaCbHGlU RrDuHtqXQylad/Zn+YxilE2Zn7KNE0vTW4JiJ5bfrF2zZ0teDVnAnKwgCAT8DleC4wRo 2+xMKwbRZNfLY7uczIsYj3tfVPc8c5xUeOq8TYjbwD2+D0xfPcUtX8oHhIkFkrOkEE7P UeqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=l+FCnEnpd+YIOyC/ere6wGIxZCDgA6s7We22NFnosAk=; b=h1Wb5bJSOmJSj3167QueqJTkRznW08F9RodtFuq+waNhU1gTzO6VgIFmECpvt0e0ef abt4HbP3fVhqKSwPF7m8XXf3Yf6uMzUm/1VlJdEmita4KtDgISMe4b/lTsGEEq+Gl2Vd ZkHD4hqTGJfkhizRlvOWSAjpnbZ/zNHsh/CdQziZ7OoAQTfWg+kzxejm6U3c2njOpi+5 4YemDA84qvCEA0NIMhYQsJAF8R6JQ0z4ie9SJqfUGfEGXm+pBsBhI/AOFBcrAh4u270z WdQ5xV0pOws6tg/GZumqZvZWlL6e9PmNaJvkjD9sRY+rCYmQomydMcRzFxyxI2hbIHmS xf1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw14-20020a1709066a0e00b00726c07b617fsi2341098ejc.512.2022.06.29.17.02.03; Wed, 29 Jun 2022 17:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230315AbiF2Wxm (ORCPT + 99 others); Wed, 29 Jun 2022 18:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbiF2Wxh (ORCPT ); Wed, 29 Jun 2022 18:53:37 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A031924F1B; Wed, 29 Jun 2022 15:53:36 -0700 (PDT) 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-r2.th.seeweb.it (Postfix) with ESMTPSA id 5F9343F7F7; Thu, 30 Jun 2022 00:53:34 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org, Dmitry Baryshkov , Stephen Boyd Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Michael Turquette , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Rajeev Nandan , Vladimir Lypak , Jonathan Marek , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v3 02/11] clk: mux: Introduce devm_clk_hw_register_mux_parent_hws() Date: Thu, 30 Jun 2022 00:53:22 +0200 Message-Id: <20220629225331.357308-3-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220629225331.357308-1-marijn.suijten@somainline.org> References: <20220629225331.357308-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the devres variant of clk_hw_register_mux_hws() for registering a mux clock with clk_hw parent pointers instead of parent names. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov --- include/linux/clk-provider.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index f3f2ae1229f8..3a76a67241e8 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -980,6 +980,13 @@ struct clk *clk_register_mux_table(struct device *dev, const char *name, (parent_names), NULL, NULL, (flags), (reg), \ (shift), BIT((width)) - 1, (clk_mux_flags), \ NULL, (lock)) +#define devm_clk_hw_register_mux_parent_hws(dev, name, parent_hws, \ + num_parents, flags, reg, shift, \ + width, clk_mux_flags, lock) \ + __devm_clk_hw_register_mux((dev), NULL, (name), (num_parents), NULL, \ + (parent_hws), NULL, (flags), (reg), \ + (shift), BIT((width)) - 1, \ + (clk_mux_flags), NULL, (lock)) int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags, unsigned int val); -- 2.37.0