]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: exynos: Rework pin_to_bank_base() to obtain data by name
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 30 Nov 2023 20:13:48 +0000 (14:13 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 9 Jan 2024 15:59:28 +0000 (10:59 -0500)
commit2dfcb250d03a1014ce6a2648985b8216bd1d5207
treec807b20ffd2e16f5c7efd4eac8d678401fa684ba
parent58e84bf3d7fac6300790940176c6edf457c8fd88
pinctrl: exynos: Rework pin_to_bank_base() to obtain data by name

Rework pin_to_bank_base() function to obtain bank data structure by bank
name instead of getting bank base address by pin name, and rename it to
get_bank() to reflect this change. This in turn leads to the extraction
of parse_pin(), so the caller has to use it before calling get_bank().

No functional change. This is a refactoring commit which prepares
pinctrl driver code for handling different sizes of register fields,
which will be added next.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/pinctrl/exynos/pinctrl-exynos.c