Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3338948imm; Fri, 20 Jul 2018 14:53:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeMu7wqq+RQNQBdBaIzcd85tCfgVmxl5v2wq6bcvh18e/e3jNOKQ38Ar6DBBzV7RvpSF+Sb X-Received: by 2002:a63:cd02:: with SMTP id i2-v6mr3460200pgg.93.1532123587454; Fri, 20 Jul 2018 14:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532123587; cv=none; d=google.com; s=arc-20160816; b=ORJISiXxZf0RHZN30puJizyGYgAA8vniZLQoNRQ5o215QO0Z3pkwy3y/BxFXP23ENG NL9EUQ6MwoViobmR9xoS9UM6rrwJ45QCMLJoSFFu+rdRx+Iy51yp6nCGHiSZIMTAsyoJ s4il4NhClBrM9yw/uInkvmIu3taSsTPxZdiwiey1Wl3ie/hVC5woX2eWDgV9qufn9Itx w6tshOHDhmwtkJNqOdZRDfSZM8WUs1TdQrWLh2Ho2iDjDebF6q+kF2Jp54DU5I4l2Dsk kiHY6rlIYl0ACKpeqZCcyWEIGxG1+oXOHbBxv4JbNZjY3orRmmBJ1gZe3Q6IRj0GVO10 UkrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=M5wHmSRK053lzgjbQqeLLXQhngOEjPfN5UplpPZ2i+o=; b=NNlnVyOJy/RTcMK2b44Bt5ZHfAiVLTeS1UEZReEA90JATZb/G5tdP3R1Tw3sP1vZy4 iki82AeNAXn8Kxb1ryfIBacopIdjrWOpIalf2icSetsqkzvCXV56nX8kO1p0JTd9Aqdt w2VGptN72B2U32dVJIqh0GbOiJhq4/PS5PflP6I2tBtKeK0YbXE3jdE8/0A4XJ75/u/W 36hP142+AcrInGHNUm79UUS4qNCrf2bTBmTDS3hUwGjavG3ef5P0+N+nQFLVkg1wwjoK ZZT3JybNhb2d4csgGHYrmuPR5AbY9xSBr0kRRoZRYWt8KcZQhhmlaHBQ5Apq1i+aRTiA CpvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si2515850pll.142.2018.07.20.14.52.52; Fri, 20 Jul 2018 14:53:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728834AbeGTWmG (ORCPT + 99 others); Fri, 20 Jul 2018 18:42:06 -0400 Received: from avasout06.plus.net ([212.159.14.18]:48149 "EHLO avasout06.plus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728616AbeGTWmG (ORCPT ); Fri, 20 Jul 2018 18:42:06 -0400 Received: from hairyalien ([80.229.148.18]) by smtp with SMTP id gdJZfIgNaWLW2gdJaf5XED; Fri, 20 Jul 2018 22:51:56 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=fJUXI6Se c=1 sm=1 tr=0 a=o7Djd4SkmPXITDn8qH+ssQ==:117 a=o7Djd4SkmPXITDn8qH+ssQ==:17 a=R9QF1RCXAYgA:10 a=V0UhwjhiAAAA:8 a=h_4YBhKAYfZ9fmwmONsA:9 a=gDZd9UoHjypZimEJ:21 a=gnZDA-50njveXPI5:21 a=_UVLBGXn8Au_dgoMdIS7:22 Received: by hairyalien (sSMTP sendmail emulation); Fri, 20 Jul 2018 22:51:53 +0100 From: Nick Dyer To: Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Chris Healy , Nikita Yushchenko , Lucas Stach , Nick Dyer Subject: [PATCH v1 02/10] Input: atmel_mxt_ts - use BIT() macro everywhere Date: Fri, 20 Jul 2018 22:51:14 +0100 Message-Id: <20180720215122.23558-2-nick@shmanahar.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180720215122.23558-1-nick@shmanahar.org> References: <20180720215122.23558-1-nick@shmanahar.org> X-CMAE-Envelope: MS4wfBpuZjpeo88Un45Dv84DyKvnqi26pi7D/xx13cw36s3Jz4ycIfGE5FJlF+JmKNQTCZ86UYRvp9oHdlyLhQVv4hRq9iA2yU52m1gYBWliLLP6AMNoEAEQ s7JM72Xo5kh35looapeqSvJImC8i6b8TtHUBuFzCK8YVnNGWeqjQ2uHF Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 48c5ccab00a0..9555947a2d46 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -88,12 +88,12 @@ #define MXT_COMMAND_DIAGNOSTIC 5 /* Define for T6 status byte */ -#define MXT_T6_STATUS_RESET (1 << 7) -#define MXT_T6_STATUS_OFL (1 << 6) -#define MXT_T6_STATUS_SIGERR (1 << 5) -#define MXT_T6_STATUS_CAL (1 << 4) -#define MXT_T6_STATUS_CFGERR (1 << 3) -#define MXT_T6_STATUS_COMSERR (1 << 2) +#define MXT_T6_STATUS_RESET BIT(7) +#define MXT_T6_STATUS_OFL BIT(6) +#define MXT_T6_STATUS_SIGERR BIT(5) +#define MXT_T6_STATUS_CAL BIT(4) +#define MXT_T6_STATUS_CFGERR BIT(3) +#define MXT_T6_STATUS_COMSERR BIT(2) /* MXT_GEN_POWER_T7 field */ struct t7_config { @@ -112,14 +112,14 @@ struct t7_config { #define MXT_T9_RANGE 18 /* MXT_TOUCH_MULTI_T9 status */ -#define MXT_T9_UNGRIP (1 << 0) -#define MXT_T9_SUPPRESS (1 << 1) -#define MXT_T9_AMP (1 << 2) -#define MXT_T9_VECTOR (1 << 3) -#define MXT_T9_MOVE (1 << 4) -#define MXT_T9_RELEASE (1 << 5) -#define MXT_T9_PRESS (1 << 6) -#define MXT_T9_DETECT (1 << 7) +#define MXT_T9_UNGRIP BIT(0) +#define MXT_T9_SUPPRESS BIT(1) +#define MXT_T9_AMP BIT(2) +#define MXT_T9_VECTOR BIT(3) +#define MXT_T9_MOVE BIT(4) +#define MXT_T9_RELEASE BIT(5) +#define MXT_T9_PRESS BIT(6) +#define MXT_T9_DETECT BIT(7) struct t9_range { __le16 x; @@ -127,9 +127,9 @@ struct t9_range { } __packed; /* MXT_TOUCH_MULTI_T9 orient */ -#define MXT_T9_ORIENT_SWITCH (1 << 0) -#define MXT_T9_ORIENT_INVERTX (1 << 1) -#define MXT_T9_ORIENT_INVERTY (1 << 2) +#define MXT_T9_ORIENT_SWITCH BIT(0) +#define MXT_T9_ORIENT_INVERTX BIT(1) +#define MXT_T9_ORIENT_INVERTY BIT(2) /* MXT_SPT_COMMSCONFIG_T18 */ #define MXT_COMMS_CTRL 0 @@ -214,7 +214,7 @@ enum t100_type { #define MXT_FRAME_CRC_PASS 0x04 #define MXT_APP_CRC_FAIL 0x40 /* valid 7 8 bit only */ #define MXT_BOOT_STATUS_MASK 0x3f -#define MXT_BOOT_EXTENDED_ID (1 << 5) +#define MXT_BOOT_EXTENDED_ID BIT(5) #define MXT_BOOT_ID_MASK 0x1f /* Touchscreen absolute values */ -- 2.17.1