Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57336
b: refs/heads/master
c: 26be5a5
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Jun 4, 2007
1 parent 531fbb6 commit ee035b4
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: b23c9e386cc639aa7c0b7360388b3e3759059e06
refs/heads/master: 26be5a509af5f80c7012bd4f0478a94746c9c9d9
7 changes: 4 additions & 3 deletions trunk/drivers/mfd/ucb1x00-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static void ucb1x00_ts_irq(int idx, void *id)

static int ucb1x00_ts_open(struct input_dev *idev)
{
struct ucb1x00_ts *ts = idev->private;
struct ucb1x00_ts *ts = input_get_drvdata(idev);
int ret = 0;

BUG_ON(ts->rtask);
Expand Down Expand Up @@ -329,7 +329,7 @@ static int ucb1x00_ts_open(struct input_dev *idev)
*/
static void ucb1x00_ts_close(struct input_dev *idev)
{
struct ucb1x00_ts *ts = idev->private;
struct ucb1x00_ts *ts = input_get_drvdata(idev);

if (ts->rtask)
kthread_stop(ts->rtask);
Expand Down Expand Up @@ -381,7 +381,6 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
ts->idev = idev;
ts->adcsync = adcsync ? UCB_SYNC : UCB_NOSYNC;

idev->private = ts;
idev->name = "Touchscreen panel";
idev->id.product = ts->ucb->id;
idev->open = ucb1x00_ts_open;
Expand All @@ -392,6 +391,8 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
__set_bit(ABS_Y, idev->absbit);
__set_bit(ABS_PRESSURE, idev->absbit);

input_set_drvdata(idev, ts);

err = input_register_device(idev);
if (err)
goto fail;
Expand Down

0 comments on commit ee035b4

Please sign in to comment.