diff options
| -rw-r--r-- | drivers/input/touchscreen/bu21013_ts.c | 4 | ||||
| -rw-r--r-- | include/linux/input/bu21013.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c index f7fa9ef4cd65..3c7e60b2f778 100644 --- a/drivers/input/touchscreen/bu21013_ts.c +++ b/drivers/input/touchscreen/bu21013_ts.c | |||
| @@ -485,9 +485,9 @@ static int __devinit bu21013_probe(struct i2c_client *client, | |||
| 485 | __set_bit(EV_ABS, in_dev->evbit); | 485 | __set_bit(EV_ABS, in_dev->evbit); |
| 486 | 486 | ||
| 487 | input_set_abs_params(in_dev, ABS_MT_POSITION_X, 0, | 487 | input_set_abs_params(in_dev, ABS_MT_POSITION_X, 0, |
| 488 | pdata->x_max_res, 0, 0); | 488 | pdata->touch_x_max, 0, 0); |
| 489 | input_set_abs_params(in_dev, ABS_MT_POSITION_Y, 0, | 489 | input_set_abs_params(in_dev, ABS_MT_POSITION_Y, 0, |
| 490 | pdata->y_max_res, 0, 0); | 490 | pdata->touch_y_max, 0, 0); |
| 491 | input_set_drvdata(in_dev, bu21013_data); | 491 | input_set_drvdata(in_dev, bu21013_data); |
| 492 | 492 | ||
| 493 | error = request_threaded_irq(pdata->irq, NULL, bu21013_gpio_irq, | 493 | error = request_threaded_irq(pdata->irq, NULL, bu21013_gpio_irq, |
diff --git a/include/linux/input/bu21013.h b/include/linux/input/bu21013.h index e470d387dd49..05e03284b92a 100644 --- a/include/linux/input/bu21013.h +++ b/include/linux/input/bu21013.h | |||
| @@ -12,8 +12,6 @@ | |||
| 12 | * @cs_en: pointer to the cs enable function | 12 | * @cs_en: pointer to the cs enable function |
| 13 | * @cs_dis: pointer to the cs disable function | 13 | * @cs_dis: pointer to the cs disable function |
| 14 | * @irq_read_val: pointer to read the pen irq value function | 14 | * @irq_read_val: pointer to read the pen irq value function |
| 15 | * @x_max_res: xmax resolution | ||
| 16 | * @y_max_res: ymax resolution | ||
| 17 | * @touch_x_max: touch x max | 15 | * @touch_x_max: touch x max |
| 18 | * @touch_y_max: touch y max | 16 | * @touch_y_max: touch y max |
| 19 | * @cs_pin: chip select pin | 17 | * @cs_pin: chip select pin |
| @@ -29,8 +27,6 @@ struct bu21013_platform_device { | |||
| 29 | int (*cs_en)(int reset_pin); | 27 | int (*cs_en)(int reset_pin); |
| 30 | int (*cs_dis)(int reset_pin); | 28 | int (*cs_dis)(int reset_pin); |
| 31 | int (*irq_read_val)(void); | 29 | int (*irq_read_val)(void); |
| 32 | int x_max_res; | ||
| 33 | int y_max_res; | ||
| 34 | int touch_x_max; | 30 | int touch_x_max; |
| 35 | int touch_y_max; | 31 | int touch_y_max; |
| 36 | unsigned int cs_pin; | 32 | unsigned int cs_pin; |
