From patchwork Sun Oct 16 15:25:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9378201 X-Patchwork-Delegate: sboyd@codeaurora.org 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 827D4600CA for ; Sun, 16 Oct 2016 15:27:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 657DC28D02 for ; Sun, 16 Oct 2016 15:27:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 590C928D07; Sun, 16 Oct 2016 15:27:01 +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 3792A28D02 for ; Sun, 16 Oct 2016 15:27:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755822AbcJPP06 (ORCPT ); Sun, 16 Oct 2016 11:26:58 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:52075 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755640AbcJPP05 (ORCPT ); Sun, 16 Oct 2016 11:26:57 -0400 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-07.nifty.com with ESMTP id u9GFPvpZ026981; Mon, 17 Oct 2016 00:26:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u9GFPvpZ026981 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1476631562; bh=EbiPjq4QnXNt8iKLrrCuaExsiDg6CY7v69qei9fXvkw=; h=From:To:Cc:Subject:Date:From; b=Iwr4N14o5jRkcrc2/ARbyXY0ZuRXkQX68Fu1+SPAF+HYkvS1V9x9pH5v9FKU8G/mO DHW48rnCOZ2h44ieKh+2NPjwQlSLpQ3/tDXsNeL/LdVr7ljQ1buzZu9dGu42kcyRzp viSwhJc+ErrNN0n4XEs97elWbperIndDpV4laW0spVau0XSBN4SbT67rJ68WnHiHwK 4jrFBD3+8KrY0mWxIn5izG7OUQ/3pNgmPfYc8mvhxgr36VCAGt2akTZ5sCAf7oBarI qu4tppJ3bpdXGXsYelxs5bbFFvEm3gwLo/rvLM3w9NTeRio37EVcbmkYkv8EVSJK4t VO3AY0mhRMZXA== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-clk@vger.kernel.org Cc: Masahiro Yamada , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] clk: uniphier: fix type of variable passed to regmap_read() Date: Mon, 17 Oct 2016 00:25:55 +0900 Message-Id: <1476631555-2059-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 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 The 3rd argument of regmap_read() takes a pointer to unsigned int. This driver is saved just because u32 happens to be typedef'ed as unsigned int, but we should not rely on that fact. Change the variable type just in case. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/uniphier/clk-uniphier-mux.c b/drivers/clk/uniphier/clk-uniphier-mux.c index 15a2f2c..2c243a8 100644 --- a/drivers/clk/uniphier/clk-uniphier-mux.c +++ b/drivers/clk/uniphier/clk-uniphier-mux.c @@ -42,7 +42,7 @@ static u8 uniphier_clk_mux_get_parent(struct clk_hw *hw) struct uniphier_clk_mux *mux = to_uniphier_clk_mux(hw); int num_parents = clk_hw_get_num_parents(hw); int ret; - u32 val; + unsigned int val; u8 i; ret = regmap_read(mux->regmap, mux->reg, &val);