diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-06-20 19:50:53 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-08-25 13:57:00 +0200 |
commit | 0e3db16300fbae5e47ce6c298bf63a7862e5d576 (patch) | |
tree | 14c237d29e18fda1777f1e7ada3ab6ecaa637095 /drivers/pinctrl/bcm/pinctrl-bcm63xx.h | |
parent | e6cbbe42944de93ba4e0785b4f90d284b1d7cdf6 (diff) |
pinctrl: bcm: Convert drivers to use struct pingroup and PINCTRL_PINGROUP()
The pin control header provides struct pingroup and PINCTRL_PINGROUP() macro.
Utilize them instead of open coded variants in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220620165053.74170-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/bcm/pinctrl-bcm63xx.h')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-bcm63xx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm63xx.h b/drivers/pinctrl/bcm/pinctrl-bcm63xx.h index d58c8cd5b6b8..95243027ecd9 100644 --- a/drivers/pinctrl/bcm/pinctrl-bcm63xx.h +++ b/drivers/pinctrl/bcm/pinctrl-bcm63xx.h @@ -21,6 +21,8 @@ struct bcm63xx_pinctrl_soc { unsigned int ngpios; }; +#define BCM_PIN_GROUP(n) PINCTRL_PINGROUP(#n, n##_pins, ARRAY_SIZE(n##_pins)) + struct bcm63xx_pinctrl { struct device *dev; struct regmap *regs; |