pinctrl: bcm2712: Fix for sparse GPIOs
authorPhil Elwell <phil@raspberrypi.com>
Wed, 15 Nov 2023 14:49:55 +0000 (14:49 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:28 +0000 (11:35 +0000)
commit0fb8b03dd8272057bfabc4e0bdfcf1fc1ae48ae9
tree95bb35ccfc64373ab25f1732b08a49bd83edb9b2
parent1f224e04282ae333887ce9abd0ab75162ded2afe
pinctrl: bcm2712: Fix for sparse GPIOs

BCM2712D0's sparse GPIO map revealed that it is not safe to treat
group_selector as the GPIO number - it is an index into the array of
pinctrl_pin_descs, and the "number" member says which GPIO it refers to.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/pinctrl/bcm/pinctrl-bcm2712.c