From patchwork Fri Jun 11 10:19:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raffaele Recalcati X-Patchwork-Id: 105550 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5BAN82q018029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Jun 2010 10:23:44 GMT Received: from dlep35.itg.ti.com ([157.170.170.118]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o5BALKp6012231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jun 2010 05:21:21 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id o5BALII8021462; Fri, 11 Jun 2010 05:21:19 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 276AA80639; Fri, 11 Jun 2010 05:21:07 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 9646180628 for ; Fri, 11 Jun 2010 05:20:08 -0500 (CDT) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id o5BAK8WW009318 for ; Fri, 11 Jun 2010 05:20:08 -0500 (CDT) Received: from psmtp.com (na3sys009amx160.postini.com [74.125.149.86]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id o5BAK7xk011879 for ; Fri, 11 Jun 2010 05:20:07 -0500 Received: from source ([74.125.82.173]) by na3sys009amx160.postini.com ([74.125.148.10]) with SMTP; Fri, 11 Jun 2010 03:20:07 PDT Received: by mail-wy0-f173.google.com with SMTP id 36so682492wyb.4 for ; Fri, 11 Jun 2010 03:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=j5njiYsGqbz+yXCOwaROAgOlX2lUeMrOFLG02OJITps=; b=LcdkeOduk8C08hd9bt+ZL741EoSqqJY12MBWijNwXqOW61Z6DyGy5JB9qFZJ/aDMRM V5wLh6ZcWnZmkOjU/OujOPuiSTC1ljX+aSQLY3aJZcfO24GCKQmNukXWecYruAVp/4B2 QSoATH/Mb50P2DflwSZTnxCxu1Jn24b1TYRQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=YM2m6PY4+wgwkB4ugCWdGVVV58UBjhcZ8XgnLIawXz7cuye7u14mUIjV3wgVb3OVUt huP7+uK83KGMGb5sz0na6w37yqItlbyYCpWGUcwVFlwf5QeRrUdA+CSDqhcoMCZLuL28 EIgKoheRbVHBbor825eeW8Pvbf8qxVY6IY/kI= Received: by 10.227.152.204 with SMTP id h12mr1602036wbw.108.1276251606054; Fri, 11 Jun 2010 03:20:06 -0700 (PDT) Received: from localhost.localdomain (host81-90-static.72-81-b.business.telecomitalia.it [81.72.90.81]) by mx.google.com with ESMTPS id p17sm530613wbe.14.2010.06.11.03.20.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 11 Jun 2010 03:20:05 -0700 (PDT) From: Raffaele Recalcati To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 04/14] ads7846: setting pen_down direction in input Date: Fri, 11 Jun 2010 12:19:44 +0200 Message-Id: <1276251594-5936-4-git-send-email-lamiaposta71@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1276251594-5936-1-git-send-email-lamiaposta71@gmail.com> References: <1276251594-5936-1-git-send-email-lamiaposta71@gmail.com> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:43.19646/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.5000) s cv gt3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: Raffaele Recalcati X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 11 Jun 2010 10:23:44 +0000 (UTC) diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 532279c..226dbdc 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -872,6 +872,8 @@ static int __devinit setup_pendown(struct spi_device *spi, struct ads7846 *ts) return err; } + gpio_direction_input(pdata->gpio_pendown); + ts->gpio_pendown = pdata->gpio_pendown; return 0; }