From patchwork Tue Nov 19 19:26:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 3203771 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6DFC99F243 for ; Tue, 19 Nov 2013 19:26:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D54520529 for ; Tue, 19 Nov 2013 19:26:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1996120523 for ; Tue, 19 Nov 2013 19:26:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752092Ab3KST0n (ORCPT ); Tue, 19 Nov 2013 14:26:43 -0500 Received: from narfation.org ([79.140.41.39]:42237 "EHLO v3-1039.vlinux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751967Ab3KST0n (ORCPT ); Tue, 19 Nov 2013 14:26:43 -0500 Received: from sven-desktop.home.narfation.org (drsd-4d05afb0.pool.mediaWays.net [77.5.175.176]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 307311100BD; Tue, 19 Nov 2013 20:26:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=20121; t=1384889202; bh=k1Ahh4Ps8dVX7HCQsjqeA/LyAXDo8YeSssH0t8TZNqU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RevXDpOeMTAZjma3iHZP8h8EaFM5VuZopMhArHh7KTHzNGruOpTx0ES0dZQlvQxnZ kiBtBtRJPYtHtZahIkHbjogBPoSUJ3Z8CRuvdbYTgYH/Afmy5MrbHeLbVx6NMa9Azj ekwz2tEVvGUvPtPJlQPyNNLS3NRrwCNajhnoPlns= From: Sven Eckelmann To: linux-input@vger.kernel.org Cc: Jiri Kosina , Sven Eckelmann Subject: [PATCHv4 2/5] HID: sony: Use BIT(x) macro to define quirks constants Date: Tue, 19 Nov 2013 20:26:29 +0100 Message-Id: <1384889192-18488-3-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1384889192-18488-1-git-send-email-sven@narfation.org> References: <1384889192-18488-1-git-send-email-sven@narfation.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Sven Eckelmann --- drivers/hid/hid-sony.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 28b847a..0677292 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -33,11 +33,11 @@ #include "hid-ids.h" -#define VAIO_RDESC_CONSTANT (1 << 0) -#define SIXAXIS_CONTROLLER_USB (1 << 1) -#define SIXAXIS_CONTROLLER_BT (1 << 2) -#define BUZZ_CONTROLLER (1 << 3) -#define PS3REMOTE (1 << 4) +#define VAIO_RDESC_CONSTANT BIT(0) +#define SIXAXIS_CONTROLLER_USB BIT(1) +#define SIXAXIS_CONTROLLER_BT BIT(2) +#define BUZZ_CONTROLLER BIT(3) +#define PS3REMOTE BIT(4) static const u8 sixaxis_rdesc_fixup[] = { 0x95, 0x13, 0x09, 0x01, 0x81, 0x02, 0x95, 0x0C,