Commit 77b29662 authored by Jiri Kosina's avatar Jiri Kosina

HID: fix whitespace damage

Fixes some trivial whitespace damage in hid-input.c
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent b27c9590
...@@ -299,7 +299,7 @@ static int hidinput_getkeycode(struct input_dev *dev, int scancode, ...@@ -299,7 +299,7 @@ static int hidinput_getkeycode(struct input_dev *dev, int scancode,
{ {
struct hid_device *hid = dev->private; struct hid_device *hid = dev->private;
struct hid_usage *usage; struct hid_usage *usage;
usage = hidinput_find_key(hid, scancode, 0); usage = hidinput_find_key(hid, scancode, 0);
if (usage) { if (usage) {
*keycode = usage->code; *keycode = usage->code;
...@@ -314,15 +314,15 @@ static int hidinput_setkeycode(struct input_dev *dev, int scancode, ...@@ -314,15 +314,15 @@ static int hidinput_setkeycode(struct input_dev *dev, int scancode,
struct hid_device *hid = dev->private; struct hid_device *hid = dev->private;
struct hid_usage *usage; struct hid_usage *usage;
int old_keycode; int old_keycode;
if (keycode < 0 || keycode > KEY_MAX) if (keycode < 0 || keycode > KEY_MAX)
return -EINVAL; return -EINVAL;
usage = hidinput_find_key(hid, scancode, 0); usage = hidinput_find_key(hid, scancode, 0);
if (usage) { if (usage) {
old_keycode = usage->code; old_keycode = usage->code;
usage->code = keycode; usage->code = keycode;
clear_bit(old_keycode, dev->keybit); clear_bit(old_keycode, dev->keybit);
set_bit(usage->code, dev->keybit); set_bit(usage->code, dev->keybit);
dbg_hid(KERN_DEBUG "Assigned keycode %d to HID usage code %x\n", keycode, scancode); dbg_hid(KERN_DEBUG "Assigned keycode %d to HID usage code %x\n", keycode, scancode);
...@@ -330,10 +330,10 @@ static int hidinput_setkeycode(struct input_dev *dev, int scancode, ...@@ -330,10 +330,10 @@ static int hidinput_setkeycode(struct input_dev *dev, int scancode,
* by another key */ * by another key */
if (hidinput_find_key (hid, 0, old_keycode)) if (hidinput_find_key (hid, 0, old_keycode))
set_bit(old_keycode, dev->keybit); set_bit(old_keycode, dev->keybit);
return 0; return 0;
} }
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment