From patchwork Tue Mar 20 03:09:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 147723 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7E281B6F6E for ; Tue, 20 Mar 2012 14:12:14 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S9pSh-0003yz-7Y; Tue, 20 Mar 2012 03:10:15 +0000 Received: from mail-yw0-f49.google.com ([209.85.213.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S9pSd-0003yS-Pt for linux-arm-kernel@lists.infradead.org; Tue, 20 Mar 2012 03:10:12 +0000 Received: by yhjj52 with SMTP id j52so6811240yhj.36 for ; Mon, 19 Mar 2012 20:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=NOAQ4QJo79NiwzUq5KRl1qNAZ9dvQ86c2l+BweXZyk8=; b=O39HfaCZveKIf+yfuggTJeYXwiFDXMdNt+CQcpWpRorHuVdD12UYKCUrPsJXIzl57F onUEfrAAXXaMjTOhcmf5Rh3jc1jy5HREuvoXFbOtpQVkzQjdcftq6xJ8dlGgBbjO6H94 37Zict8Ren6JRRWEMhux61vgHucy0wWcuwA/GLPj88oGDaAM31Ah+pBnI1lZpIXTw9ij y8/ZbJl1Ic0ar1b+9jWRckAz4+1RZs8Njr4/06UpHw+AqZ3qM4mkPx8lTcxr5VmF6HSZ 2M/kZyotApa1Mrh2dxf7DcuP7aCieWdB+TE7jyMRtzYm2mnEd/5OWoTVfoTjG3bzC5Sz pxdQ== Received: by 10.236.153.70 with SMTP id e46mr14621755yhk.29.1332213009429; Mon, 19 Mar 2012 20:10:09 -0700 (PDT) Received: from localhost.localdomain ([201.82.161.72]) by mx.google.com with ESMTPS id d43sm438348yhl.21.2012.03.19.20.10.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Mar 2012 20:10:08 -0700 (PDT) From: Fabio Estevam To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: mach-mx35_3ds: Fix build warning due to the lack of 'const' annotation Date: Tue, 20 Mar 2012 00:09:58 -0300 Message-Id: <1332212998-6234-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , Fabio Estevam , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Fix the following build warning: arch/arm/mach-imx/mach-mx35_3ds.c: In function 'mx35_3ds_lcd_set_power': arch/arm/mach-imx/mach-mx35_3ds.c:112: warning: passing argument 2 of 'gpiochip_find' from incompatible pointer type include/asm-generic/gpio.h:145: note: expected 'int (*)(struct gpio_chip *, const void *)' but argument is of type 'int (*)(struct gpio_chip *, void *)' Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mach-mx35_3ds.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c index e14291d..6ae51c6 100644 --- a/arch/arm/mach-imx/mach-mx35_3ds.c +++ b/arch/arm/mach-imx/mach-mx35_3ds.c @@ -97,7 +97,7 @@ static struct i2c_board_info __initdata i2c_devices_3ds[] = { static int lcd_power_gpio = -ENXIO; static int mc9s08dz60_gpiochip_match(struct gpio_chip *chip, - void *data) + const void *data) { return !strcmp(chip->label, data); }