From patchwork Tue Apr 25 21:34:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9699801 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 9F078601D3 for ; Tue, 25 Apr 2017 21:51:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F31028159 for ; Tue, 25 Apr 2017 21:51:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 835AE2839C; Tue, 25 Apr 2017 21:51:15 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 40A7228159 for ; Tue, 25 Apr 2017 21:51:15 +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=bVbV0NuzYWkw0RjnZ1XDwREIrxQ6Y9Ax6gfC8vdYvV8=; b=Fi8Y+vu/j+y5Ox2Am86eA+9Gyf g2HfMCSUlbUvQ6o8KwL4AMKtVS8Pdd6eUqD/AnsF1I2uIxkAgqvJ+k3iH2j+j2Xlb61AAtFugnXA6 X7lZSd9i0/N3+6L/aH9I4WBaz07SKxghM/gqjpW7kzmcWul4GYPNaDMdekF31h4jUbsA+1I9mo9b3 4bwcTWMd1dItuJoBffewXEiSZHsJHSjicTHlRSW/Zh23+4+YfGPGXKz/KHBI0PdriZf9mZqS1zoPq Yljevhc03BKdR49OOf5Eb4lty3+pbBk2juy2t92nAxxBUkOuZMu7BMBQPuPIfwKGZZDJiW7JT22Ms KdXYx5zg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d38Mc-0007W2-DO; Tue, 25 Apr 2017 21:51:14 +0000 Received: from conuserg-07.nifty.com ([210.131.2.74]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d387T-0000sr-D3; Tue, 25 Apr 2017 21:35:38 +0000 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 v3PLYTWb018516; Wed, 26 Apr 2017 06:34:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v3PLYTWb018516 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1493156075; bh=vEXzslKtvvxtPdyKIQOAT6qqMaCNJOcryEg0AmW9PCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a7iaeCuhGLjD+/G/r1pULZ95NwY6DxGhfdFp7PGupIRSLFYR5wLiDbxk4t9mErIq+ +PpBP7bsE6WSoAFAC80unliHlRJ0HX77JoPI85Y0xpesoP9DU9y83cDA8tr9D6aHEJ zI5xmsphpD+EVPCovf4wUc8YINQM+wzM4Te/dHNpnLlH38ROLO13wrD0gjHmxxCdO6 K2sq3qU6JvBDCsq3cGOGF6K//FU7q1qs551RVyoTz46Wj+YlKcoqXzHPaBqI4p9GZc Qq/2RhehtCrJOSGHKFRijr4L035hslyac7vpW1WpS7J5gzkTqecQWwmDdVNGiEjpcm 9Ka2ORovPiYHQ== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-gpio@vger.kernel.org Subject: [PATCH 1/2] pinctrl: rockchip: remove unneeded (void *) casts in of_match_table Date: Wed, 26 Apr 2017 06:34:22 +0900 Message-Id: <1493156063-8446-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493156063-8446-1-git-send-email-yamada.masahiro@socionext.com> References: <1493156063-8446-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170425_143535_709595_6F6D5FD1 X-CRM114-Status: UNSURE ( 6.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , linux-rockchip@lists.infradead.org, Linus Walleij , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP of_device_id::data is an opaque pointer. No explicit cast is needed. Signed-off-by: Masahiro Yamada Reviewed-by: Heiko Stuebner --- drivers/pinctrl/pinctrl-rockchip.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 7813599..da1a38f 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -2769,25 +2769,25 @@ static struct rockchip_pin_ctrl rk3399_pin_ctrl = { static const struct of_device_id rockchip_pinctrl_dt_match[] = { { .compatible = "rockchip,rk1108-pinctrl", - .data = (void *)&rk1108_pin_ctrl }, + .data = &rk1108_pin_ctrl }, { .compatible = "rockchip,rk2928-pinctrl", - .data = (void *)&rk2928_pin_ctrl }, + .data = &rk2928_pin_ctrl }, { .compatible = "rockchip,rk3036-pinctrl", - .data = (void *)&rk3036_pin_ctrl }, + .data = &rk3036_pin_ctrl }, { .compatible = "rockchip,rk3066a-pinctrl", - .data = (void *)&rk3066a_pin_ctrl }, + .data = &rk3066a_pin_ctrl }, { .compatible = "rockchip,rk3066b-pinctrl", - .data = (void *)&rk3066b_pin_ctrl }, + .data = &rk3066b_pin_ctrl }, { .compatible = "rockchip,rk3188-pinctrl", - .data = (void *)&rk3188_pin_ctrl }, + .data = &rk3188_pin_ctrl }, { .compatible = "rockchip,rk3228-pinctrl", - .data = (void *)&rk3228_pin_ctrl }, + .data = &rk3228_pin_ctrl }, { .compatible = "rockchip,rk3288-pinctrl", - .data = (void *)&rk3288_pin_ctrl }, + .data = &rk3288_pin_ctrl }, { .compatible = "rockchip,rk3368-pinctrl", - .data = (void *)&rk3368_pin_ctrl }, + .data = &rk3368_pin_ctrl }, { .compatible = "rockchip,rk3399-pinctrl", - .data = (void *)&rk3399_pin_ctrl }, + .data = &rk3399_pin_ctrl }, {}, };