Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77645
b: refs/heads/master
c: 3ba5619
h: refs/heads/master
i:
  77643: 23c8620
v: v3
  • Loading branch information
Li Zefan authored and Jiri Kosina committed Jan 28, 2008
1 parent 4895f14 commit 150ce7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c80e5ffac0579499ca28444155118ffcdd9b8d7e
refs/heads/master: 3ba5619f06300cd0944150901ed20de87483ad8c
7 changes: 4 additions & 3 deletions trunk/drivers/hid/usbhid/hid-tmff.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ static int hid_tmff_play(struct input_dev *dev, void *data, struct ff_effect *ef
int hid_tmff_init(struct hid_device *hid)
{
struct tmff_device *tmff;
struct list_head *pos;
struct hid_report *report;
struct list_head *report_list;
struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
struct input_dev *input_dev = hidinput->input;
const signed short *ff_bits = ff_joystick;
Expand All @@ -149,8 +150,8 @@ int hid_tmff_init(struct hid_device *hid)
return -ENOMEM;

/* Find the report to use */
list_for_each(pos, &hid->report_enum[HID_OUTPUT_REPORT].report_list) {
struct hid_report *report = (struct hid_report *)pos;
report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
list_for_each_entry(report, report_list, list) {
int fieldnum;

for (fieldnum = 0; fieldnum < report->maxfield; ++fieldnum) {
Expand Down

0 comments on commit 150ce7a

Please sign in to comment.