]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: exynos: fix type of count integer
authorHenrik Grimler <henrik@grimler.se>
Tue, 10 Sep 2024 18:37:18 +0000 (20:37 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 5 Nov 2024 05:26:13 +0000 (14:26 +0900)
commite5565c24bb49f477c4326d2b5275ed88b50af1ef
treea2ac8d2d91b338386f0e967923e7e7e3ad10f64d
parent56accc56b9aab87ef4809ccc588e1257969cd271
pinctrl: exynos: fix type of count integer

unsigned int count is used to capture return of dev_read_string_count.
When an error occurs dev_read_string_count returns -ve, which can
hence not be handled correctly. Use int instead of unsigned int so
that errors are detected.

Fixes: 16ca80adc551 ("pinctrl: Add pinctrl driver support for Exynos7420 SoC")
Signed-off-by: Henrik Grimler <henrik@grimler.se>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/pinctrl/exynos/pinctrl-exynos.c