From patchwork Wed May 17 17:13:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 9731697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E40FA60230 for ; Wed, 17 May 2017 17:14:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02F2A28797 for ; Wed, 17 May 2017 17:14:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB759287C7; Wed, 17 May 2017 17:14:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9964628797 for ; Wed, 17 May 2017 17:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=YuwIPe4nbPd/wadKp8n3uWznHRpsQ/X8O/e1eVduycQ=; b=jXXSYyQvDk6Cxy//kF2812Eqa/ +TFceX9I8+sWL6j2MXXmrXrrw71yM+it8dGj9CH3uJqMQ3XfYhNpkSIGd5JwLlXivlq3GfFiAyG9h kIkbQ9666aUP+cl2B9J274GUdL2Q8FwpzE0Kw1iUW+VWOjWzRKLk2sfcdf3S2Wyl7i66kgrwXzWVf +5X5fWtHo069EKSQjrvZO80x4rYNxGlJhL1DMi7e3E85feOIxY3CED4LTjmC/GHtUHlw2u67crHcN haghEi9r4wlUaUKCQ/hqLnlwocDDoYAejqv4IwrsEQPwG3+kGtFkVkRuRcN2PSrfSjDvTmIreg7vf 6X+2Cv/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dB2X6-0003oQ-Om; Wed, 17 May 2017 17:14:44 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dB2Wr-0003V6-KQ for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 17:14:31 +0000 Received: by mail-wm0-x243.google.com with SMTP id y10so5099463wmh.0 for ; Wed, 17 May 2017 10:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KtQsqHx9npLRxecmNGQhg3cRWYmiTxYOQeN9AzYudis=; b=BVK8sL5drB+Nhh4+eWbtORJhXfgNcyGDwhFWdZmyKs7surSlJGvpuPq9vLIMZCx5x0 yJaPgFvRmvAW2xtdvnz8vb2eJTlIjVJmJ3pYYvMwG5NVPnFa7gVsX9uvvPagGZPZ//KX fcAKAFpGkQCFusVZGsGdy458hYTcem9zwhjtG4B4nzBy2VbeZqPX16Jue9Y2extgSLBw af7zQZ57kf4Koo+u0LQEABQBbJ1nkZQqyamwthNqIY1hw72ndBu+ppO/Ud7MUScflDsj E1AU/J4RVK+u+oS+ym+t8gdeXGshfcmXnzNylGS4iWHxXkYCCmt/eiuxfPRHYEyORviS xj7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KtQsqHx9npLRxecmNGQhg3cRWYmiTxYOQeN9AzYudis=; b=rjoAMEmNEcu75FNrvhyxBYzV8OgNhQcepI1H9gX7dIdSLnNufFljc601syfHTRHUeo obrImtF3dtB6XTuLfJJ2VlL/WkUbp7HGxJBWVh7rb4/l6+wJNHVALYiZhzGf97848tBX VvA5lEL4+pH6FZBBio6Y0WMNFGG4Wx8NefS/ZVf6r58weFN3UsMRcrOyPWIXeRgZ4m2a 4BMkLirAXpuXFEHDacSRnVlCBbLdDBnKhtsgZR/dxeRdrLtzycwzbDGiAOkDKF+QiWy3 xz1EV17B6lyDrXoW+RgaoyM1xpzWwHSnfZwzFehAVuVhR3G18WGNzCV7FFpjD9M0J2P1 EDmg== X-Gm-Message-State: AODbwcCZbkwJ25Gudt+uE/Z6VZgOFWeMhIEho0MIRH7JPtVXnxxUzuCd l6b1X/FoW0GMIg== X-Received: by 10.25.43.203 with SMTP id r194mr1120658lfr.137.1495041247554; Wed, 17 May 2017 10:14:07 -0700 (PDT) Received: from giga1.localdomain ([195.245.52.203]) by smtp.gmail.com with ESMTPSA id a17sm487498lfg.51.2017.05.17.10.14.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 10:14:06 -0700 (PDT) From: Alexander Sverdlin To: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hartley Sweeten , Ryan Mallon Subject: [PATCH v4 1/5] clk: ep93xx: Implement clk_get_parent() Date: Wed, 17 May 2017 19:13:48 +0200 Message-Id: <20170517171352.20369-2-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170517171352.20369-1-alexander.sverdlin@gmail.com> References: <20170517171352.20369-1-alexander.sverdlin@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_101429_919943_3FCE23D0 X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lars-Peter Clausen , Alexander Sverdlin , Peter Meerwald-Stadler , Jonathan Cameron , Hartmut Knaack MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Trivial implementation of clk_get_parent(), but necessary for some drivers, such as ADC. Signed-off-by: Alexander Sverdlin --- arch/arm/mach-ep93xx/clock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 39ef3b613912..b9cd9d7da14d 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c @@ -475,6 +475,12 @@ int clk_set_rate(struct clk *clk, unsigned long rate) } EXPORT_SYMBOL(clk_set_rate); +struct clk *clk_get_parent(struct clk *clk) +{ + return clk->parent; +} +EXPORT_SYMBOL(clk_get_parent); + static char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 }; static char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 };