commit | 7f1d4e58dabb2668dd89547619ae4138996a8e26 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Wed May 10 19:55:34 2017 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jun 03 19:05:47 2017 +0900 |
tree | 27e9b91d48449ad2b555a890cfec992a02857aea | |
parent | 1ef1ce4e9ddd6dedd80f64ef112a3bd87ab50530 [diff] |
spmi: pmic-arb: optimize table lookups The current driver uses a mix of radix tree and a fwd lookup table to translate between apid and ppid. It is buggy and confusing. Instead simply use a radix tree for v1 hardware and use the forward lookup table for v2. Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Signed-off-by: Kiran Gunda <kgunda@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>