summaryrefslogtreecommitdiff
path: root/block/blk-lib.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-06-10 20:10:57 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-06-12 11:14:36 +0200
commit31b2d7f7cc07b60e0ff6aa31192a694ea36795e8 (patch)
tree4f70b0c68c7884e6c6b0252cbe7639c498f1a937 /block/blk-lib.c
parenta47b91587f6a05f2758dfa216c92d9dbc92528e7 (diff)
downloadlwn-31b2d7f7cc07b60e0ff6aa31192a694ea36795e8.tar.gz
lwn-31b2d7f7cc07b60e0ff6aa31192a694ea36795e8.zip
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 <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 'block/blk-lib.c')
0 files changed, 0 insertions, 0 deletions