diff options
author | Chunyan Zhang <chunyan.zhang@unisoc.com> | 2020-07-24 14:21:48 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-07-28 00:49:26 +0200 |
commit | ac31585fca317b29b6b7093a5a6775137a852f94 (patch) | |
tree | d36f0900437996b1c0dd663ced1d2e2680754bb5 /drivers/power/reset | |
parent | math64: New DIV_S64_ROUND_CLOSEST helper (diff) | |
download | linux-ac31585fca317b29b6b7093a5a6775137a852f94.tar.xz linux-ac31585fca317b29b6b7093a5a6775137a852f94.zip |
power: supply: sc27xx: prevent adc * 1000 from overflow
The input parameter is int type, cause adc * 1000 could overflow.
Change to use s64 to avoid this issue.
Signed-off-by: Chen Yongzhi <yongzhi.chen@unisoc.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/reset')
0 files changed, 0 insertions, 0 deletions