From patchwork Thu Dec 20 13:51:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 1899821 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 E7E2D40076 for ; Thu, 20 Dec 2012 13:51:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752618Ab2LTNvc (ORCPT ); Thu, 20 Dec 2012 08:51:32 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:50900 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715Ab2LTNv3 (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-0003gw-Nw; 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-0004tf-24; 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 4/4] input: adxl34x: default platform_data should not use defines from driver Date: Thu, 20 Dec 2012 14:51:11 +0100 Message-Id: <1356011471-18757-5-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 Only use the defines which are defined in the platform_data include file. Signed-off-by: Wolfram Sang --- drivers/input/misc/adxl34x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c index 6be8687..0735de3 100644 --- a/drivers/input/misc/adxl34x.c +++ b/drivers/input/misc/adxl34x.c @@ -232,7 +232,7 @@ static const struct adxl34x_platform_data adxl34x_default_init = { .ev_code_tap = {BTN_TOUCH, BTN_TOUCH, BTN_TOUCH}, /* EV_KEY {x,y,z} */ .power_mode = ADXL_AUTO_SLEEP | ADXL_LINK, - .fifo_mode = FIFO_STREAM, + .fifo_mode = ADXL_FIFO_STREAM, .watermark = 0, };