Skip to content
Commit ac31585f authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Sebastian Reichel
Browse files

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: default avatarChen Yongzhi <yongzhi.chen@unisoc.com>
Signed-off-by: default avatarChunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent af60459a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment