diff options
Diffstat (limited to 'drivers/hid/usbhid/hid-lgff.c')
| -rw-r--r-- | drivers/hid/usbhid/hid-lgff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hid/usbhid/hid-lgff.c b/drivers/hid/usbhid/hid-lgff.c index c5cd4107d6af..4b7ab6a46d93 100644 --- a/drivers/hid/usbhid/hid-lgff.c +++ b/drivers/hid/usbhid/hid-lgff.c | |||
| @@ -78,7 +78,7 @@ static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *ef | |||
| 78 | report->field[0]->value[1] = 0x08; | 78 | report->field[0]->value[1] = 0x08; |
| 79 | report->field[0]->value[2] = x; | 79 | report->field[0]->value[2] = x; |
| 80 | report->field[0]->value[3] = y; | 80 | report->field[0]->value[3] = y; |
| 81 | dbg("(x, y)=(%04x, %04x)", x, y); | 81 | dbg_hid("(x, y)=(%04x, %04x)\n", x, y); |
| 82 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 82 | usbhid_submit_report(hid, report, USB_DIR_OUT); |
| 83 | break; | 83 | break; |
| 84 | 84 | ||
| @@ -93,7 +93,7 @@ static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *ef | |||
| 93 | report->field[0]->value[1] = 0x00; | 93 | report->field[0]->value[1] = 0x00; |
| 94 | report->field[0]->value[2] = left; | 94 | report->field[0]->value[2] = left; |
| 95 | report->field[0]->value[3] = right; | 95 | report->field[0]->value[3] = right; |
| 96 | dbg("(left, right)=(%04x, %04x)", left, right); | 96 | dbg_hid("(left, right)=(%04x, %04x)\n", left, right); |
| 97 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 97 | usbhid_submit_report(hid, report, USB_DIR_OUT); |
| 98 | break; | 98 | break; |
| 99 | } | 99 | } |
| @@ -113,20 +113,20 @@ int hid_lgff_init(struct hid_device* hid) | |||
| 113 | 113 | ||
| 114 | /* Find the report to use */ | 114 | /* Find the report to use */ |
| 115 | if (list_empty(report_list)) { | 115 | if (list_empty(report_list)) { |
| 116 | err("No output report found"); | 116 | err_hid("No output report found"); |
| 117 | return -1; | 117 | return -1; |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | /* Check that the report looks ok */ | 120 | /* Check that the report looks ok */ |
| 121 | report = list_entry(report_list->next, struct hid_report, list); | 121 | report = list_entry(report_list->next, struct hid_report, list); |
| 122 | if (!report) { | 122 | if (!report) { |
| 123 | err("NULL output report"); | 123 | err_hid("NULL output report"); |
| 124 | return -1; | 124 | return -1; |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | field = report->field[0]; | 127 | field = report->field[0]; |
| 128 | if (!field) { | 128 | if (!field) { |
| 129 | err("NULL field"); | 129 | err_hid("NULL field"); |
| 130 | return -1; | 130 | return -1; |
| 131 | } | 131 | } |
| 132 | 132 | ||
