summaryrefslogtreecommitdiff
path: root/drivers/parisc
diff options
context:
space:
mode:
authorPavel Rojtberg <rojtberg@gmail.com>2015-10-10 10:00:49 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-10-10 11:27:06 -0700
commite3b651745a03810efffd7ebf2a9b5be65fb70ec3 (patch)
tree1fac117f1817468a0eeaa0aa40287f77b19894b0 /drivers/parisc
parent1f6f02b728eef0d937d5138ae60dbf8fbd045f3e (diff)
Input: xpad - use ida() for finding the pad_nr
The pad_nr corresponds to the lit up LED on the controller. Therefore there should be no gaps when enumerating. Currently a LED is only re-assigned after a controller is re-connected 4 times. This patch uses ida to track connected pads - this way we can re-assign freed up pad number immediately. Consider the following case: 1. pad A is connected and gets pad_nr = 0 2. pad B is connected and gets pad_nr = 1 3. pad A is disconnected 4. pad A is connected again using ida_simple_get() controller A now correctly gets pad_nr = 0 again. Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions