mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-28 00:11:32 +00:00
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: 16ca80adc5
("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>
This commit is contained in:
parent
56accc56b9
commit
e5565c24bb
1 changed files with 2 additions and 2 deletions
|
@ -114,8 +114,8 @@ static void exynos_pinctrl_set_pincfg(unsigned long reg_base, u32 pin_num,
|
||||||
int exynos_pinctrl_set_state(struct udevice *dev, struct udevice *config)
|
int exynos_pinctrl_set_state(struct udevice *dev, struct udevice *config)
|
||||||
{
|
{
|
||||||
struct exynos_pinctrl_priv *priv = dev_get_priv(dev);
|
struct exynos_pinctrl_priv *priv = dev_get_priv(dev);
|
||||||
unsigned int count, idx;
|
int count;
|
||||||
unsigned int pinvals[PINCFG_TYPE_NUM];
|
unsigned int idx, pinvals[PINCFG_TYPE_NUM];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* refer to the following document for the pinctrl bindings
|
* refer to the following document for the pinctrl bindings
|
||||||
|
|
Loading…
Add table
Reference in a new issue