Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56839
b: refs/heads/master
c: 09b7002
h: refs/heads/master
i:
  56837: 87209d8
  56835: 1f156c4
  56831: d641ca0
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed May 23, 2007
1 parent d29a667 commit 0cc1df4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 57a21c1b929450b1e020c0a03cca6fa7448f4222
refs/heads/master: 09b7002d68cfa1c45cc413a0c7cca399c25a57c6
9 changes: 5 additions & 4 deletions trunk/drivers/usb/storage/onetouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void usb_onetouch_irq(struct urb *urb)

static int usb_onetouch_open(struct input_dev *dev)
{
struct usb_onetouch *onetouch = dev->private;
struct usb_onetouch *onetouch = input_get_drvdata(dev);

onetouch->is_open = 1;
onetouch->irq->dev = onetouch->udev;
Expand All @@ -98,7 +98,7 @@ static int usb_onetouch_open(struct input_dev *dev)

static void usb_onetouch_close(struct input_dev *dev)
{
struct usb_onetouch *onetouch = dev->private;
struct usb_onetouch *onetouch = input_get_drvdata(dev);

usb_kill_urb(onetouch->irq);
onetouch->is_open = 0;
Expand Down Expand Up @@ -185,13 +185,14 @@ int onetouch_connect_input(struct us_data *ss)
input_dev->name = onetouch->name;
input_dev->phys = onetouch->phys;
usb_to_input_id(udev, &input_dev->id);
input_dev->cdev.dev = &udev->dev;
input_dev->dev.parent = &udev->dev;

set_bit(EV_KEY, input_dev->evbit);
set_bit(ONETOUCH_BUTTON, input_dev->keybit);
clear_bit(0, input_dev->keybit);

input_dev->private = onetouch;
input_set_drvdata(input_dev, onetouch);

input_dev->open = usb_onetouch_open;
input_dev->close = usb_onetouch_close;

Expand Down

0 comments on commit 0cc1df4

Please sign in to comment.