pinctrl: samsung: use add_pin_ranges method to add pinctrl ranges
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 6 Oct 2023 12:55:55 +0000 (14:55 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Oct 2023 10:37:21 +0000 (12:37 +0200)
commitbf128c1f0fe1fd4801fb84660c324095990c533a
tree5e548957e7b8a0ddc3837efd64d701e04aa5b2cd
parent2aca5c591ef4ecc4bcb9be3c9a9360d3d5238866
pinctrl: samsung: use add_pin_ranges method to add pinctrl ranges

This is preferable since we can read the base in the global GPIO
numberspace from the chip instead of needing to select it ourselves.

Past versions could not do this, since they needed to add all the ranges
before enabling the pinctrl subsystem, which was done before registering
the GPIO chip. However, right now we enable the pinctrl subsystem after
registering the chip and so this became possible.

Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20231006125557.212681-3-m.majewski2@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c
drivers/pinctrl/samsung/pinctrl-samsung.h