From patchwork Fri May 12 16:18:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9724549 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 232B7600CB for ; Fri, 12 May 2017 16:19:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE13A28859 for ; Fri, 12 May 2017 16:19:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2BCE2885C; Fri, 12 May 2017 16:19:52 +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 C6F232885A for ; Fri, 12 May 2017 16:19:51 +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: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:In-Reply-To: References:List-Owner; bh=zw4DieNPRR8api2GPnEsf8KCw3CyLlC+PI5CM4xERqY=; b=P6J ql+TNDZOSe1DC7O5WFd2qncY3yqnzppE6wgrTdXc8VeluiNiCy0yBg0aVxTDCqDLBzPXf8izJQaFL XbpcVQaQJQ/uKSsoyZLuT6GO/PqU+UtYs7Aj9Ii2KgX1XmCpOSCBAvj1WQDpgA6GcGGKbHrk+Ti6F DwsKCVUcUx56nkM1qQQsSnBHKWFULi2SlPrKJ55BtNJ7+Ym0H3z6WN6m/uNyfx6gLaHsi8lnhfafS CD52bETB3X8N5jPNuIwlSY9Lio3zDgnLrc3HJ5iTwpC5db1Mm6ZVUnF2m1cGv7hLrEOqDn3yDWTHF G5T7B9mbV18lHBKLN8y16E3CHU2x9Zw==; 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 1d9DIC-0007mS-4I; Fri, 12 May 2017 16:19:48 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d9DI7-0007jn-HH for linux-arm-kernel@lists.infradead.org; Fri, 12 May 2017 16:19:45 +0000 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-09.nifty.com with ESMTP id v4CGIlFn021195; Sat, 13 May 2017 01:18:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v4CGIlFn021195 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1494605930; bh=KLydtSlLggfuRQWAGmyhXTvXPdFs9NeV8U7W95udMpo=; h=From:To:Cc:Subject:Date:From; b=AO5IVJmDcTmrByFferCkv1ZleLaW853lVKZLGZjsadeh+QpTdffPBBU+q6cYyiz4j bLLHKCy9hd7sZiwFmm4PjqnprYWncKOAAadjVRK4rl091bpJ6CeNZOPrw3TyLVTwrh AvvEKdiWhO/kCNd6uTBzbgbLoBjZ4yKERl9kkDCx9Rnk+1/H0/xyrquAZ8EMniLHT9 vrXb1VUVOsk1Kg2kknFVGVQszTgWxo2N6jkLX4iWgLE8Py/DQ5KLugvDZvQEyCx3Lj Y7TdX172FGWJUMAJgM0s7EwLmZBwFIUyATEsJKo1WvfiIAXsEBkoPAHR0slmrrywnS e5lKd1fGS9YUw== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-gpio@vger.kernel.org Subject: [PATCH] gpio: zynq: remove unneeded (void *) casts in of_match_table Date: Sat, 13 May 2017 01:18:45 +0900 Message-Id: <1494605925-6487-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170512_091943_945465_053752AD X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. 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: Alexandre Courbot , Linus Walleij , Michal Simek , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-arm-kernel@lists.infradead.org, =?UTF-8?q?S=C3=B6ren=20Brinkmann?= 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 of_device_id::data is an opaque pointer. No explicit cast is needed. Signed-off-by: Masahiro Yamada Acked-by: Sören Brinkmann --- drivers/gpio/gpio-zynq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 6b4d10d..ed87c9a 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c @@ -651,9 +651,8 @@ static const struct zynq_platform_data zynq_gpio_def = { }; static const struct of_device_id zynq_gpio_of_match[] = { - { .compatible = "xlnx,zynq-gpio-1.0", .data = (void *)&zynq_gpio_def }, - { .compatible = "xlnx,zynqmp-gpio-1.0", - .data = (void *)&zynqmp_gpio_def }, + { .compatible = "xlnx,zynq-gpio-1.0", .data = &zynq_gpio_def }, + { .compatible = "xlnx,zynqmp-gpio-1.0", .data = &zynqmp_gpio_def }, { /* end of table */ } }; MODULE_DEVICE_TABLE(of, zynq_gpio_of_match);