]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pl061: use BIT() macro instead of shifting bits
authorJavier Martinez Canillas <javier@dowhile0.org>
Sun, 27 Apr 2014 00:00:50 +0000 (02:00 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 3 May 2014 19:16:24 +0000 (12:16 -0700)
commit03e2c5b181754074cd552b875ae597aee66a3fde
treec167aa8bf703c5a18c56ef20b52bdd6d7a6e6888
parentaccbe73d70601bb9ca4c14cd7d3a12e7008d5f5e
gpio: pl061: use BIT() macro instead of shifting bits

Using the BIT() macro instead of shifting bits
makes the code less error prone and also more readable.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c