From patchwork Thu Jun 30 14:13:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 71252 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp417651qgy; Thu, 30 Jun 2016 07:14:57 -0700 (PDT) X-Received: by 10.66.15.232 with SMTP id a8mr22245582pad.129.1467296090254; Thu, 30 Jun 2016 07:14:50 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g185si4658273pfc.294.2016.06.30.07.14.50; Thu, 30 Jun 2016 07:14:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbcF3OO0 (ORCPT + 3 others); Thu, 30 Jun 2016 10:14:26 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:39700 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752536AbcF3OOY (ORCPT ); Thu, 30 Jun 2016 10:14:24 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id u5UECpVk017901; Thu, 30 Jun 2016 09:12:51 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u5UEE328004686; Thu, 30 Jun 2016 09:14:03 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Thu, 30 Jun 2016 09:14:03 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id u5UEDnVY002253; Thu, 30 Jun 2016 09:14:01 -0500 From: Tero Kristo To: , , , , , CC: Subject: [PATCHv3 4/7] clk: ti: mux: export mux clock APIs locally Date: Thu, 30 Jun 2016 17:13:35 +0300 Message-ID: <1467296018-25086-5-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467296018-25086-1-git-send-email-t-kristo@ti.com> References: <1467296018-25086-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org get_parent and set_parent are going to be required by the support of module clocks, so export these locally. Signed-off-by: Tero Kristo --- drivers/clk/ti/clock.h | 3 +++ drivers/clk/ti/mux.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h index 90f3f47..7eca8a1 100644 --- a/drivers/clk/ti/clock.h +++ b/drivers/clk/ti/clock.h @@ -224,6 +224,9 @@ extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_wait; extern const struct clk_ops ti_clk_divider_ops; extern const struct clk_ops ti_clk_mux_ops; +u8 ti_clk_mux_get_parent(struct clk_hw *hw); +int ti_clk_mux_set_parent(struct clk_hw *hw, u8 index); + int omap2_clkops_enable_clkdm(struct clk_hw *hw); void omap2_clkops_disable_clkdm(struct clk_hw *hw); diff --git a/drivers/clk/ti/mux.c b/drivers/clk/ti/mux.c index 44777ab..57ff471 100644 --- a/drivers/clk/ti/mux.c +++ b/drivers/clk/ti/mux.c @@ -26,7 +26,7 @@ #undef pr_fmt #define pr_fmt(fmt) "%s: " fmt, __func__ -static u8 ti_clk_mux_get_parent(struct clk_hw *hw) +u8 ti_clk_mux_get_parent(struct clk_hw *hw) { struct clk_mux *mux = to_clk_mux(hw); int num_parents = clk_hw_get_num_parents(hw); @@ -63,7 +63,7 @@ static u8 ti_clk_mux_get_parent(struct clk_hw *hw) return val; } -static int ti_clk_mux_set_parent(struct clk_hw *hw, u8 index) +int ti_clk_mux_set_parent(struct clk_hw *hw, u8 index) { struct clk_mux *mux = to_clk_mux(hw); u32 val;