From patchwork Mon Jan 1 19:42:48 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: 10139551 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 9C714601A1 for ; Mon, 1 Jan 2018 19:57:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C77828706 for ; Mon, 1 Jan 2018 19:57:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80F5C28709; Mon, 1 Jan 2018 19:57:07 +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 010902870C for ; Mon, 1 Jan 2018 19:57:06 +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=Fzq+swA0Jsp65sUHGB3CFFpXiv tIWTTN1BS0Q1MF0VNdFLgKMFqtR/AKe15UhUilscwc5ze1fyax/LePhOBSXlXKkupn7RnsywAPE6L +Yu+TlSH3Dy4DdDxEAqis5VvcDooXRQMtSwD9AxkUOcsFS5XNpIq1cdG15EQW0UJYR8E/lLKkPkZ2 h6TINcCHmngCx5y6Fxh07tsGOAa8hIBpwJHlUIWPPvNGgtHx/H9G2WjyQkXEjZ+w+Xa6uTYJA/U/S j4qf6OGxf9hEJ0tqPo07f9mDubABnsYTE2EJy1R5Iwz/J9iLYSxLV0Qi6fIh0MzigzWoPA4jykHp5 pE71/PxQ==; 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 1eW6Cm-0002rq-Ah; Mon, 01 Jan 2018 19:57:04 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW5ze-00039R-Uc for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2018 19:44:46 +0000 Received: by mail-wm0-x243.google.com with SMTP id y82so13974912wmg.1 for ; Mon, 01 Jan 2018 11:43:27 -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=EYcaa2S7eDvF3zta/kckBVtPaO+RGU/9Sy49rYIhGS/DYBGwv7bR5lN3s8TTYaUfZ3 ZolBKXddyrffP3dCI8JX9pw690PigghEjFdLusReOC1ELwbFU6HKZDr/RlxlhIxsxzUo U31SZPt8CCBm9kfTjN/EGGvRDetHATnN6a8A0yD4GUNNJ9MEJo1sITgV2DCw6/sCIIWF E88af7Nz7ocVDKg6H6Wi6eKvD6yK7aQBzii4b3zHUZmUGcz3sYXnPaI7ZAMi2zGr7oky WSfEtlauVYCsNz6z/rnE5lNVlnde9zyh50K5kSoFM+uGAtMxDOeygk4fJSToJZrEg+/F BoQQ== 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=Vp2VjUWoztPUQqDdYhHfODeoht0ufvkaFXgtmf8kD5mEnGOiWD6KRlgLuakpX4cRa/ i+sj0jjax4DbnmopgeCUcNQaHN0ZYO3mC6g5lR8lMS8bO0tsXGYB7v2FCdiI7uX6lL7Q 7l9zL8KqWYiY2t942xsJwKEWMcx2khCFIYUUhgsRCaAo63ultxbPOzOSRl+6DZOj6APj SVmvyAg2NwIyQgKUix0TiQfuaYohSCRoYNWQyKWNWh1adnzV/F+2Nz0YwOvjlKS3Fv3U +Ki8mtSSKOHl/xcxR6rsIy8WxFMrsz42hJY87GCAmBTlb0Fr3el0+dMhfIE0K2wPO5kR rwIw== X-Gm-Message-State: AKGB3mJyndGJybsgY8DPg5WutnEzX4pVePFcuOG222eGADn/NIoPlYX+ dRdK2Ot2+cZtz9aptdfFZ0HDLg== X-Google-Smtp-Source: ACJfBouEAgXVAIySYRDBo8I5Bs8cIMpDVFFyLsQKZisAu8PO7HXERTakC0+dlbwHGR+3a8ToUvhvKw== X-Received: by 10.80.240.200 with SMTP id a8mr58220905edm.288.1514835805862; Mon, 01 Jan 2018 11:43:25 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jan 2018 11:43:25 -0800 (PST) From: Bryan O'Donoghue To: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v3 09/34] clk: bcm2835: change clk_get_rate() helper return type Date: Mon, 1 Jan 2018 19:42:48 +0000 Message-Id: <1514835793-1104-10-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180101_114331_126268_5690C94E X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , Boris Brezillon , Florian Fainelli , Scott Branden , Ray Jui , Phil Elwell , Eric Anholt , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Bryan O'Donoghue , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 Reviewed-by: Eric Anholt --- 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;