From patchwork Sat Mar 31 08:46:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 149814 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 AEBC4B6FA4 for ; Sat, 31 Mar 2012 19:48:20 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SDtwx-00042s-83; Sat, 31 Mar 2012 08:46:19 +0000 Received: from mail-iy0-f177.google.com ([209.85.210.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SDtwu-00042e-KN for linux-arm-kernel@lists.infradead.org; Sat, 31 Mar 2012 08:46:17 +0000 Received: by iaky10 with SMTP id y10so2450603iak.36 for ; Sat, 31 Mar 2012 01:46:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=olHLTDUNDAk6JgB3LhqyMCY2dzWem8NgrGiMS1FjN/c=; b=SYo0hFGFD6kLfRAYiDGtSIg19UgbrV4uYz34xD4F1VsAUndmcKLQOpZAyPS2K8ZqtR xvpRPECKWYGQBdMQTckcnsGcb5fiA3BdHwl4gGVA/mkxqpFmIUX0F0RAofRhc+8eDCo+ TnoAgGaOjJSNPMx2n2KJhwx9Mudl/hJ3Fd6AeRDqBYmZvIpb7zxOgTw92l1VXGp/ZP5g z1RzII3w0aMeIj0dlx8oXJBa0DBc8/Q81ztsG+vnfGpvVJ3a8eC7bs32nFSFqTGaL/LN wohe9cZtR1kceWGC73Ahg2LAm/1p3ivqt+2CVmKKGsfp6W84B6S0y9Bbtglo1Spy85n5 wR6w== Received: by 10.43.134.200 with SMTP id id8mr828063icc.32.1333183575644; Sat, 31 Mar 2012 01:46:15 -0700 (PDT) Received: from localhost.localdomain ([58.208.96.125]) by mx.google.com with ESMTPS id vr4sm13140747igb.1.2012.03.31.01.46.11 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Mar 2012 01:46:14 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: imx: fix mc9s08dz60_gpiochip_match parameter type Date: Sat, 31 Mar 2012 16:46:17 +0800 Message-Id: <1333183577-2109-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkTjRI9QO/NZvrBsQcGKL/wwHP/hnLeOz2+e7ek02GXZ3kqLi6aZ4jpXn0cEmwNpW+iOi/m X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Shawn Guo 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: , 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 Due to the change made by commit 6e2cf65 (gpio: constify the data parameter to gpiochip_find()), the following compile warning is seen on imx_v6_v7_defconfig build. CC arch/arm/mach-imx/mach-mx35_3ds.o arch/arm/mach-imx/mach-mx35_3ds.c: In function ‘mx35_3ds_lcd_set_power’: arch/arm/mach-imx/mach-mx35_3ds.c:112:5: warning: passing argument 2 of ‘gpiochip_find’ from incompatible pointer type [enabled by default] include/asm-generic/gpio.h:145:26: note: expected ‘int (*)(struct gpio_chip *, const void *)’ but argument is of type ‘int (*)(struct gpio_chip *, void *)’ Change mc9s08dz60_gpiochip_match parameter type accordingly to fix the warning. Signed-off-by: Shawn Guo --- 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); }