From patchwork Mon Nov 18 20:42:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 3199061 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 BB4749F26C for ; Mon, 18 Nov 2013 20:43:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7DCDA2034A for ; Mon, 18 Nov 2013 20:43:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3CD1E2026D for ; Mon, 18 Nov 2013 20:43:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751064Ab3KRUnT (ORCPT ); Mon, 18 Nov 2013 15:43:19 -0500 Received: from narfation.org ([79.140.41.39]:42171 "EHLO v3-1039.vlinux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416Ab3KRUnT (ORCPT ); Mon, 18 Nov 2013 15:43:19 -0500 Received: from sven-desktop.home.narfation.org (drsd-4dbda99b.pool.mediaWays.net [77.189.169.155]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id D87901100BD; Mon, 18 Nov 2013 21:43:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=20121; t=1384807398; bh=k1Ahh4Ps8dVX7HCQsjqeA/LyAXDo8YeSssH0t8TZNqU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I3Mg06ji+GXZ4U/Wx6o9l4SJHsuJKUGFwlFUw7JR5amU6OcdQ4VgXHDIRM43eCfO2 446lCtwvmKN4V2Uy63cgBVh65hXs0OINbn/ppCyhnl2oydUp/ei8Te5kXpVUaC55Wn RldoYmuxavUbteuuJln1Gdt2xALQ6YZqHKFnPd3I= From: Sven Eckelmann To: linux-input@vger.kernel.org Cc: Jiri Kosina , Colin Leitner , Sven Eckelmann Subject: [PATCHv3 2/5] HID: sony: Use BIT(x) macro to define quirks constants Date: Mon, 18 Nov 2013 21:42:33 +0100 Message-Id: <1384807356-15561-3-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1384807356-15561-1-git-send-email-sven@narfation.org> References: <1384807356-15561-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,