diff options
author | Russell King <[email protected]> | 2019-06-10 20:10:57 +0300 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2019-06-12 11:14:36 +0200 |
commit | 31b2d7f7cc07b60e0ff6aa31192a694ea36795e8 (patch) | |
tree | 4f70b0c68c7884e6c6b0252cbe7639c498f1a937 /drivers/usb/cdns3/cdns3-debug.h | |
parent | a47b91587f6a05f2758dfa216c92d9dbc92528e7 (diff) |
gpio: omap: simplify omap_set_gpio_irqenable()
omap_set_gpio_irqenable() calls two helpers that are almost the same
apart from whether they set or clear bits. We can consolidate these:
- in the set/clear bit register case, we can perform the operation on
our saved context copy and write the appropriate set/clear register.
- otherwise, we can use our read-modify-write helper and invert enable
if irqenable_inv is set.
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 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions