From patchwork Sat Dec 30 01:12:44 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: 10137597 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 9669D603FA for ; Sat, 30 Dec 2017 01:20:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89B982B55D for ; Sat, 30 Dec 2017 01:20:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E79C2C307; Sat, 30 Dec 2017 01:20:27 +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 2A2C82B55D for ; Sat, 30 Dec 2017 01:20:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751324AbdL3BT1 (ORCPT ); Fri, 29 Dec 2017 20:19:27 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:42283 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750970AbdL3BNT (ORCPT ); Fri, 29 Dec 2017 20:13:19 -0500 Received: by mail-wm0-f66.google.com with SMTP id b141so3833715wme.1 for ; Fri, 29 Dec 2017 17:13:18 -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=u/POi//W9pK1P8rAXwr5WvZSsuElOLccwfwhW+EkosE=; b=MFtt9tb0/sd81lZ8SJfc+NgeVdNIqyUaiUVEVesLpvDObH9H4YLjNEKT1TULnYdPml ciA4kLn2tD2YKxzWJVE07yY3fgYaovNURexsQSWPfdcdWlu5qMDcyLhzZ0fkG3mJapn6 oyldfpRfjyA7RxVSqgLqyMD4j1KbeU+j9rTgb51dL9fyreOWqLVQZHcGT/1wfZu1qI2d 3Gye9n9pdJeCT+ffSsq2kJE+ahZKNjrdxcArkwKDGLQEGYCLDLEq26wDuvBXBXriJFH0 frIU2r4rSu0eBHnP4IDdqAf+PKh4353kM+5GdUrSgcpkKw23uQrhd+cnTD3auFz+2pyd xjRg== 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=u/POi//W9pK1P8rAXwr5WvZSsuElOLccwfwhW+EkosE=; b=gNSP88ZZLet544wUU6ivOdocssC/Ekriwl34oZefpGBwsXImDRQhIMzB83GJuVVLLI SBpgEcc4hSU7eaDEqG4V3hIQovRz1dcw49ef8wBp0bOPTVY42Xx/Zqnj9jVSg+F2GbGx KPxmkR1VzOhkVcrDXwETiIQGyvU02/Mz3ItS9VTcHKOCLkww3NOTwQLdWcbIZPxlRfd7 6Vp22A3cv6C9PL06kKlwtq7ustHsFwlEr4C10ekW0gUX/raU/ZEURf7fXK0MEC9Fz03H K9n8C+z0TVTWfb3UtTWvu5gajisbumIGQFPny35YMO/qRWxTefecx1IZvaOIHtnD2lDQ f65w== X-Gm-Message-State: AKGB3mJQcjasKagCSwQL0/P1LixtBXh7vYaIkr9W6UKhtkFVPqX8tUVS SDVSHADJ4YG9vrDokAOd0WBy//ND X-Google-Smtp-Source: ACJfBov7TcQzE0vAWkMXl9G6iUHN0i3yo+Rx4Aj6VbgLfCGmRXLWBiYMf7RYMwufDqEpTFCA39FGXw== X-Received: by 10.80.134.135 with SMTP id r7mr48572561eda.241.1514596397986; Fri, 29 Dec 2017 17:13:17 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id h4sm29818268edb.16.2017.12.29.17.13.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 17:13:17 -0800 (PST) From: Bryan O'Donoghue To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: pure.logic@nexus-software.ie, Boris Brezillon Subject: [PATCH 05/33] clk: at91: update clk_pll_get_best_div_mul to return unsigned long Date: Sat, 30 Dec 2017 01:12:44 +0000 Message-Id: <1514596392-22270-6-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> 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 clk_pll_get_best_div_mul() 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: Boris Brezillon Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/clk/at91/clk-pll.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/at91/clk-pll.c b/drivers/clk/at91/clk-pll.c index 4e7da3e..630203e 100644 --- a/drivers/clk/at91/clk-pll.c +++ b/drivers/clk/at91/clk-pll.c @@ -147,10 +147,11 @@ static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, return (parent_rate / div) * (mul + 1); } -static long clk_pll_get_best_div_mul(struct clk_pll *pll, unsigned long rate, - unsigned long parent_rate, - u32 *div, u32 *mul, - u32 *index) { +static unsigned long clk_pll_get_best_div_mul(struct clk_pll *pll, + unsigned long rate, + unsigned long parent_rate, + u32 *div, u32 *mul, u32 *index) +{ const struct clk_pll_layout *layout = pll->layout; const struct clk_pll_characteristics *characteristics = pll->characteristics;