[PATCH v2 2/5] gpio: rtd1625: Fix variable type for regmap_read()
Yu-Chun Lin <[email protected]>
| Newsgroups | org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Change the type of 'val' from int to unsigned int. This properly matches the expected parameter type of regmap_read(). Signed-off-by: Yu-Chun Lin <[email protected]> --- drivers/gpio/gpio-rtd1625.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rtd1625.c b/drivers/gpio/gpio-rtd1625.c index 910004c423df..0308d7a052e7 100644 --- a/drivers/gpio/gpio-rtd1625.c +++ b/drivers/gpio/gpio-rtd1625.c @@ -110,7 +110,8 @@ static int rtd1625_reg_mask_xlate(struct gpio_regmap *gpio, enum gpio_regmap_ope struct rtd1625_gpio *data = gpio_regmap_get_drvdata(gpio); /* Each GPIO has its own dedicated 32-bit register */ *reg = base + offset * 4; - int val, ret; + unsigned int val; + int ret; switch (op) { case GPIO_REGMAP_SET_OP: -- 2.43.0