From patchwork Mon Jan 1 19:07:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10139241 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 391D26035E for ; Mon, 1 Jan 2018 19:09:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B8D0286AB for ; Mon, 1 Jan 2018 19:09:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 201F828765; Mon, 1 Jan 2018 19:09:20 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5929286AB for ; Mon, 1 Jan 2018 19:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbeAATIl (ORCPT ); Mon, 1 Jan 2018 14:08:41 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40735 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752485AbeAATIO (ORCPT ); Mon, 1 Jan 2018 14:08:14 -0500 Received: by mail-wm0-f66.google.com with SMTP id f206so57817758wmf.5 for ; 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=pYQo8Hp0Xdastupl+ZpwzBDLZZwWNnIwxC92Bt+GvIrikEddec+G6sELm9b9XMhXsM YlQhIiHYrE8CMQ/Ub8uGvS5lSI1eGeQHE9WLSR7on47UYsHxmyvp09A0ki5olTY8WUo5 fLREQ4d/5saVTE9S+u5Lkj0+4yq3Mk2Oi2MefPYTfzVfByqFR/SfkeGgXHXS6C8fmke9 KxOakEGUwmJQXj3m5t8vRuZ/JJjxZo5O7bnlIYed6dBbpUTIz7aZ+0+ZvK+o9ybr1zPI T13evHr4mqI4Xgi+4IuhInSqAho/vXeubx3DirHbRGsHAkk0uDKKxoojwrGy3kXS3nvb 227w== X-Gm-Message-State: AKGB3mI7gWBl2i17vMqqW7O3Dv9NUqZiFw1NCUe7KldyZClRX8uIw51r ViUUtgKBbPTHYx0DAT+S/Rjq7Q== 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 To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Bryan O'Donoghue , Eric Anholt , Stefan Wahren , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Boris Brezillon , Phil Elwell , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.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> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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;