diff options
| author | Linus Walleij <[email protected]> | 2018-08-22 22:41:07 +0200 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-08-29 09:08:54 +0200 |
| commit | fd935fc421e74b9777370a0175bc011b780173d3 (patch) | |
| tree | 9e5844495eab4eacb306c3d837064d541624f343 /tools/perf/scripts/python | |
| parent | 99399f40d896077ec175d42722d37e625056707e (diff) | |
gpio: ep93xx: Do not pingpong irq numbers
For setting debounce config we want to write an offset in
a per-gpiochip register, and we know which gpiochip we are
on. Instead of a roundtrip over the IRQ number, figure out
what port we are on for this GPIO chip, then index to the
right register and write the value.
This adds the ep93xx_gpio_port() that finds the port index
from a struct gpio_chip * that we can later exploit to
simplify more code.
Acked-by: Alexander Sverdlin <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions