Message ID | 1514833681-30737-9-git-send-email-pure.logic@nexus-software.ie (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 1049F6035E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:10:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01DD7286AB for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:10:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAC2228765; Mon, 1 Jan 2018 19:10:10 +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 8578D286AB for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:10:10 +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=Ib7O8x1Loxw47b0ElLLNtYP4A4 ehu8MHtuJc+EZyGFOWgFxkkt9JD574PAOKdDj6kRofvlEb8GloD3gh1aZHLiS8E5SsS25U0TlU5XE VgL1L+H5UtQ6Xx2OxJRrRGa4n9sVOJnALOwRghQy8bAjk3sPavequuRh5j1nsltQ76aNhLPhyMVoQ Kk1FsQGCasCWf9MldxuqCEwO1DVuLTcma2ru/APYP1czXbtQ+azkbtlvsIM6mPadBcw3W6olBLwdC /4VrV141ijWzDaDYOW8t+3NBl057IQqiO/rW0/mE113ff7+GSqQ+g9tVF81UTTBZqfGIbuwcmxUrF jylWVBUQ==; 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 1eW5TL-0005F7-IB; Mon, 01 Jan 2018 19:10:07 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW5Rd-0004To-4N for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2018 19:08:43 +0000 Received: by mail-wm0-x244.google.com with SMTP id a79so19001544wma.0 for <linux-arm-kernel@lists.infradead.org>; Mon, 01 Jan 2018 11:08:14 -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=qGrXtMvYXSVRyDuFC3DW9kBmgjvO1dohN8TYIYHSM+BL8DA82cwIwFo+k+67ocr2Vf ahaNcImuTq4b50UvibCTgLCAuyNIWCAhGi/Y8Qy929iiqGaOCQmCyRCdcXVKjvA++9YR ouEx9qUPIcqJZEOIPSw/WbUL1seIMbD4naWKZR8bIb/ObUZnxAXlrttJKa5QOQJ3kwO2 bd/qiiRUyQMcOYG/tz4O83rduU3GAlqXVcMbHguMapNo7xmaxcZCdXkqH4hZ5MfgdRT7 1GfcetO9GMgjgDSHdRjqCScA6f+qz05GgFLbKqbgHzOr5skc2pp++ODg3HYsb1/oBI2y +Kog== 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=DwAqrz7fw1fKuG5FNfU/wEtdcHNihT4s0n5AoYvVxmK3jisu6QwskrZHcy6+BYNq7T y42vy1gKZ3t7KtxY7wXbNcYstkp7SdipCjenW2CrCazSBNVyk2n35I2Cir7aq75ZdaCk ag6DRB5xuAfSohj9v7QY1E/VW1ncrc/8SCujCEVT+tIrAGsMaFvvbyVCdbkatQJwnZ1G y1u2JVJheB/l57stSr2z4Jx2I5aR6QK8GjhnhCCbsnZRDFHamBFjsbl5PuCPi11dwcd3 ip880akO+fpqb1dGKtG7DiOlSH1/a/pew+mkkeAsrRAhof3kGLDbpmX7JdFW59hVbKdv C5hQ== X-Gm-Message-State: AKGB3mKe+jGfz8v44MsOITj9kTAfTC5C+oBHW45Fosg+WyHecmtBMYJf RsLb8V9oB6lI/NZA9Q6FJsDkQA== X-Google-Smtp-Source: ACJfBovaJxJ1zCjuJKg3pUBa8AQoeVWV3D0AcQGslXwTg7AcZddAThP2dWhJCrqppfVifDphDlG5CQ== X-Received: by 10.80.211.18 with SMTP id g18mr60693514edh.279.1514833693473; Mon, 01 Jan 2018 11:08:13 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id v15sm33236633edb.41.2018.01.01.11.08.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:08:12 -0800 (PST) From: Bryan O'Donoghue <pure.logic@nexus-software.ie> To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 08/34] clk: bcm2835: change bcm2835_pll_rate_from_divisors to return unsigned long Date: Mon, 1 Jan 2018 19:07:35 +0000 Message-Id: <1514833681-30737-9-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514833681-30737-1-git-send-email-pure.logic@nexus-software.ie> References: <1514833681-30737-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-20180101_110821_266621_3E3411BE X-CRM114-Status: GOOD ( 11.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Stefan Wahren <stefan.wahren@i2se.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Florian Fainelli <f.fainelli@gmail.com>, Scott Branden <sbranden@broadcom.com>, Ray Jui <rjui@broadcom.com>, Phil Elwell <phil@raspberrypi.org>, Eric Anholt <eric@anholt.net>, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Bryan O'Donoghue <pure.logic@nexus-software.ie>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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;
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 <pure.logic@nexus-software.ie> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Eric Anholt <eric@anholt.net> Cc: Stefan Wahren <stefan.wahren@i2se.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Ray Jui <rjui@broadcom.com> Cc: Scott Branden <sbranden@broadcom.com> Cc: bcm-kernel-feedback-list@broadcom.com Cc: Boris Brezillon <boris.brezillon@free-electrons.com> Cc: Phil Elwell <phil@raspberrypi.org> 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(-)