Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: bcm5974 - set BUTTONPAD property

Some bcm5974 trackpads have a physical button beneath the physical surface.
This patch sets the property bit so user space applications can detect the
trackpad type and act accordingly.

Signed-off-by: Jussi Pakkanen <jussi.pakkanen@canonical.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Jussi Pakkanen and committed by
Dmitry Torokhov
52965cc0 4fa07711

+3
+3
drivers/input/mouse/bcm5974.c
··· 433 433 __set_bit(BTN_TOOL_QUADTAP, input_dev->keybit); 434 434 __set_bit(BTN_LEFT, input_dev->keybit); 435 435 436 + if (cfg->caps & HAS_INTEGRATED_BUTTON) 437 + __set_bit(INPUT_PROP_BUTTONPAD, input_dev->propbit); 438 + 436 439 input_set_events_per_packet(input_dev, 60); 437 440 } 438 441