From patchwork Sat Dec 30 01:12:48 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: 10137579 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 3BF086037D for ; Sat, 30 Dec 2017 01:19:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F2A82B551 for ; Sat, 30 Dec 2017 01:19:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 240572B55D; Sat, 30 Dec 2017 01:19:24 +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 AD8DC2B551 for ; Sat, 30 Dec 2017 01:19:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbdL3BTX (ORCPT ); Fri, 29 Dec 2017 20:19:23 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34972 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbdL3BNX (ORCPT ); Fri, 29 Dec 2017 20:13:23 -0500 Received: by mail-wm0-f68.google.com with SMTP id a79so11266363wma.0 for ; Fri, 29 Dec 2017 17:13: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=yKSqTkPJmkNkmcogfgBOzioJhJONKnVD7T6LfkZ/oVs=; b=fJHiuxZD4r8Ck76kbYrvdYwC1Eawa40dm5P0mmftEMGWIoVjf7CcJ9Qh9OTRrVwZ4R KMjatgdwKZpvs+y02l7kwA12/NM8Ph/AFl76hR9OBahhokhD9r6ekbWSYghTsQjGrCoW rjgmH4gsHFyp292N1n/4YZPafoO30E0hFSBjjTgVE1rbMjHL0AUGbDLNwSzczgAjxUf8 HxqkANVdkJFbt3ECNcqt7KAGs4YDiWMgfdgqWTmCtfT95R2TMATQyvqN2i28L2qhK93h 5m1vT0kPQvESHr/ACnEVOJxU1gb0que70uKyHHPZVTzigtbhpqI2iuB1XorWFM5blV+x 21Gw== 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=yKSqTkPJmkNkmcogfgBOzioJhJONKnVD7T6LfkZ/oVs=; b=g9bWbYqgSoqchqNWzw4OmQOTKNfPZrundLUSoLyIMfPw8Rq524DlxB12oX75pJieCs BYGfRtK24OTMwvWH2sPiPF6blzYj9jA2tt/csBfKNFCCWs8ZVB8xkyiF84QXfJ5q8SMl DM15R/cd1ERM5HS1+k1Ju+k4kchyAEqKJziO0LtoV7io0xkrzHwsfEJY0pdOR3bQGIpw jXgCp+sZ/BHafmNA2IMubHsa9Qx6s/2hiUW8UEH3Daw87/4IpwlxGNwfaosnfrhq3GGY qGXTofF9oCi7Oll0ZmoWZbtUAMylvs37TBg4rgqJ4HC0s2QB9TjV7F96z1Zacv4Vt43l BSkw== X-Gm-Message-State: AKGB3mIfTUqJjvvZVnBnAJOAKanilSIpZAg2We9IIUDh1Oh2RF1Pdm3Z KM32KQ//zx7ce4OE+VMW2zxkyw== X-Google-Smtp-Source: ACJfBouzwjI6LSz+h9OI7GaWwWEOhTMgbcsgaYaHirjQB5NZlrHHFAz3Pn/UmC37gyVFUQrk3mLZvw== X-Received: by 10.80.216.141 with SMTP id p13mr47563291edj.24.1514596401947; Fri, 29 Dec 2017 17:13:21 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id h4sm29818268edb.16.2017.12.29.17.13.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 17:13: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: pure.logic@nexus-software.ie, 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 09/33] clk: bcm2835: change clk_get_rate() helper return type Date: Sat, 30 Dec 2017 01:12:48 +0000 Message-Id: <1514596392-22270-10-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 bcm2835_pll_rate_from_divisor returns a long but the function calling it returns an unsigned long. There's no reason to have a type disparity here so tidy up the return type of bcm2835_pll_rate_from_divisor() from signed to unsigned long. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index fb2b012..cde2cf1 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -955,9 +955,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw, return div; } -static long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, - unsigned long parent_rate, - u32 div) +static unsigned long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, + unsigned long parent_rate, + u32 div) { const struct bcm2835_clock_data *data = clock->data; u64 temp;