aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index bf7e307503cc..8edbd30cf795 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -321,9 +321,7 @@ static int hidinput_setkeycode(struct input_dev *dev, int scancode,
321 321
322 clear_bit(old_keycode, dev->keybit); 322 clear_bit(old_keycode, dev->keybit);
323 set_bit(usage->code, dev->keybit); 323 set_bit(usage->code, dev->keybit);
324#ifdef CONFIG_HID_DEBUG 324 dbg_hid(KERN_DEBUG "Assigned keycode %d to HID usage code %x\n", keycode, scancode);
325 printk (KERN_DEBUG "Assigned keycode %d to HID usage code %x\n", keycode, scancode);
326#endif
327 /* Set the keybit for the old keycode if the old keycode is used 325 /* Set the keybit for the old keycode if the old keycode is used
328 * by another key */ 326 * by another key */
329 if (hidinput_find_key (hid, 0, old_keycode)) 327 if (hidinput_find_key (hid, 0, old_keycode))
@@ -346,11 +344,9 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
346 344
347 field->hidinput = hidinput; 345 field->hidinput = hidinput;
348 346
349#ifdef CONFIG_HID_DEBUG 347 dbg_hid("Mapping: ");
350 printk(KERN_DEBUG "Mapping: ");
351 hid_resolv_usage(usage->hid); 348 hid_resolv_usage(usage->hid);
352 printk(" ---> "); 349 dbg_hid_line(" ---> ");
353#endif
354 350
355 if (field->flags & HID_MAIN_ITEM_CONSTANT) 351 if (field->flags & HID_MAIN_ITEM_CONSTANT)
356 goto ignore; 352 goto ignore;
@@ -893,15 +889,13 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
893 } 889 }
894 890
895 hid_resolv_event(usage->type, usage->code); 891 hid_resolv_event(usage->type, usage->code);
896#ifdef CONFIG_HID_DEBUG 892
897 printk("\n"); 893 dbg_hid_line("\n");
898#endif 894
899 return; 895 return;
900 896
901ignore: 897ignore:
902#ifdef CONFIG_HID_DEBUG 898 dbg_hid_line("IGNORED\n");
903 printk("IGNORED\n");
904#endif
905 return; 899 return;
906} 900}
907 901
@@ -970,12 +964,12 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
970 } 964 }
971 965
972 if (usage->hid == (HID_UP_PID | 0x83UL)) { /* Simultaneous Effects Max */ 966 if (usage->hid == (HID_UP_PID | 0x83UL)) { /* Simultaneous Effects Max */
973 dbg("Maximum Effects - %d",value); 967 dbg_hid("Maximum Effects - %d\n",value);
974 return; 968 return;
975 } 969 }
976 970
977 if (usage->hid == (HID_UP_PID | 0x7fUL)) { 971 if (usage->hid == (HID_UP_PID | 0x7fUL)) {
978 dbg("PID Pool Report\n"); 972 dbg_hid("PID Pool Report\n");
979 return; 973 return;
980 } 974 }
981 975
@@ -1083,7 +1077,7 @@ int hidinput_connect(struct hid_device *hid)
1083 if (!hidinput || !input_dev) { 1077 if (!hidinput || !input_dev) {
1084 kfree(hidinput); 1078 kfree(hidinput);
1085 input_free_device(input_dev); 1079 input_free_device(input_dev);
1086 err("Out of memory during hid input probe"); 1080 err_hid("Out of memory during hid input probe");
1087 return -1; 1081 return -1;
1088 } 1082 }
1089 1083