]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: aspeed: Add ASPEED_SB_PINCONF() helper
authorJohnny Huang <johnny_huang@aspeedtech.com>
Mon, 2 Dec 2019 06:14:29 +0000 (16:44 +1030)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Dec 2019 08:39:47 +0000 (09:39 +0100)
commita79bcd51ae06b134c97d1fa707b7c7385d2d61af
treebc259a1cc8cbba48650bcd44ccb59f4168bcff31
parent22d6919039838226d2041cc22e279985b4230f64
pinctrl: aspeed: Add ASPEED_SB_PINCONF() helper

This helper macro is for declaring single bit (SB) mask pinconf,
and is used to prepare for modifying aspeed_pin_config
structure, the aspeed_pin_config structure @bit variable will be
modified to @mask.

This case is common in the AST2400/AST2500 which the mask is a single bit.

Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20191202061432.3996-5-andrew@aj.id.au
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c
drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c
drivers/pinctrl/aspeed/pinctrl-aspeed.h