Skip to content

Commit d73a4bf

Browse files
junan76Jiri Kosina
authored andcommitted
HID: usbkbd: Fix the bit shift number for LED_KANA
Since "LED_KANA" was defined as "0x04", the shift number should be "4". Signed-off-by: junan <junan76@163.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 27c0278 commit d73a4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/usbhid/usbkbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int usb_kbd_event(struct input_dev *dev, unsigned int type,
160160
return -1;
161161

162162
spin_lock_irqsave(&kbd->leds_lock, flags);
163-
kbd->newleds = (!!test_bit(LED_KANA, dev->led) << 3) | (!!test_bit(LED_COMPOSE, dev->led) << 3) |
163+
kbd->newleds = (!!test_bit(LED_KANA, dev->led) << 4) | (!!test_bit(LED_COMPOSE, dev->led) << 3) |
164164
(!!test_bit(LED_SCROLLL, dev->led) << 2) | (!!test_bit(LED_CAPSL, dev->led) << 1) |
165165
(!!test_bit(LED_NUML, dev->led));
166166

0 commit comments

Comments
 (0)