pinctrl: pinctrl-zynqmp: Use pin numbers stored in pin descriptor
authorSwati Agarwal <swati.agarwal@amd.com>
Mon, 27 May 2024 10:57:15 +0000 (12:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2024 07:23:18 +0000 (09:23 +0200)
commit50287367812602598a39f93620ec7cf009443258
treec62c6961045327862828227035ddeca509f50757
parent0a2bcac1a22d9b78852a6039775455a798a095a0
pinctrl: pinctrl-zynqmp: Use pin numbers stored in pin descriptor

Use pin numbers stored in the pin descriptors instead of index value while
creating the pin groups. Pin Id's are not same as Index values for Xilinx
Versal platform, so use the pin values from descriptor which works for both
ZynqMP and Versal platforms.

Signed-off-by: Swati Agarwal <swati.agarwal@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/2413a1f99278d70313960f13daecda9ef54172d8.1716807432.git.michal.simek@amd.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-zynqmp.c