pinctrl: eswin: Fix unsigned comparison to less than zero issue
authorColin Ian King <colin.i.king@gmail.com>
Mon, 23 Jun 2025 22:20:04 +0000 (23:20 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 24 Jun 2025 19:37:49 +0000 (21:37 +0200)
commit6cb0e9da949aeb022b28a9b698f767c8828e283d
tree5be34857157c442666b076c966f15612b3cf4dd2
parentd94a32ac688f953dc9a9f12b5b4139ecad841bbb
pinctrl: eswin: Fix unsigned comparison to less than zero issue

The u32 variable voltage is being compared to less than zero and
this can never be true. Fix this by making voltage an int type which
is the same type as the return from the call to regulator_get_voltage.

Fixes: 5b797bcc00ef ("pinctrl: eswin: Add EIC7700 pinctrl driver")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/20250623222004.280928-1-colin.i.king@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-eic7700.c