diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-04-20 07:21:45 -0400 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-04-23 11:59:44 -0400 |
commit | a17dd1f2da43ecc1f30a41c21f08265f3c617200 (patch) | |
tree | c479d759b3e6ffbdc25a9ccbae6a227f81abb0ea /drivers/hid/hid-logitech-dj.c | |
parent | 7bb56a5f3809ef47ac4911d561c86725514c4354 (diff) |
HID: logitech-dj: use BIT() macro for RF Report types
Use BIT() macro for RF Report types.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'drivers/hid/hid-logitech-dj.c')
-rw-r--r-- | drivers/hid/hid-logitech-dj.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index 6408ef13e909..b1ae2d9c5ddc 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c | |||
@@ -94,12 +94,12 @@ | |||
94 | #define REPORT_TYPE_LEDS 0x0E | 94 | #define REPORT_TYPE_LEDS 0x0E |
95 | 95 | ||
96 | /* RF Report types bitfield */ | 96 | /* RF Report types bitfield */ |
97 | #define STD_KEYBOARD 0x00000002 | 97 | #define STD_KEYBOARD BIT(1) |
98 | #define STD_MOUSE 0x00000004 | 98 | #define STD_MOUSE BIT(2) |
99 | #define MULTIMEDIA 0x00000008 | 99 | #define MULTIMEDIA BIT(3) |
100 | #define POWER_KEYS 0x00000010 | 100 | #define POWER_KEYS BIT(4) |
101 | #define MEDIA_CENTER 0x00000100 | 101 | #define MEDIA_CENTER BIT(8) |
102 | #define KBD_LEDS 0x00004000 | 102 | #define KBD_LEDS BIT(14) |
103 | 103 | ||
104 | struct dj_report { | 104 | struct dj_report { |
105 | u8 report_id; | 105 | u8 report_id; |