From patchwork Sat Dec 30 01:12:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10137499 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 971B16037D for ; Sat, 30 Dec 2017 01:16:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8983E2B551 for ; Sat, 30 Dec 2017 01:16:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E3912B55D; Sat, 30 Dec 2017 01:16:09 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 E40092B55A for ; Sat, 30 Dec 2017 01:16:08 +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=QypIV02q7T6UQj5vlMrl8eeyHlVW5N/ijYBLK9acVvc=; b=jESDsCE9PW12kjkdJdTUN2lrup crvjQ4MV6WTOVG1XurZCGkGECfxLTZELVCwis7weR4DMf30U2Uc+O99NxVAYQHaX4y7d9pEVn+ijP NqLgEUq+eLS5i3BFMliv4ssfwZ/4Uh3K4j7V/P67EEPYb7Q+kZKzkOyQT6AugceDqFKn0x/+CDQXj zBP+uQzTcM6l1jYzbGpnSEosOHDrZ+gUW2J75KO2ElTNO9/P1LQMggTKolVr0NE12Qm0STF74LLzh BqAoXrcB2GQccvTXLH40q11FXdsTIsMauLPh54Vi6TZs/Bb4WuCjVLqOvHxeGzDeyynh6P5rC2mrr eTQTN8GQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eV5kp-00048W-Mp; Sat, 30 Dec 2017 01:16:03 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eV5iK-0001Jp-Q2 for linux-arm-kernel@lists.infradead.org; Sat, 30 Dec 2017 01:14:07 +0000 Received: by mail-wm0-x242.google.com with SMTP id n138so50420571wmg.2 for ; Fri, 29 Dec 2017 17:13:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eHBpISSgqpSUMUXcgSjAisF2NMERdMeJ6Jt8btgSrgo=; b=MZqSKpO1FrQNPVhz8kw1QgVEkBSKcip4At1/KMY8jY2vGfrOh8B9T7dCoNQlPmGdMe yv/ZK3bG0MEhKf+GH/3h0ZGQ5RmsDW2JM0BgIVW1ZT4EtGWg5c8e6ra9SgijboTXeTvG 24LoriAPlwWYJYHTot6ZwyCPjzxcisxZNdIrOExB4fFzdeAINNKPKZSqz4B+uByfQ3rZ 9M8GYW0CdMOnlC2ByOHW5zO/U8lP/oIqgl+mAhZGshGmkYTn+cEfPqt31x7YTnDDB2D2 jwV2nv6BTTL5n4R3fsffufEmUpgHW1xAr1obMwdktvnj9HZqr8Ypjdy3o1+Rjq41Rc/g EJow== 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=eHBpISSgqpSUMUXcgSjAisF2NMERdMeJ6Jt8btgSrgo=; b=oZT9mv/G/jc//pJlQxyTkybOEGsJWJ0GESUaGwHdNMQOnunG6zIxk6Aj8xk22lueV5 KhlWy5RIy87xBCrHu1naHYcqat32YA2kSAdXmzN/FZDKWVYxFn3CL/Yfz/IlX8jXv9zY gbcA43LE4ggNEsfPYf4EXZeGviSeVXubbQXBnmlPnUlzg3eku6SFPHlYIWXcfeX8RaD2 7Txs7BqwUdXNiULm3LzTKw4GQQBfKz1sxgMmYUfu5R+6Xry+e5qSPfwGUfXmOQq/Eygq xGrXH3qfffsy/uU/fPLCoHv72jZJpJTPijUn/ce8SnskDEgtk48veKBzp/DJhVHDxYBb GVzw== X-Gm-Message-State: AKGB3mIhJBajMzm87ebgBn6XqojlBAzy/fudNlnhRm2mN1KuaImlGpiA JH5z2mjp1SZRI5KMcCGjCZlFOA== X-Google-Smtp-Source: ACJfBovYnftITmHgJmI+JKiAQ1+mXe7mBiYcIcaa2QOiOGJYfiUPWTUMaBpbRnKiQo2nFA9ja/J6Qw== X-Received: by 10.80.240.200 with SMTP id a8mr46590817edm.288.1514596400864; Fri, 29 Dec 2017 17:13:20 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id h4sm29818268edb.16.2017.12.29.17.13.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 17:13:20 -0800 (PST) From: Bryan O'Donoghue To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 08/33] clk: bcm2835: change bcm2835_pll_rate_from_divisors to return unsigned long Date: Sat, 30 Dec 2017 01:12:47 +0000 Message-Id: <1514596392-22270-9-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514596392-22270-1-git-send-email-pure.logic@nexus-software.ie> References: <1514596392-22270-1-git-send-email-pure.logic@nexus-software.ie> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171229_171328_975589_5A0EF0ED X-CRM114-Status: GOOD ( 11.01 ) 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: Stefan Wahren , Boris Brezillon , Florian Fainelli , Scott Branden , Ray Jui , Phil Elwell , Eric Anholt , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, pure.logic@nexus-software.ie, linux-arm-kernel@lists.infradead.org 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 bcm2835_pll_rate_from_divisors() returns a value directly as the return value to round_rate(). clk_ops->round_rate() has been changed to an unsigned long so for the sake of completeness and neatness this patch updates the helper function to return the same data-type. Signed-off-by: Bryan O'Donoghue Cc: Michael Turquette Cc: Stephen Boyd Cc: Eric Anholt Cc: Stefan Wahren Cc: Florian Fainelli Cc: Ray Jui Cc: Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com Cc: Boris Brezillon Cc: Phil Elwell Cc: linux-clk@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/clk/bcm/clk-bcm2835.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index c215dc9..fb2b012 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -541,8 +541,9 @@ static void bcm2835_pll_choose_ndiv_and_fdiv(unsigned long rate, *fdiv = div & ((1 << A2W_PLL_FRAC_BITS) - 1); } -static long bcm2835_pll_rate_from_divisors(unsigned long parent_rate, - u32 ndiv, u32 fdiv, u32 pdiv) +static unsigned long bcm2835_pll_rate_from_divisors(unsigned long parent_rate, + u32 ndiv, u32 fdiv, + u32 pdiv) { u64 rate;