OSDN Git Service

Input: MT - make slot assignment work for overcovered solutions
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Sun, 5 Apr 2015 20:41:35 +0000 (13:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Apr 2015 16:37:33 +0000 (09:37 -0700)
commit73e8a8e777d8dde6a67df1cf4b18371e27d080d8
tree542890fc7998f5592a6e7f6cb32fa613e53786d6
parent61125591e1de23992279938eebf8c54f47d7e0a9
Input: MT - make slot assignment work for overcovered solutions

The recent inclusion of a deassignment cost in the slot assignment
algorithm did not properly account for the corner cases where the
solutions are overcovered. This change makes sure the resulting
assignment is unique, allocating new slots when necessary.

Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-mt.c