summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-07-04 18:20:03 +0300
committerTzung-Bi Shih <tzungbi@kernel.org>2024-07-05 04:51:33 +0300
commit4baf1cc54433ff7c6e5178517bc8768001416681 (patch)
treeb3557a25637a221544ab76bd3e28632f4dc1fb47 /include
parentc98f17fec35e46629272226a898ebb0a653ee270 (diff)
downloadlinux-4baf1cc54433ff7c6e5178517bc8768001416681.tar.xz
power: supply: cros_charge-control: Fix signedness bug in charge_behaviour_store()
The C standard is vague about the signedness of enums, but in this case here, they are treated as unsigned so the error handling does not work. Use an int type to fix this. Fixes: c6ed48ef5259 ("power: supply: add ChromeOS EC based charge control driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Acked-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/ZoWKEs4mCqeLyTOB@stanley.mountain Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions