aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2018-08-22 22:41:07 +0200
committerLinus Walleij <[email protected]>2018-08-29 09:08:54 +0200
commitfd935fc421e74b9777370a0175bc011b780173d3 (patch)
tree9e5844495eab4eacb306c3d837064d541624f343 /tools/perf/scripts/python
parent99399f40d896077ec175d42722d37e625056707e (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