From patchwork Thu May 6 10:37:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oskar Schirmer X-Patchwork-Id: 97334 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 o46B2r4T030321 for ; Thu, 6 May 2010 11:02:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751992Ab0EFLCx (ORCPT ); Thu, 6 May 2010 07:02:53 -0400 Received: from mx1.emlix.com ([193.175.82.87]:49000 "EHLO mx1.emlix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987Ab0EFLCw (ORCPT ); Thu, 6 May 2010 07:02:52 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 06 May 2010 11:03:06 +0000 (UTC) X-Greylist: delayed 1495 seconds by postgrey-1.27 at vger.kernel.org; Thu, 06 May 2010 07:02:52 EDT Received: from gate.emlix.com ([193.175.27.217]:36648 helo=mailer.emlix.com) by mx1.emlix.com with esmtp (Exim 4.69) (envelope-from ) id 1O9ySh-0003mV-EC; Thu, 06 May 2010 12:37:47 +0200 Received: by mailer.emlix.com id 1O9ySg-00013k-6x; Thu, 06 May 2010 12:37:47 +0200 Received: by mango (sSMTP sendmail emulation); Thu, 06 May 2010 12:37:45 +0200 From: "Oskar Schirmer" To: Dmitry Torokhov Cc: Mike Frysinger , Andrew Morton , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Oskar Schirmer , =?utf-8?q?Daniel=20Gl=C3=B6ckner?= , Oliver Schneidewind Subject: [PATCH] ad7877: fix spi word size to 16 bit Date: Thu, 6 May 2010 12:37:44 +0200 Message-Id: <1273142265-11929-1-git-send-email-os@emlix.com> MIME-Version: 1.0 Organization: emlix gmbh, Goettingen, Germany Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index e019d53..92acd85 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c @@ -669,6 +669,8 @@ static int __devinit ad7877_probe(struct spi_device *spi) dev_dbg(&spi->dev, "SPI CLK %d Hz?\n",spi->max_speed_hz); return -EINVAL; } + spi->bits_per_word = 16; + spi_setup(spi); ts = kzalloc(sizeof(struct ad7877), GFP_KERNEL); input_dev = input_allocate_device();