aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRussell King <[email protected]>2019-06-10 20:10:56 +0300
committerLinus Walleij <[email protected]>2019-06-12 11:14:30 +0200
commita47b91587f6a05f2758dfa216c92d9dbc92528e7 (patch)
treeab13f7de854c3c4376d8bd89512a09a673d1366f /tools/perf/scripts/python
parent8ee1de65a94b14427b5d5e3a7e7b81523451d4f2 (diff)
gpio: omap: simplify omap_toggle_gpio_edge_triggering()
This function open-codes an exclusive-or bitwise operation using an if() statement and explicitly setting or clearing the bit. Instead, use an exclusive-or operation instead, and simplify the function. We can combine the preprocessor conditional using IS_ENABLED() and gain some additional compilation coverage. Signed-off-by: Russell King <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Tested-by: Tony Lindgren <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions