Skip to content
Commit 166814d8 authored by Jean Delvare's avatar Jean Delvare Committed by Linus Walleij
Browse files

gpio: pch: Optimize pch_gpio_get()



The double negation is costly and can be avoided by shifting the
register value before masking the requested bit.

Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 446f59ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment