power: supply: use max() to improve code
authorQianfeng Rong <rongqianfeng@vivo.com>
Thu, 14 Aug 2025 14:36:53 +0000 (22:36 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 6 Sep 2025 21:32:11 +0000 (23:32 +0200)
commitd48d4e4f141b38944da3b0a9c21ce6828ec31d83
tree4d93a560e9bebef7c1c3f1d554af6ab1d89a4555
parent15a84d15a677533afa55010f1e2052a27fcd854d
power: supply: use max() to improve code

Use max() to reduce the code in cw_battery_get_property() and improve
its readability.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cw2015_battery.c