Skip to content

Commit 7f52ece

Browse files
JoseExpositoJiri Kosina
authored andcommitted
HID: apple: Use BIT to define quirks
Replace the existing quirk hardcoded values with the BIT macro in order to simplify including new quirks. Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent a5fe786 commit 7f52ece

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

drivers/hid/hid-apple.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
#include "hid-ids.h"
2323

24-
#define APPLE_RDESC_JIS 0x0001
25-
#define APPLE_IGNORE_MOUSE 0x0002
26-
#define APPLE_HAS_FN 0x0004
27-
/* 0x0008 reserved, was: APPLE_HIDDEV */
28-
#define APPLE_ISO_TILDE_QUIRK 0x0010
29-
#define APPLE_MIGHTYMOUSE 0x0020
30-
#define APPLE_INVERT_HWHEEL 0x0040
31-
/* 0x0080 reserved, was: APPLE_IGNORE_HIDINPUT */
32-
#define APPLE_NUMLOCK_EMULATION 0x0100
24+
#define APPLE_RDESC_JIS BIT(0)
25+
#define APPLE_IGNORE_MOUSE BIT(1)
26+
#define APPLE_HAS_FN BIT(2)
27+
/* BIT(3) reserved, was: APPLE_HIDDEV */
28+
#define APPLE_ISO_TILDE_QUIRK BIT(4)
29+
#define APPLE_MIGHTYMOUSE BIT(5)
30+
#define APPLE_INVERT_HWHEEL BIT(6)
31+
/* BIT(7) reserved, was: APPLE_IGNORE_HIDINPUT */
32+
#define APPLE_NUMLOCK_EMULATION BIT(8)
3333

3434
#define APPLE_FLAG_FKEY 0x01
3535

0 commit comments

Comments
 (0)