diff options
author | Chris Bagwell <chris@cnpbagwell.com> | 2010-07-19 12:06:15 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-07-20 00:44:38 -0400 |
commit | 58fb021827b7455e05d89371556e6c255e9fb2e1 (patch) | |
tree | 2c1d7bf2d0f2555567e907929ed6f9cf85e23455 | |
parent | 2a8e77102e02dd236ff276a2151073ed551d04f2 (diff) |
Input: synaptics - set min/max for finger width
Reporting this will allow GUI config apps to correctly scale
width sensitive config values (such as palm detect) to correct
range. Current user apps are detecting kernels min/max=0/0 and
making an assumption that it means 0/16 or 0/15.
Synaptics touchpad interface guides show 4/15 are correct values
but driver forces to 0 when no fingers on touchpad.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/input/mouse/synaptics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 1b49d7f8ae1..85a1e146099 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c | |||
@@ -600,7 +600,7 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv) | |||
600 | input_set_abs_params(dev, ABS_PRESSURE, 0, 255, 0, 0); | 600 | input_set_abs_params(dev, ABS_PRESSURE, 0, 255, 0, 0); |
601 | 601 | ||
602 | if (SYN_CAP_PALMDETECT(priv->capabilities)) | 602 | if (SYN_CAP_PALMDETECT(priv->capabilities)) |
603 | __set_bit(ABS_TOOL_WIDTH, dev->absbit); | 603 | input_set_abs_params(dev, ABS_TOOL_WIDTH, 0, 15, 0, 0); |
604 | 604 | ||
605 | __set_bit(EV_KEY, dev->evbit); | 605 | __set_bit(EV_KEY, dev->evbit); |
606 | __set_bit(BTN_TOUCH, dev->keybit); | 606 | __set_bit(BTN_TOUCH, dev->keybit); |