From patchwork Mon Jun 7 10:15:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raffaele Recalcati X-Patchwork-Id: 104678 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o57AI9Dl009034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 7 Jun 2010 10:18:45 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o57AFbup023132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Jun 2010 05:15:37 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o57AFbBm029767; Mon, 7 Jun 2010 05:15:37 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 169998062C; Mon, 7 Jun 2010 05:15:37 -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 B6EC18062A for ; Mon, 7 Jun 2010 05:15:34 -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 o57AFYWF014761 for ; Mon, 7 Jun 2010 05:15:34 -0500 (CDT) Received: from psmtp.com (na3sys009amx228.postini.com [74.125.149.112]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id o57AFXil006053 for ; Mon, 7 Jun 2010 05:15:34 -0500 Received: from source ([209.85.214.173]) by na3sys009amx228.postini.com ([74.125.148.10]) with SMTP; Mon, 07 Jun 2010 10:15:34 GMT Received: by mail-iw0-f173.google.com with SMTP id 41so3308425iwn.4 for ; Mon, 07 Jun 2010 03:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=XIP2I06oHjB67ddGWyYvTckFV9jblEI9aZ5v4wIALAI=; b=C0OzNcOHfu3l1qkPaQMQCATP0GpvHYYhmVm9Qzl6GNICZJP6kMZZt32sJ07V4ua50H OgSR5Dd1kQu7kLBZDXQvJuBKzpFV1qH0G4IO1IgUupi7/G3dfw2aZuIcpG8FIHErTAHV sD7Gff2guvHI7yYvHrfkXpKW2BK9kN81b94XY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=l4sVIVMjm4g8jgLdKnzvnzlF1cq1cfXXyW/c9kUDEkCGYqrc0XYVUMrQ6msgb82m29 awbl4/A2jibJU5sI2M80UFmEa+Vr4lFXkPr0QEadKA7ned9uXPeDX2DyjpqJ6ZDzfOjg 5KK3N7hOAPcls0fLJ2KI5mBjxNK7RyL0OF51w= MIME-Version: 1.0 Received: by 10.231.141.15 with SMTP id k15mr4073656ibu.161.1275905733491; Mon, 07 Jun 2010 03:15:33 -0700 (PDT) Received: by 10.231.172.16 with HTTP; Mon, 7 Jun 2010 03:15:33 -0700 (PDT) Date: Mon, 7 Jun 2010 12:15:33 +0200 Message-ID: Subject: [PATCH 04/12] ads7846: setting pen_down direction in input From: Raffaele Recalcati To: davinci-linux-open-source X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:74.79109/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] 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: , 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]); Mon, 07 Jun 2010 10:18:45 +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;