summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/qcom/pinctrl-ipq4019.c
diff options
context:
space:
mode:
authorRohit Agarwal <quic_rohiagar@quicinc.com>2023-05-15 08:46:10 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-05-16 15:03:37 +0200
commit6a16d1a5ba8c54b997b1cd10342ff3971652554d (patch)
tree432ec51b3ac3d08a4f4a5ca68bc668e406c7c89e /drivers/pinctrl/qcom/pinctrl-ipq4019.c
parentpinctrl: qcom: Remove the msm_function struct (diff)
downloadlinux-6a16d1a5ba8c54b997b1cd10342ff3971652554d.tar.xz
linux-6a16d1a5ba8c54b997b1cd10342ff3971652554d.zip
pinctrl: qcom: Refactor generic qcom pinctrl driver
Reuse the generic pingroup struct from pinctrl.h in msm_pingroup along with the macro defined. Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com> Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/1684133170-18540-3-git-send-email-quic_rohiagar@quicinc.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom/pinctrl-ipq4019.c')
-rw-r--r--drivers/pinctrl/qcom/pinctrl-ipq4019.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c
index 3ab859be6fbe..1f7944dd829d 100644
--- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c
+++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c
@@ -217,9 +217,9 @@ DECLARE_QCA_GPIO_PINS(99);
#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14) \
{ \
- .name = "gpio" #id, \
- .pins = gpio##id##_pins, \
- .npins = (unsigned)ARRAY_SIZE(gpio##id##_pins), \
+ .grp = PINCTRL_PINGROUP("gpio" #id, \
+ gpio##id##_pins, \
+ ARRAY_SIZE(gpio##id##_pins)), \
.funcs = (int[]){ \
qca_mux_gpio, /* gpio mode */ \
qca_mux_##f1, \