aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/hid-lgff.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-02-10 01:26:32 -0500
committerDmitry Torokhov <dtor@insightbb.com>2007-02-10 01:26:32 -0500
commitb22364c8eec89e6b0c081a237f3b6348df87796f (patch)
tree233a923281fb640106465d076997ff511efb6edf /drivers/usb/input/hid-lgff.c
parent2c8dc071517ec2843869024dc82be2e246f41064 (diff)
parent66efc5a7e3061c3597ac43a8bb1026488d57e66b (diff)
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/usb/input/hid-lgff.c')
-rw-r--r--drivers/usb/input/hid-lgff.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/input/hid-lgff.c b/drivers/usb/input/hid-lgff.c
index 52be7a8f55aa..4df0968f852e 100644
--- a/drivers/usb/input/hid-lgff.c
+++ b/drivers/usb/input/hid-lgff.c
@@ -29,9 +29,10 @@
29 29
30#include <linux/input.h> 30#include <linux/input.h>
31#include <linux/usb.h> 31#include <linux/usb.h>
32#include "hid.h" 32#include <linux/hid.h>
33#include "usbhid.h"
33 34
34struct device_type { 35struct dev_type {
35 u16 idVendor; 36 u16 idVendor;
36 u16 idProduct; 37 u16 idProduct;
37 const signed short *ff; 38 const signed short *ff;
@@ -47,7 +48,7 @@ static const signed short ff_joystick[] = {
47 -1 48 -1
48}; 49};
49 50
50static const struct device_type devices[] = { 51static const struct dev_type devices[] = {
51 { 0x046d, 0xc211, ff_rumble }, 52 { 0x046d, 0xc211, ff_rumble },
52 { 0x046d, 0xc219, ff_rumble }, 53 { 0x046d, 0xc219, ff_rumble },
53 { 0x046d, 0xc283, ff_joystick }, 54 { 0x046d, 0xc283, ff_joystick },
@@ -76,7 +77,7 @@ static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *ef
76 report->field[0]->value[2] = x; 77 report->field[0]->value[2] = x;
77 report->field[0]->value[3] = y; 78 report->field[0]->value[3] = y;
78 dbg("(x, y)=(%04x, %04x)", x, y); 79 dbg("(x, y)=(%04x, %04x)", x, y);
79 hid_submit_report(hid, report, USB_DIR_OUT); 80 usbhid_submit_report(hid, report, USB_DIR_OUT);
80 break; 81 break;
81 82
82 case FF_RUMBLE: 83 case FF_RUMBLE:
@@ -91,7 +92,7 @@ static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *ef
91 report->field[0]->value[2] = left; 92 report->field[0]->value[2] = left;
92 report->field[0]->value[3] = right; 93 report->field[0]->value[3] = right;
93 dbg("(left, right)=(%04x, %04x)", left, right); 94 dbg("(left, right)=(%04x, %04x)", left, right);
94 hid_submit_report(hid, report, USB_DIR_OUT); 95 usbhid_submit_report(hid, report, USB_DIR_OUT);
95 break; 96 break;
96 } 97 }
97 return 0; 98 return 0;