]> Git Repo - linux.git/commit - drivers/gpio/gpio-pch.c
gpio: pch: Optimize pch_gpio_get()
authorJean Delvare <[email protected]>
Tue, 5 Jan 2016 13:23:47 +0000 (14:23 +0100)
committerLinus Walleij <[email protected]>
Tue, 5 Jan 2016 14:46:34 +0000 (15:46 +0100)
commit166814d8413df49bf21293aacc808b2782cbd9a8
tree5eb75448791b058dbd5e3b8d01511fa76b4bf56a
parent446f59acb70b70a425ea4105277a71eb615327cd
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 <[email protected]>
Cc: Linus Walleij <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/gpio/gpio-pch.c
This page took 0.060641 seconds and 4 git commands to generate.