Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233773
b: refs/heads/master
c: 9063f1f
h: refs/heads/master
i:
  233771: af4b8f5
v: v3
  • Loading branch information
Jochen Friedrich authored and Samuel Ortiz committed Mar 2, 2011
1 parent 6d7b23f commit fcb63ed
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 0a85b4827e9960295fbf4ca0f32bb357693cc5f7
refs/heads/master: 9063f1f15eec35e5fd608879cef8be5728f2d12a
12 changes: 9 additions & 3 deletions trunk/drivers/mfd/ucb1x00-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,18 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
idev->close = ucb1x00_ts_close;

__set_bit(EV_ABS, idev->evbit);
__set_bit(ABS_X, idev->absbit);
__set_bit(ABS_Y, idev->absbit);
__set_bit(ABS_PRESSURE, idev->absbit);

input_set_drvdata(idev, ts);

ucb1x00_adc_enable(ts->ucb);
ts->x_res = ucb1x00_ts_read_xres(ts);
ts->y_res = ucb1x00_ts_read_yres(ts);
ucb1x00_adc_disable(ts->ucb);

input_set_abs_params(idev, ABS_X, 0, ts->x_res, 0, 0);
input_set_abs_params(idev, ABS_Y, 0, ts->y_res, 0, 0);
input_set_abs_params(idev, ABS_PRESSURE, 0, 0, 0, 0);

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

0 comments on commit fcb63ed

Please sign in to comment.