Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'for-7.1/pl' into for-linus

+4 -8
+4 -8
drivers/hid/hid-pl.c
··· 24 24 */ 25 25 26 26 27 - /* #define DEBUG */ 28 - 29 - #define debug(format, arg...) pr_debug("hid-plff: " format "\n" , ## arg) 30 - 31 27 #include <linux/input.h> 32 28 #include <linux/slab.h> 33 29 #include <linux/module.h> ··· 49 53 50 54 left = effect->u.rumble.strong_magnitude; 51 55 right = effect->u.rumble.weak_magnitude; 52 - debug("called with 0x%04x 0x%04x", left, right); 56 + hid_dbg(dev, "called with 0x%04x 0x%04x", left, right); 53 57 54 58 left = left * plff->maxval / 0xffff; 55 59 right = right * plff->maxval / 0xffff; 56 60 57 61 *plff->strong = left; 58 62 *plff->weak = right; 59 - debug("running with 0x%02x 0x%02x", left, right); 63 + hid_dbg(dev, "running with 0x%02x 0x%02x", left, right); 60 64 hid_hw_request(hid, plff->report, HID_REQ_SET_REPORT); 61 65 62 66 return 0; ··· 115 119 report->field[0]->value[1] = 0x00; 116 120 strong = &report->field[0]->value[2]; 117 121 weak = &report->field[0]->value[3]; 118 - debug("detected single-field device"); 122 + hid_dbg(hid, "detected single-field device"); 119 123 } else if (report->field[0]->maxusage == 1 && 120 124 report->field[0]->usage[0].hid == 121 125 (HID_UP_LED | 0x43) && ··· 130 134 weak = &report->field[3]->value[0]; 131 135 if (hid->vendor == USB_VENDOR_ID_JESS2) 132 136 maxval = 0xff; 133 - debug("detected 4-field device"); 137 + hid_dbg(hid, "detected 4-field device"); 134 138 } else { 135 139 hid_err(hid, "not enough fields or values\n"); 136 140 return -ENODEV;