HID: asus: Simplify skipping of mappings for Asus T100CHI keyboard-dock
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 14:22:50 +0000 (16:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 6 May 2020 09:40:03 +0000 (11:40 +0200)
commita80b2f309883cb021ac05f992f785f15d7d748cf
tree08e4805e0fc43151c76f7420401837f2a370b381
parent4e4c60f826772dfeaacdf718f64afa38f46b6875
HID: asus: Simplify skipping of mappings for Asus T100CHI keyboard-dock

Before this commit the code was trying to keep the mapping for the
left mouse-button, do avoid the hidinput_has_been_populated() check
in hid-input.c from triggering and causing the touchpad input_dev ro
get cleaned up.

But the hidinput_has_been_populated() check happens after the
input_configured callback which sets up all the input bit for the
touchpad, so there is no need to preserve the left button mapping.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c