From patchwork Sun May 14 09:29:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 9725609 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 E3B82602C9 for ; Sun, 14 May 2017 09:32:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D516828576 for ; Sun, 14 May 2017 09:32:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C92AC286B8; Sun, 14 May 2017 09:32:41 +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 8969028576 for ; Sun, 14 May 2017 09:32:41 +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=AQn45xaaHuvum0Ldx50Pm4mJui kerHiIBN6f9bU16AGzgS/eMqCg3uTcgUE83IWLzsauTsu8b+9dIJoKhIhgqE6v5AuNZz64birHL8t BYPuKP4SvpvvZvNPTxbMrCg+xmN24rAeD+K+c1Vu9DBUKgWbGXuKQqfe1uoxqRaVXU6qaaRdK+L6i RbqW3LfZG+v2WPzWzLENrhtyYTnme78/suIDN3v8g4fpTGvZG9FYqsrByRBM5vN/GwoD8SeGqSry+ AIGW80Gac04oVMPYVW/Y7O/yOdUZEC++bIApcKf+7dn0jcE07ruBIXIQAKtEH0C3ngwzUt11OSghH SRXBvMlg==; 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 1d9ptI-0001Xb-1D; Sun, 14 May 2017 09:32:40 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d9ptC-0001K0-99 for linux-arm-kernel@lists.infradead.org; Sun, 14 May 2017 09:32:37 +0000 Received: by mail-wr0-x241.google.com with SMTP id g12so11341632wrg.2 for ; Sun, 14 May 2017 02:32:14 -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=aQ2u7D2zNSKH08bZbZLAxNLnKnNM0zevtNeW2eOls0QeE97BwmJy0elYACqmUxqIUJ mOelk8l7DZdX3QQgJlmATVipyzdM+qHz4Eh/kDiDXyu0P6dL53en/DsmMGYUmw5lGC7D y5xQEPh8az2oylpTu3ZSdxzCPKhxIEW8cKCKznHdaBlcPvGEtWS3WeT6qJae7nKxrKL7 bdPHHqEHZey+gi6dD4hOoD+akIQAqkjUIL+pgc5jwVRlCDnK/dKQ8keTgLy4lZjQJnv6 OY6EWP3YaTZGYYV7+ZPGyY4Es/KvOTl+fCBa63oOZgWu7OnXdZEh0563d5X65+4Gcj9b pt/A== 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=JUasQ6yuTyDEeBcV2coQCuL8/dzE9HaJ7MeetsU1Hjes5LBtp3mG8zk2EogeCKhUZy zT5VWJ+x9GeKrZyAKavCfQiO8fTu1dNhJRZBe5NmWThj7hzevUMcEHpWvmTl6WmMkRyj V0Vy4YpPD5pmIhpStrXRwxXnosUxq8LNMbaNSyf6t4E4EG/kOWHVsDv+6y4ss6TVD/v/ AwJrsgZnm3rMQ1Z6KKtRVrkjRe9WpEJtPTOxzWwLZjiBMUvQdvrk8paSGQPsJGqiJZX7 nlhG9Rjx2buHA+3p5/bHVaQ5tpZ6b6ZWbcbfAUbuC2toEXKvbcMLlCMMWDXaZo6EfvNw hzhQ== X-Gm-Message-State: AODbwcAXIFLVUI1eRpWNxYsodG1XmvJKLUMNifzLX5CYTaIWI9xgflu9 QSjJNM0+wruaAw== X-Received: by 10.46.70.10 with SMTP id t10mr239994lja.45.1494754333342; Sun, 14 May 2017 02:32:13 -0700 (PDT) Received: from giga1.localdomain ([195.245.52.203]) by smtp.gmail.com with ESMTPSA id s126sm1587516lja.43.2017.05.14.02.32.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 02:32:12 -0700 (PDT) From: Alexander Sverdlin To: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hartley Sweeten , Ryan Mallon Subject: [PATCH v3 1/5] clk: ep93xx: Implement clk_get_parent() Date: Sun, 14 May 2017 11:29:50 +0200 Message-Id: <20170514092954.12790-2-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170514092954.12790-1-alexander.sverdlin@gmail.com> References: <20170514092954.12790-1-alexander.sverdlin@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170514_023234_731739_EE499697 X-CRM114-Status: UNSURE ( 8.08 ) 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 };