-
由 Sebastian Krzyszkowiak 提交于
max17042_set_soc_threshold gets called with offset set to 1, which means that minimum threshold value would underflow once SOC got down to 0, causing invalid alerts from the gauge. Fixes: e5f3872d ("max17042: Add support for signalling change in SOC") Cc: <stable@vger.kernel.org> Signed-off-by: NSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm> Reviewed-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
e660dbb6