Skip to content

Commit

Permalink
Input: synaptics - set min/max for finger width
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Bagwell authored and Dmitry Torokhov committed Jul 20, 2010
1 parent 2a8e771 commit 58fb021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/synaptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
input_set_abs_params(dev, ABS_PRESSURE, 0, 255, 0, 0);

if (SYN_CAP_PALMDETECT(priv->capabilities))
__set_bit(ABS_TOOL_WIDTH, dev->absbit);
input_set_abs_params(dev, ABS_TOOL_WIDTH, 0, 15, 0, 0);

__set_bit(EV_KEY, dev->evbit);
__set_bit(BTN_TOUCH, dev->keybit);
Expand Down

0 comments on commit 58fb021

Please sign in to comment.