diff options
-rw-r--r-- | drivers/input/joystick/a3d.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/adi.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/analog.c | 1 | ||||
-rw-r--r-- | drivers/input/joystick/cobra.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/gf2k.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/grip.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/grip_mp.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/guillemot.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/iforce/iforce-main.c | 4 | ||||
-rw-r--r-- | drivers/input/joystick/interact.c | 1 | ||||
-rw-r--r-- | drivers/input/joystick/magellan.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/sidewinder.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/spaceball.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/spaceorb.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/stinger.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/tmdc.c | 2 | ||||
-rw-r--r-- | drivers/input/joystick/twidjoy.c | 3 | ||||
-rw-r--r-- | drivers/input/joystick/warrior.c | 2 |
18 files changed, 19 insertions, 18 deletions
diff --git a/drivers/input/joystick/a3d.c b/drivers/input/joystick/a3d.c index 4ac1a8f2169b..ff701ab10d74 100644 --- a/drivers/input/joystick/a3d.c +++ b/drivers/input/joystick/a3d.c | |||
@@ -314,7 +314,7 @@ static int a3d_connect(struct gameport *gameport, struct gameport_driver *drv) | |||
314 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_MADCATZ; | 314 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_MADCATZ; |
315 | input_dev->id.product = a3d->mode; | 315 | input_dev->id.product = a3d->mode; |
316 | input_dev->id.version = 0x0100; | 316 | input_dev->id.version = 0x0100; |
317 | input_dev->cdev.dev = &gameport->dev; | 317 | input_dev->dev.parent = &gameport->dev; |
318 | input_dev->open = a3d_open; | 318 | input_dev->open = a3d_open; |
319 | input_dev->close = a3d_close; | 319 | input_dev->close = a3d_close; |
320 | 320 | ||
diff --git a/drivers/input/joystick/adi.c b/drivers/input/joystick/adi.c index e8353526736f..28140c4a110d 100644 --- a/drivers/input/joystick/adi.c +++ b/drivers/input/joystick/adi.c | |||
@@ -424,7 +424,7 @@ static int adi_init_input(struct adi *adi, struct adi_port *port, int half) | |||
424 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_LOGITECH; | 424 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_LOGITECH; |
425 | input_dev->id.product = adi->id; | 425 | input_dev->id.product = adi->id; |
426 | input_dev->id.version = 0x0100; | 426 | input_dev->id.version = 0x0100; |
427 | input_dev->cdev.dev = &port->gameport->dev; | 427 | input_dev->dev.parent = &port->gameport->dev; |
428 | 428 | ||
429 | input_set_drvdata(input_dev, port); | 429 | input_set_drvdata(input_dev, port); |
430 | 430 | ||
diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c index 7244e296bb26..1c1afb5d4684 100644 --- a/drivers/input/joystick/analog.c +++ b/drivers/input/joystick/analog.c | |||
@@ -449,6 +449,7 @@ static int analog_init_device(struct analog_port *port, struct analog *analog, i | |||
449 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_ANALOG; | 449 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_ANALOG; |
450 | input_dev->id.product = analog->mask >> 4; | 450 | input_dev->id.product = analog->mask >> 4; |
451 | input_dev->id.version = 0x0100; | 451 | input_dev->id.version = 0x0100; |
452 | input_dev->dev.parent = &port->gameport->dev; | ||
452 | 453 | ||
453 | input_set_drvdata(input_dev, port); | 454 | input_set_drvdata(input_dev, port); |
454 | 455 | ||
diff --git a/drivers/input/joystick/cobra.c b/drivers/input/joystick/cobra.c index 207536377fa8..d3352a849b85 100644 --- a/drivers/input/joystick/cobra.c +++ b/drivers/input/joystick/cobra.c | |||
@@ -211,7 +211,7 @@ static int cobra_connect(struct gameport *gameport, struct gameport_driver *drv) | |||
211 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_CREATIVE; | 211 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_CREATIVE; |
212 | input_dev->id.product = 0x0008; | 212 | input_dev->id.product = 0x0008; |
213 | input_dev->id.version = 0x0100; | 213 | input_dev->id.version = 0x0100; |
214 | input_dev->cdev.dev = &gameport->dev; | 214 | input_dev->dev.parent = &gameport->dev; |
215 | 215 | ||
216 | input_set_drvdata(input_dev, cobra); | 216 | input_set_drvdata(input_dev, cobra); |
217 | 217 | ||
diff --git a/drivers/input/joystick/gf2k.c b/drivers/input/joystick/gf2k.c index ac7db7a1f8db..d514aebf7554 100644 --- a/drivers/input/joystick/gf2k.c +++ b/drivers/input/joystick/gf2k.c | |||
@@ -308,7 +308,7 @@ static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv) | |||
308 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GENIUS; | 308 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GENIUS; |
309 | input_dev->id.product = gf2k->id; | 309 | input_dev->id.product = gf2k->id; |
310 | input_dev->id.version = 0x0100; | 310 | input_dev->id.version = 0x0100; |
311 | input_dev->cdev.dev = &gameport->dev; | 311 | input_dev->dev.parent = &gameport->dev; |
312 | 312 | ||
313 | input_set_drvdata(input_dev, gf2k); | 313 | input_set_drvdata(input_dev, gf2k); |
314 | 314 | ||
diff --git a/drivers/input/joystick/grip.c b/drivers/input/joystick/grip.c index 41da7f17d6ee..73eb5ab6f140 100644 --- a/drivers/input/joystick/grip.c +++ b/drivers/input/joystick/grip.c | |||
@@ -363,7 +363,7 @@ static int grip_connect(struct gameport *gameport, struct gameport_driver *drv) | |||
363 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GRAVIS; | 363 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GRAVIS; |
364 | input_dev->id.product = grip->mode[i]; | 364 | input_dev->id.product = grip->mode[i]; |
365 | input_dev->id.version = 0x0100; | 365 | input_dev->id.version = 0x0100; |
366 | input_dev->cdev.dev = &gameport->dev; | 366 | input_dev->dev.parent = &gameport->dev; |
367 | 367 | ||
368 | input_set_drvdata(input_dev, grip); | 368 | input_set_drvdata(input_dev, grip); |
369 | 369 | ||
diff --git a/drivers/input/joystick/grip_mp.c b/drivers/input/joystick/grip_mp.c index 1771d5d86790..555319e6378c 100644 --- a/drivers/input/joystick/grip_mp.c +++ b/drivers/input/joystick/grip_mp.c | |||
@@ -599,7 +599,7 @@ static int register_slot(int slot, struct grip_mp *grip) | |||
599 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GRAVIS; | 599 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GRAVIS; |
600 | input_dev->id.product = 0x0100 + port->mode; | 600 | input_dev->id.product = 0x0100 + port->mode; |
601 | input_dev->id.version = 0x0100; | 601 | input_dev->id.version = 0x0100; |
602 | input_dev->cdev.dev = &grip->gameport->dev; | 602 | input_dev->dev.parent = &grip->gameport->dev; |
603 | 603 | ||
604 | input_set_drvdata(input_dev, grip); | 604 | input_set_drvdata(input_dev, grip); |
605 | 605 | ||
diff --git a/drivers/input/joystick/guillemot.c b/drivers/input/joystick/guillemot.c index 3e022dc83941..d4e8073caf27 100644 --- a/drivers/input/joystick/guillemot.c +++ b/drivers/input/joystick/guillemot.c | |||
@@ -231,7 +231,7 @@ static int guillemot_connect(struct gameport *gameport, struct gameport_driver * | |||
231 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GUILLEMOT; | 231 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_GUILLEMOT; |
232 | input_dev->id.product = guillemot_type[i].id; | 232 | input_dev->id.product = guillemot_type[i].id; |
233 | input_dev->id.version = (int)data[14] << 8 | data[15]; | 233 | input_dev->id.version = (int)data[14] << 8 | data[15]; |
234 | input_dev->cdev.dev = &gameport->dev; | 234 | input_dev->dev.parent = &gameport->dev; |
235 | 235 | ||
236 | input_set_drvdata(input_dev, guillemot); | 236 | input_set_drvdata(input_dev, guillemot); |
237 | 237 | ||
diff --git a/drivers/input/joystick/iforce/iforce-main.c b/drivers/input/joystick/iforce/iforce-main.c index bd5a6de69a6b..fb129c479a66 100644 --- a/drivers/input/joystick/iforce/iforce-main.c +++ b/drivers/input/joystick/iforce/iforce-main.c | |||
@@ -287,13 +287,13 @@ int iforce_init_device(struct iforce *iforce) | |||
287 | #ifdef CONFIG_JOYSTICK_IFORCE_USB | 287 | #ifdef CONFIG_JOYSTICK_IFORCE_USB |
288 | case IFORCE_USB: | 288 | case IFORCE_USB: |
289 | input_dev->id.bustype = BUS_USB; | 289 | input_dev->id.bustype = BUS_USB; |
290 | input_dev->cdev.dev = &iforce->usbdev->dev; | 290 | input_dev->dev.parent = &iforce->usbdev->dev; |
291 | break; | 291 | break; |
292 | #endif | 292 | #endif |
293 | #ifdef CONFIG_JOYSTICK_IFORCE_232 | 293 | #ifdef CONFIG_JOYSTICK_IFORCE_232 |
294 | case IFORCE_232: | 294 | case IFORCE_232: |
295 | input_dev->id.bustype = BUS_RS232; | 295 | input_dev->id.bustype = BUS_RS232; |
296 | input_dev->cdev.dev = &iforce->serio->dev; | 296 | input_dev->dev.parent = &iforce->serio->dev; |
297 | break; | 297 | break; |
298 | #endif | 298 | #endif |
299 | } | 299 | } |
diff --git a/drivers/input/joystick/interact.c b/drivers/input/joystick/interact.c index f0ff78384cbe..1aec1e9d7c59 100644 --- a/drivers/input/joystick/interact.c +++ b/drivers/input/joystick/interact.c | |||
@@ -262,6 +262,7 @@ static int interact_connect(struct gameport *gameport, struct gameport_driver *d | |||
262 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_INTERACT; | 262 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_INTERACT; |
263 | input_dev->id.product = interact_type[i].id; | 263 | input_dev->id.product = interact_type[i].id; |
264 | input_dev->id.version = 0x0100; | 264 | input_dev->id.version = 0x0100; |
265 | input_dev->dev.parent = &gameport->dev; | ||
265 | 266 | ||
266 | input_set_drvdata(input_dev, interact); | 267 | input_set_drvdata(input_dev, interact); |
267 | 268 | ||
diff --git a/drivers/input/joystick/magellan.c b/drivers/input/joystick/magellan.c index 31f6866a2efe..b35604ee43ae 100644 --- a/drivers/input/joystick/magellan.c +++ b/drivers/input/joystick/magellan.c | |||
@@ -168,7 +168,7 @@ static int magellan_connect(struct serio *serio, struct serio_driver *drv) | |||
168 | input_dev->id.vendor = SERIO_MAGELLAN; | 168 | input_dev->id.vendor = SERIO_MAGELLAN; |
169 | input_dev->id.product = 0x0001; | 169 | input_dev->id.product = 0x0001; |
170 | input_dev->id.version = 0x0100; | 170 | input_dev->id.version = 0x0100; |
171 | input_dev->cdev.dev = &serio->dev; | 171 | input_dev->dev.parent = &serio->dev; |
172 | 172 | ||
173 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 173 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); |
174 | 174 | ||
diff --git a/drivers/input/joystick/sidewinder.c b/drivers/input/joystick/sidewinder.c index f800c39475b3..2adf73f63c94 100644 --- a/drivers/input/joystick/sidewinder.c +++ b/drivers/input/joystick/sidewinder.c | |||
@@ -751,7 +751,7 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv) | |||
751 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_MICROSOFT; | 751 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_MICROSOFT; |
752 | input_dev->id.product = sw->type; | 752 | input_dev->id.product = sw->type; |
753 | input_dev->id.version = 0x0100; | 753 | input_dev->id.version = 0x0100; |
754 | input_dev->cdev.dev = &gameport->dev; | 754 | input_dev->dev.parent = &gameport->dev; |
755 | 755 | ||
756 | input_set_drvdata(input_dev, sw); | 756 | input_set_drvdata(input_dev, sw); |
757 | 757 | ||
diff --git a/drivers/input/joystick/spaceball.c b/drivers/input/joystick/spaceball.c index dd611deecb0e..abb7c4cf54ad 100644 --- a/drivers/input/joystick/spaceball.c +++ b/drivers/input/joystick/spaceball.c | |||
@@ -226,7 +226,7 @@ static int spaceball_connect(struct serio *serio, struct serio_driver *drv) | |||
226 | input_dev->id.vendor = SERIO_SPACEBALL; | 226 | input_dev->id.vendor = SERIO_SPACEBALL; |
227 | input_dev->id.product = id; | 227 | input_dev->id.product = id; |
228 | input_dev->id.version = 0x0100; | 228 | input_dev->id.version = 0x0100; |
229 | input_dev->cdev.dev = &serio->dev; | 229 | input_dev->dev.parent = &serio->dev; |
230 | 230 | ||
231 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 231 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); |
232 | 232 | ||
diff --git a/drivers/input/joystick/spaceorb.c b/drivers/input/joystick/spaceorb.c index f5e496679e2b..c4937f1e837c 100644 --- a/drivers/input/joystick/spaceorb.c +++ b/drivers/input/joystick/spaceorb.c | |||
@@ -183,7 +183,7 @@ static int spaceorb_connect(struct serio *serio, struct serio_driver *drv) | |||
183 | input_dev->id.vendor = SERIO_SPACEORB; | 183 | input_dev->id.vendor = SERIO_SPACEORB; |
184 | input_dev->id.product = 0x0001; | 184 | input_dev->id.product = 0x0001; |
185 | input_dev->id.version = 0x0100; | 185 | input_dev->id.version = 0x0100; |
186 | input_dev->cdev.dev = &serio->dev; | 186 | input_dev->dev.parent = &serio->dev; |
187 | 187 | ||
188 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 188 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); |
189 | 189 | ||
diff --git a/drivers/input/joystick/stinger.c b/drivers/input/joystick/stinger.c index b6a6f21cc921..8581ee991d4e 100644 --- a/drivers/input/joystick/stinger.c +++ b/drivers/input/joystick/stinger.c | |||
@@ -154,7 +154,7 @@ static int stinger_connect(struct serio *serio, struct serio_driver *drv) | |||
154 | input_dev->id.vendor = SERIO_STINGER; | 154 | input_dev->id.vendor = SERIO_STINGER; |
155 | input_dev->id.product = 0x0001; | 155 | input_dev->id.product = 0x0001; |
156 | input_dev->id.version = 0x0100; | 156 | input_dev->id.version = 0x0100; |
157 | input_dev->cdev.dev = &serio->dev; | 157 | input_dev->dev.parent = &serio->dev; |
158 | 158 | ||
159 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 159 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); |
160 | input_dev->keybit[LONG(BTN_A)] = BIT(BTN_A) | BIT(BTN_B) | BIT(BTN_C) | BIT(BTN_X) | | 160 | input_dev->keybit[LONG(BTN_A)] = BIT(BTN_A) | BIT(BTN_B) | BIT(BTN_C) | BIT(BTN_X) | |
diff --git a/drivers/input/joystick/tmdc.c b/drivers/input/joystick/tmdc.c index 53260d11fd67..3b36ee04f726 100644 --- a/drivers/input/joystick/tmdc.c +++ b/drivers/input/joystick/tmdc.c | |||
@@ -326,7 +326,7 @@ static int tmdc_setup_port(struct tmdc *tmdc, int idx, unsigned char *data) | |||
326 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_THRUSTMASTER; | 326 | input_dev->id.vendor = GAMEPORT_ID_VENDOR_THRUSTMASTER; |
327 | input_dev->id.product = model->id; | 327 | input_dev->id.product = model->id; |
328 | input_dev->id.version = 0x0100; | 328 | input_dev->id.version = 0x0100; |
329 | input_dev->cdev.dev = &tmdc->gameport->dev; | 329 | input_dev->dev.parent = &tmdc->gameport->dev; |
330 | 330 | ||
331 | input_set_drvdata(input_dev, tmdc); | 331 | input_set_drvdata(input_dev, tmdc); |
332 | 332 | ||
diff --git a/drivers/input/joystick/twidjoy.c b/drivers/input/joystick/twidjoy.c index 458a129b4b22..c91504ec38eb 100644 --- a/drivers/input/joystick/twidjoy.c +++ b/drivers/input/joystick/twidjoy.c | |||
@@ -205,10 +205,9 @@ static int twidjoy_connect(struct serio *serio, struct serio_driver *drv) | |||
205 | input_dev->id.vendor = SERIO_TWIDJOY; | 205 | input_dev->id.vendor = SERIO_TWIDJOY; |
206 | input_dev->id.product = 0x0001; | 206 | input_dev->id.product = 0x0001; |
207 | input_dev->id.version = 0x0100; | 207 | input_dev->id.version = 0x0100; |
208 | input_dev->cdev.dev = &serio->dev; | 208 | input_dev->dev.parent = &serio->dev; |
209 | 209 | ||
210 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 210 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); |
211 | input_dev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y); | ||
212 | input_set_abs_params(input_dev, ABS_X, -50, 50, 4, 4); | 211 | input_set_abs_params(input_dev, ABS_X, -50, 50, 4, 4); |
213 | input_set_abs_params(input_dev, ABS_Y, -50, 50, 4, 4); | 212 | input_set_abs_params(input_dev, ABS_Y, -50, 50, 4, 4); |
214 | 213 | ||
diff --git a/drivers/input/joystick/warrior.c b/drivers/input/joystick/warrior.c index e0927a562905..4e85f72eefd7 100644 --- a/drivers/input/joystick/warrior.c +++ b/drivers/input/joystick/warrior.c | |||
@@ -160,7 +160,7 @@ static int warrior_connect(struct serio *serio, struct serio_driver *drv) | |||
160 | input_dev->id.vendor = SERIO_WARRIOR; | 160 | input_dev->id.vendor = SERIO_WARRIOR; |
161 | input_dev->id.product = 0x0001; | 161 | input_dev->id.product = 0x0001; |
162 | input_dev->id.version = 0x0100; | 162 | input_dev->id.version = 0x0100; |
163 | input_dev->cdev.dev = &serio->dev; | 163 | input_dev->dev.parent = &serio->dev; |
164 | 164 | ||
165 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL) | BIT(EV_ABS); | 165 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL) | BIT(EV_ABS); |
166 | input_dev->keybit[LONG(BTN_TRIGGER)] = BIT(BTN_TRIGGER) | BIT(BTN_THUMB) | BIT(BTN_TOP) | BIT(BTN_TOP2); | 166 | input_dev->keybit[LONG(BTN_TRIGGER)] = BIT(BTN_TRIGGER) | BIT(BTN_THUMB) | BIT(BTN_TOP) | BIT(BTN_TOP2); |