From patchwork Thu Dec 20 13:51:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 1899811 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id CA06D3FC64 for ; Thu, 20 Dec 2012 13:51:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752010Ab2LTNvb (ORCPT ); Thu, 20 Dec 2012 08:51:31 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:50896 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714Ab2LTNv3 (ORCPT ); Thu, 20 Dec 2012 08:51:29 -0500 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TlgX1-0003gt-Ng; Thu, 20 Dec 2012 14:51:27 +0100 Received: from wsa by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1TlgX0-0004tQ-0W; Thu, 20 Dec 2012 14:51:26 +0100 From: Wolfram Sang To: linux-input@vger.kernel.org Cc: Michael Hennerich , Dmitry Torokhov , device-drivers-devel@blackfin.uclinux.org, Wolfram Sang Subject: [PATCH 1/4] input: adxl34x: consistently use read/write encapsulation Date: Thu, 20 Dec 2012 14:51:08 +0100 Message-Id: <1356011471-18757-2-git-send-email-w.sang@pengutronix.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1356011471-18757-1-git-send-email-w.sang@pengutronix.de> References: <1356011471-18757-1-git-send-email-w.sang@pengutronix.de> X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: w.sang@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-input@vger.kernel.org Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Don't open code the AC_READ and AC_WRITE macros. Signed-off-by: Wolfram Sang --- drivers/input/misc/adxl34x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c index 1cf72fe..b18d3e2 100644 --- a/drivers/input/misc/adxl34x.c +++ b/drivers/input/misc/adxl34x.c @@ -732,7 +732,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq, mutex_init(&ac->mutex); input_dev->name = "ADXL34x accelerometer"; - revid = ac->bops->read(dev, DEVID); + revid = AC_READ(ac, DEVID); switch (revid) { case ID_ADXL345: @@ -809,7 +809,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq, if (FIFO_MODE(pdata->fifo_mode) == FIFO_BYPASS) ac->fifo_delay = false; - ac->bops->write(dev, POWER_CTL, 0); + AC_WRITE(ac, POWER_CTL, 0); err = request_threaded_irq(ac->irq, NULL, adxl34x_irq, IRQF_TRIGGER_HIGH | IRQF_ONESHOT,