From patchwork Mon Jan 1 19:07:32 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: 10139265 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 DD1046035E for ; Mon, 1 Jan 2018 19:10:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D04AD286AB for ; Mon, 1 Jan 2018 19:10:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4F8128765; Mon, 1 Jan 2018 19:10:25 +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 72C14286AB for ; Mon, 1 Jan 2018 19:10:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752727AbeAATJg (ORCPT ); Mon, 1 Jan 2018 14:09:36 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:38686 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752570AbeAATIL (ORCPT ); Mon, 1 Jan 2018 14:08:11 -0500 Received: by mail-wm0-f65.google.com with SMTP id 64so57847590wme.3 for ; Mon, 01 Jan 2018 11:08:11 -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=ZwySYmw6nPeVd6oS46mJHhtbADJmZpXVM8k9payU1jS8LqLXtJe1txBNFLm2mmDbBT VBimc3ZVcJWxUJ6UEyyxPC+kfXqkK0nReo34qTjKaJ/W5OWbx/jYEzreXdljXcv3hn8m eMGF3QHKMg2lbzhZbqWrgQKGmQaN2C9x3yJ+3UPKzJk6ODkf2I/QMR9UZIp4UbriHQuq x8DrlGXgjGfxeer4RpUn98CWJqTbCx9E5ha9z/vq/es2r9mFdOZNKdRutenlke9VMEKF VtnnvMV7A1sV703dCuzm67iqKN9QJr8UoR+Pq3YWYeqAy0Raohv2KSCy/19iwmfLm1B/ H14A== 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=DKY6HP92S4tOkGbPFcARHUmNQv1rZ42/03hOIYBb9TwtEbN+LSxHnkv/wPOEBEhlXc w+lxFEJtHwPgu5/9KQ+2m91bN6skbPWRnQJFWaI7GgOvp1UyPZyO4MojwPJ0+YxhZ7GS DlEF67/0b7Wc7UJoOJdr+P/CbTG3xzCxzqMsJ1OVA0wbb3jpVY7nb+BYp7Uh4FCLULzU 2snw+L6Ut3pRvZVlWpDmUKDREsU6j9kAwZA7sH9a06Rb6KqaMsYCRvZCabiyzkrv0klI aD2nQPJdtYk9jkHfZGRKg7CjWgaPeYz35d6yryreKFtH3D1lJJxIkZCTVjEz5IZx9OaE GgbA== X-Gm-Message-State: AKGB3mLmggl9UgMMUEwU6CDlzpBflfMLlsryBNn8RPSVOYpwOUk/9GWm CGc39ttHEYdat4bxujEf5iegWg== X-Google-Smtp-Source: ACJfBos4Ox1ri1W58i3cxqRm/H2vNd1NEZTjNwk/YQwhssMJVpY49uu0fB78NxDw3PA65+2us5wBCg== X-Received: by 10.80.165.226 with SMTP id b31mr58466914edc.172.1514833690482; Mon, 01 Jan 2018 11:08:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:08:09 -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 v2 05/34] clk: at91: update clk_pll_get_best_div_mul to return unsigned long Date: Mon, 1 Jan 2018 19:07:32 +0000 Message-Id: <1514833681-30737-6-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 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;