mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-12 15:44:01 +08:00
gpio: omap: get rid of GPIO_BIT() macro
Now OMAP GPIO driver prepared for GPIO_BIT() macro removing. Do it ;) Tested-by: Tony Lindgren <tony@atomide.com> Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi> Acked-by: Santosh Shilimkar <ssantosh@kernel.org> Acked-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
9943f2611c
commit
8ac58a0a72
@ -82,7 +82,6 @@ struct gpio_bank {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define GPIO_INDEX(bank, gpio) (gpio % bank->width)
|
#define GPIO_INDEX(bank, gpio) (gpio % bank->width)
|
||||||
#define GPIO_BIT(bank, gpio) (BIT(GPIO_INDEX(bank, gpio)))
|
|
||||||
#define GPIO_MOD_CTRL_BIT BIT(0)
|
#define GPIO_MOD_CTRL_BIT BIT(0)
|
||||||
|
|
||||||
#define BANK_USED(bank) (bank->mod_usage || bank->irq_usage)
|
#define BANK_USED(bank) (bank->mod_usage || bank->irq_usage)
|
||||||
|
Loading…
Reference in New Issue
Block a user