summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-sch.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-01-05 14:23:47 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-01-05 15:46:34 +0100
commit166814d8413df49bf21293aacc808b2782cbd9a8 (patch)
tree5eb75448791b058dbd5e3b8d01511fa76b4bf56a /drivers/gpio/gpio-sch.c
parentRevert "pinctrl: lantiq: Implement gpio_chip.to_irq" (diff)
downloadlinux-166814d8413df49bf21293aacc808b2782cbd9a8.tar.xz
linux-166814d8413df49bf21293aacc808b2782cbd9a8.zip
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: Jean Delvare <jdelvare@suse.de> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sch.c')
0 files changed, 0 insertions, 0 deletions