diff options
author | Pavel Rojtberg <rojtberg@gmail.com> | 2015-10-10 10:00:49 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-10-10 11:27:06 -0700 |
commit | e3b651745a03810efffd7ebf2a9b5be65fb70ec3 (patch) | |
tree | 1fac117f1817468a0eeaa0aa40287f77b19894b0 /drivers/dma/edma.c | |
parent | 1f6f02b728eef0d937d5138ae60dbf8fbd045f3e (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/dma/edma.c')
0 files changed, 0 insertions, 0 deletions