All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: linux-input@vger.kernel.org
Cc: Jiri Kosina <jkosina@suse.cz>, Sven Eckelmann <sven@narfation.org>
Subject: [PATCHv4 2/5] HID: sony: Use BIT(x) macro to define quirks constants
Date: Tue, 19 Nov 2013 20:26:29 +0100	[thread overview]
Message-ID: <1384889192-18488-3-git-send-email-sven@narfation.org> (raw)
In-Reply-To: <1384889192-18488-1-git-send-email-sven@narfation.org>

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 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,
-- 
1.8.4.3


  parent reply	other threads:[~2013-11-19 19:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 19:26 [PATCHv4 0/5] HID: sony: Dualshock3 USB and LED support Sven Eckelmann
2013-11-19 19:26 ` [PATCHv4 1/5] HID: sony: Rename rumble_* functions/variables to state_* Sven Eckelmann
2013-11-19 19:26 ` Sven Eckelmann [this message]
2013-11-19 19:26 ` [PATCHv4 3/5] HID: sony: Rename buzz_* functions to sony_led_* Sven Eckelmann
2013-11-19 19:26 ` [PATCHv4 4/5] HID: sony: Move LED data to the main structure Sven Eckelmann
2013-11-19 19:26 ` [PATCHv4 5/5] HID: sony: Add LED support for Sixaxis/Dualshock3 USB Sven Eckelmann
2013-11-20  9:02 ` [PATCHv4 0/5] HID: sony: Dualshock3 USB and LED support Jiri Kosina
2013-11-23  2:35   ` simon
2013-11-23  9:38     ` Sven Eckelmann
2013-11-26  9:44     ` Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384889192-18488-3-git-send-email-sven@narfation.org \
    --to=sven@narfation.org \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.