power: regulator: tps65910: Cannot test unsigned for being negative
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 7 Aug 2025 16:35:22 +0000 (17:35 +0100)
committerPeng Fan <peng.fan@nxp.com>
Mon, 1 Sep 2025 02:33:04 +0000 (10:33 +0800)
commit58b8ff0b663a7491c1964e1e3a8d1d88ef707077
treec184b477299085cdfca2d48010c8b547d99718d2
parentc9ffeefeb3efedd754e3ffa3440bfeb15cea00c3
power: regulator: tps65910: Cannot test unsigned for being negative

The code in tps65910_regulator.c treats the field supply in struct
tps65910_regulator_pdata as an int and even tests the value for being
negative so change it from a u32 to int so that the code all works as
expected.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
include/power/tps65910_pmic.h