From patchwork Wed Jun 2 06:50:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Weber X-Patchwork-Id: 103704 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o526pjWh016840 for ; Wed, 2 Jun 2010 06:51:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752857Ab0FBGve (ORCPT ); Wed, 2 Jun 2010 02:51:34 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:56517 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056Ab0FBGvd (ORCPT ); Wed, 2 Jun 2010 02:51:33 -0400 Received: from corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net [212.114.252.242]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Lvg2y-1POWxL4Bzg-017v0H; Wed, 02 Jun 2010 08:51:32 +0200 Received: from Lupus.CS.local (unknown [192.168.102.87]) by corscience.de (Postfix) with ESMTP id 8727851E70; Wed, 2 Jun 2010 08:51:31 +0200 (CEST) From: Thomas Weber Cc: Thomas Weber , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: ads7846: Fix warning about output format Date: Wed, 2 Jun 2010 08:50:29 +0200 Message-Id: <1275461429-4838-1-git-send-email-weber@corscience.de> X-Mailer: git-send-email 1.7.1 To: Dmitry Torokhov X-Provags-ID: V01U2FsdGVkX1/7hWnMjvw34VMb4ipqh4rPMGKOtl24PFKkaUK pyyF+XyAjpD7YmqlCSjrUeG/gB2K1Tu94v+iPNd9xa5pbB3Ztp sn5UaBxMB/wRBQhrvzRfg== Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 02 Jun 2010 06:51:45 +0000 (UTC) diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 634f6f6..9ba7d2e 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -885,7 +885,7 @@ static int __devinit ads7846_probe(struct spi_device *spi) struct spi_message *m; struct spi_transfer *x; int vref; - int err; + long err; if (!spi->irq) { dev_dbg(&spi->dev, "no IRQ?\n"); @@ -1170,7 +1170,7 @@ static int __devinit ads7846_probe(struct spi_device *spi) err = regulator_enable(ts->reg); if (err) { - dev_err(&spi->dev, "unable to enable regulator: %d\n", err); + dev_err(&spi->dev, "unable to enable regulator: %ld\n", err); goto err_put_regulator; }