From patchwork Mon Aug 22 11:44:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hennerich, Michael" X-Patchwork-Id: 1085132 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7MBhwVN020136 for ; Mon, 22 Aug 2011 11:44:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751473Ab1HVLoQ (ORCPT ); Mon, 22 Aug 2011 07:44:16 -0400 Received: from ch1ehsobe003.messaging.microsoft.com ([216.32.181.183]:58246 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305Ab1HVLoQ (ORCPT ); Mon, 22 Aug 2011 07:44:16 -0400 Received: from mail104-ch1-R.bigfish.com (216.32.181.171) by CH1EHSOBE001.bigfish.com (10.43.70.51) with Microsoft SMTP Server id 14.1.225.22; Mon, 22 Aug 2011 11:44:15 +0000 Received: from mail104-ch1 (localhost.localdomain [127.0.0.1]) by mail104-ch1-R.bigfish.com (Postfix) with ESMTP id 1149D1410201; Mon, 22 Aug 2011 11:44:15 +0000 (UTC) X-SpamScore: 0 X-BigFish: VPS0(zzzz1202hzz8275bhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:137.71.25.57; KIP:(null); UIP:(null); IPVD:NLI; H:nwd2mta2.analog.com; RD:nwd2mail11.analog.com; EFVD:NLI Received: from mail104-ch1 (localhost.localdomain [127.0.0.1]) by mail104-ch1 (MessageSwitch) id 1314013454808606_4546; Mon, 22 Aug 2011 11:44:14 +0000 (UTC) Received: from CH1EHSMHS027.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.247]) by mail104-ch1.bigfish.com (Postfix) with ESMTP id BF9D066804B; Mon, 22 Aug 2011 11:44:14 +0000 (UTC) Received: from nwd2mta2.analog.com (137.71.25.57) by CH1EHSMHS027.bigfish.com (10.43.70.27) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 22 Aug 2011 11:44:13 +0000 Received: from NWD2HUBCAS2.ad.analog.com (nwd2hubcas2.ad.analog.com [10.64.73.30]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id p7MBuQJV007609 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 22 Aug 2011 07:56:26 -0400 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS2.ad.analog.com (10.64.73.30) with Microsoft SMTP Server id 8.3.83.0; Mon, 22 Aug 2011 07:43:57 -0400 Received: from localhost.localdomain ([10.44.2.88]) by zeus.spd.analog.com (8.14.1/8.14.1) with ESMTP id p7MBiAZh025603; Mon, 22 Aug 2011 07:44:10 -0400 (EDT) From: To: CC: , , , Michael Hennerich Subject: [PATCH] Input: ad714x - restore struct ad714x_chip status interrupt result placement Date: Mon, 22 Aug 2011 13:44:15 +0200 Message-ID: <1314013455-13463-1-git-send-email-michael.hennerich@analog.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 X-OriginatorOrg: analog.com 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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 22 Aug 2011 11:44:17 +0000 (UTC) From: Michael Hennerich This patch needs to go on top of Dmitry's reworked patch set. Since we read status interrupt registers in row, we also need to place the storage members sequentially. This part got dropped from the original patch set. Signed-off-by: Michael Hennerich --- drivers/input/misc/ad714x.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/input/misc/ad714x.h b/drivers/input/misc/ad714x.h index 6edc080..3c85455 100644 --- a/drivers/input/misc/ad714x.h +++ b/drivers/input/misc/ad714x.h @@ -22,8 +22,8 @@ typedef int (*ad714x_read_t)(struct ad714x_chip *, unsigned short, unsigned shor typedef int (*ad714x_write_t)(struct ad714x_chip *, unsigned short, unsigned short); struct ad714x_chip { - unsigned short h_state; unsigned short l_state; + unsigned short h_state; unsigned short c_state; unsigned short adc_reg[STAGE_NUM]; unsigned short amb_reg[STAGE_NUM];