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: 10139507 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 01F4F60362 for ; Mon, 1 Jan 2018 19:49:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E706C286FB for ; Mon, 1 Jan 2018 19:49:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB63E286FE; Mon, 1 Jan 2018 19:49:18 +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 5DA71286FB for ; Mon, 1 Jan 2018 19:49:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753894AbeAATnc (ORCPT ); Mon, 1 Jan 2018 14:43:32 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34119 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753772AbeAATn1 (ORCPT ); Mon, 1 Jan 2018 14:43:27 -0500 Received: by mail-wm0-f68.google.com with SMTP id y82so13974915wmg.1 for ; Mon, 01 Jan 2018 11:43:26 -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=lHHQNwmh4GoGcXb4lxcNq93wJ+1h137aFcf3DLKrZEc66DxnQGWvQJttlyqnKrs0KN 3GNslmbSSV2PXbhEm5XOd4E39mCmV7e5tMamhcop3zySlSB6fyw8j0+VYKxuxp9i24kD +aG4vQcWYsqau/HYqgT72beAPK2ZksihDa3+sWR2Sr8iqrQS66ZgwQRNDRH24wGuR73a lPipZtD2btGehWYomr4WjAYYM+67nAyag5UKYdMbDIAUn4/UMWBbboqwOIeX+yAuWLpn mOmwkzRFx3fAid6S37c/cCAiDEy8pwb0z/Zb5OoLU5cnUqcHAeITtlQnLThiaAyzZgOx WEGA== X-Gm-Message-State: AKGB3mLOqJfMTcihT/fAbQ75MOgT96/+eJ3GXEaAcGkIvDTuIgwy5NDw YeMhbce4zn868/a5ZrTn/TZBkQ== 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 Cc: Bryan O'Donoghue , 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 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> 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 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;