]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: cros_charge-control: allow start_threshold == end_threshold
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 8 Dec 2024 14:59:27 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:34:23 +0000 (10:34 +0100)
commit5792ae1cb1b00ae91ce514d2ec94c2efd954e6ca
treec37635927002f77032fdfcaac0f62a417a8ccc4e
parent77e6c8adf8d66c5464ee8a85942823b4302e4942
power: supply: cros_charge-control: allow start_threshold == end_threshold

commit e65a1b7fad0e112573eea7d64d4ab4fc513b8695 upstream.

Allow setting the start and stop thresholds to the same value.
There is no reason to disallow it.

Suggested-by: Thomas Koch <linrunner@gmx.net>
Fixes: c6ed48ef5259 ("power: supply: add ChromeOS EC based charge control driver")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241208-cros_charge-control-v2-v1-2-8d168d0f08a3@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/cros_charge-control.c