Message ID | 1514596392-22270-10-git-send-email-pure.logic@nexus-software.ie (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 BB9C2605B4 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 30 Dec 2017 01:13:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC3452D241 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 30 Dec 2017 01:13:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A092E2D23A; Sat, 30 Dec 2017 01:13:56 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA4112D23A for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 30 Dec 2017 01:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uLIXVJ7AD/iJ/gkuJoV/xutmbR4oWY07dovagSIWUNo=; b=qL0Md7Xpd2laanss2EePyyssq+ wDuOVAIrWqwk7brNGTG29pKlEfJoiOxD5Cp+JX9pTDBC4civIHfzlyfu1JrwCcH/MQZPvHjFf4iDs kowXBNjP1coGOCi9FM49iVNOwb2/xJLvs74QpTNk4ctLZfTDg39VG+TTz/R74R8CWRs6L2TFJO3Za 6Jqz3DzhtfGeJYPZitPOEbdNXDnw7b9SkTFCb3P9/3Cs2zeVxb4+bHyc35KghA3y3Jp+S8lqp4D+Y qlKIX8J3U+td6KkfnE+1q4997EEvN0WsZUI8cF+dxzDQPlG53gUAm1J8IjD4+81aaI3aN3siV0XZW 4xQ4WJBQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eV5if-0001Q6-DX; Sat, 30 Dec 2017 01:13:49 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eV5iK-0001Jy-Mi for linux-arm-kernel@lists.infradead.org; Sat, 30 Dec 2017 01:13:42 +0000 Received: by mail-wm0-x244.google.com with SMTP id a79so11266367wma.0 for <linux-arm-kernel@lists.infradead.org>; Fri, 29 Dec 2017 17:13:23 -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=UI983f02jiW0t1fkNJkMnRHiK7jtZhTWMc2fka1RQDGY2Srmdp5mYuCBBE9t/FmC21 MX2zvRj+gzAoDNar2NUfm8jQcdCyzNJJWOIhGtrKdFDyedI+51Q9jO4oFpU5haAy2Cjz jJbdSdgS2ckbqFgwjOFl2dDoxzmB/mDiwy9JAI8udX9oOMe3pU8ojpgdiAvXFsinLITl Oe/5LAmUvz7BtV7qfFkF6LFw3VRV3w3aGbCGsWKv7liCNRibTewpsNlo+e8wFdnO0vO7 2MRrdBEib2QNUY9Z+LFtLAtqMfhPIoWonPdu9ADKyCoJD/48LmgbzeRgOoAsNeRmsBAX R+bA== X-Gm-Message-State: AKGB3mJ5AJ9Uyx8sgSG1gk/LEWpf4Z9UyBOSGrGunQgkn/tE0TYlgCu2 okCsTccgTeDhi/lQ+4HPJTyUPw== 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 <pure.logic@nexus-software.ie> To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171229_171328_963273_2C2B8B71 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Stefan Wahren <stefan.wahren@i2se.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Florian Fainelli <f.fainelli@gmail.com>, Scott Branden <sbranden@broadcom.com>, Ray Jui <rjui@broadcom.com>, Phil Elwell <phil@raspberrypi.org>, Eric Anholt <eric@anholt.net>, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, pure.logic@nexus-software.ie, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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;
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 <pure.logic@nexus-software.ie> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Eric Anholt <eric@anholt.net> Cc: Stefan Wahren <stefan.wahren@i2se.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Ray Jui <rjui@broadcom.com> Cc: Scott Branden <sbranden@broadcom.com> Cc: bcm-kernel-feedback-list@broadcom.com Cc: Boris Brezillon <boris.brezillon@free-electrons.com> Cc: Phil Elwell <phil@raspberrypi.org> 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(-)