diff options
| author | 2019-06-10 20:10:56 +0300 | |
|---|---|---|
| committer | 2019-06-12 11:14:30 +0200 | |
| commit | a47b91587f6a05f2758dfa216c92d9dbc92528e7 (patch) | |
| tree | ab13f7de854c3c4376d8bd89512a09a673d1366f /include/linux/platform_data | |
| parent | gpio: omap: simplify read-modify-write (diff) | |
| download | linux-dev-a47b91587f6a05f2758dfa216c92d9dbc92528e7.tar.xz linux-dev-a47b91587f6a05f2758dfa216c92d9dbc92528e7.zip | |
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 <rmk+kernel@armlinux.org.uk>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
