Message ID | 1514835793-1104-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 B970460362 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:44:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAAF928649 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:44:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F8EF286CD; Mon, 1 Jan 2018 19:44:06 +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 1437228649 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 1 Jan 2018 19:44:06 +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=jD0kpc6DJaiY47/RPCZDrxyFIE S8w5e8rX1aJI2AnlUTiGnCENe00Umn2weiJtls6tQJCRw40ARXTydFvkwvPNQWb7TPoPK12cna2cQ wDflPqn9vDTp+8WSChQwsaZfZxfee6jMG7gIbIo3lNHuLUmqmxXKw5yETZ/IVL3OxyzzfvFf8hRnO mFwCOX+A7eZKPJZUQTcKUZBYds0LrcfKbZhjzzV4PclnN9dk3OIsBCGwpWAZ7pvC6imrp252qdeda dSaEb8ioQzR25R2GLVqZb2M+mgS+Rt+L9ofDkT298oOWEVb+uyUEdpVjNJLVcTM60wqGKA/vCk7/H KtqkaW/Q==; 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 1eW60A-0003Rp-St; Mon, 01 Jan 2018 19:44:02 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW5ze-00039M-Ui for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2018 19:43:48 +0000 Received: by mail-wm0-x243.google.com with SMTP id g75so58610186wme.0 for <linux-arm-kernel@lists.infradead.org>; Mon, 01 Jan 2018 11:43:26 -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=EHlYdwXZ2+1bQgczLMMNV6zlUCKnZRXx4ENfl6KHAXPlZybZi7LlwamZdeaeyz+TkX Xx6Eq504ZIiV79MKoJeYMY/3NTY6TSQl+UomDA8xXP6ifZ2xE5ju6UFjrM7ZQPNSdQNi TTO0pO5Xc0AwHHiaLPnPk8Sl64QUzznNWeEs9M3TdaU7bbW3fmzgQ4rPEoe3LFCsL3Jt yFQdk23WMShF9UxxoS8ezfG3S9krFlkKmx5tMIns2vY4bQrFfStqMKZEIT9SDL7afe44 7llWDmQ2drNX0ooDGULawEpBToUIM8j9uwzr4dorFLnFaPcrOppwqW3921qFFioxgrCp uvWA== 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=a1FsOvLIJ66xZQQdfp/OGQ2KnDSFZcv4BaM/9uNK6PjLuoNsFo/2DztiqceF4wquD0 guUu3aj/ss63XV2n2hgHIspt4V6VtEt078zG96jfoQg8j4oecLjSeC+JX88JSD16GV0u dYxxnbRTZmIL5ZhWiJfL+aFnMiroBitgHexTHZL8N6ynZBxzRtPdlTPjZXdn7V3Yq8eA df28xftczDEkVKKerhnakFJDNpgIblcVIIyKMlriF4LJo1pYME/oNNGm6G+f1oxUgcdh DZh+8XfUFlMx0A7v8uQw8PDhKPPXmY3vdMU2fuEnQKA4xA2WichnI3+ltEDzVsnLOdG7 fWVg== X-Gm-Message-State: AKGB3mJy0gPKNUlYazH1QK2d+an3oE3NpGambhqMpCLfHLr+mhj6+fbe YDzrJR4UjAbgUJy9K7KqVNkGfQ== X-Google-Smtp-Source: ACJfBoumm9P/l43X7uZkK0DU6ehRYuk6Zoxofn5zq7BKWPVcOB0w3Ipso6LVQYuxSLiZ95mYx9ujXA== X-Received: by 10.80.240.17 with SMTP id r17mr57676227edl.57.1514835804917; Mon, 01 Jan 2018 11:43:24 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id w2sm39361075edb.4.2018.01.01.11.43.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:43:24 -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 v3 08/34] clk: bcm2835: change bcm2835_pll_rate_from_divisors to return unsigned long Date: Mon, 1 Jan 2018 19:42:47 +0000 Message-Id: <1514835793-1104-9-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514835793-1104-1-git-send-email-pure.logic@nexus-software.ie> References: <1514835793-1104-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_114331_068828_626BB448 X-CRM114-Status: GOOD ( 11.29 ) 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(-)