From patchwork Mon Jan 1 19:42:44 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: 10139533 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 D27D0601A1 for ; Mon, 1 Jan 2018 19:51:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C415C28700 for ; Mon, 1 Jan 2018 19:51:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8FBD28703; Mon, 1 Jan 2018 19:51: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=-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 5530528700 for ; Mon, 1 Jan 2018 19:51:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbeAATux (ORCPT ); Mon, 1 Jan 2018 14:50:53 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39296 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753797AbeAATnX (ORCPT ); Mon, 1 Jan 2018 14:43:23 -0500 Received: by mail-wm0-f66.google.com with SMTP id i11so57917554wmf.4 for ; Mon, 01 Jan 2018 11:43: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=u/POi//W9pK1P8rAXwr5WvZSsuElOLccwfwhW+EkosE=; b=RwyEm3LJhssL0dVeGaoCrveo5NwHqpe/umBWJOR1hnrwjAu6ES5rQGw6xmNCsqay/5 FJyrYENEa5m5UpxxCXnXoz65hatzmCPi1Znk/4sxFucfbxJczPI6YwdcsZDJUezuaply u45yzfX0xAdfZRQjgVEK0P2m6YsPJj0oDFHuFTowUBD4RMvwCxlQm9H00Pdoj5BBRzTG 7Wrq/OkWRMjddL0702QWFtQycQa2XQirES46D86oHUUT9dNJ3CC/Uvb7nHQcgj4iZldI DY3kEV/84Qnnjg7DbEdI/0y7Pev6l2kDVXmmohztXL8MdITpOm1qHfQde+hVuraCtLxj cOHA== 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=sXfrkUTNqCwFhE3KROinT7k/vtiHnLrv06Cadtd6+j60PT4yAEbAgkA+lQkXcZnpA1 tq1zgJK1BSTK0m+3lb1el1AcOEobitGDdcy9QAfkJ7nsPwSQEcruiGu7bcbXTWuALgG7 2NJW5gTEOGJTCSpwzFrTF3IdHBKwfpGFswOo/h1c4ea7CbS4DUpMFH62BohC1YkEbbMk 2/EFExTNivyd0v9Sw/G7R/ZYo2kv2MR7AHqcnVXKMVq7xvhv54mUB6cdXeizHj9P3jL5 3emCJle/gnXuciWiM7nBPg3S/LdnMmKaZFoFFup+1Bsi3dXRXzCNn99Y+65vbVbwunyy rn4g== X-Gm-Message-State: AKGB3mLMKvfFkOv6o9b44T07fo21dxHOjoZreEox+zmPuFzmrF1gTOo0 kygnP8jjum9EQaPV6uxpPaI0MQ== X-Google-Smtp-Source: ACJfBos5SsQpEWmV/b9FCM0f9Cvkb73Q5SiKtU4DpcS8WD4m0HoyAeOd+foP/GCigJdab9tBOCSFZw== X-Received: by 10.80.244.141 with SMTP id s13mr59007558edm.222.1514835802040; Mon, 01 Jan 2018 11:43:22 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:43:21 -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 , Boris Brezillon Subject: [PATCH v3 05/34] clk: at91: update clk_pll_get_best_div_mul to return unsigned long Date: Mon, 1 Jan 2018 19:42:44 +0000 Message-Id: <1514835793-1104-6-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> 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;