Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
power: supply: core: simplify charge_behaviour formatting
The function power_supply_show_charge_behaviour() is not needed and can be removed completely. Removing the function also saves a spurious read of the property from the driver on each call. The convulted logic was a leftover from an earlier patch revision. Some restructuring made this cleanup possible. Suggested-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Fixes: 4e61f1e ("power: supply: core: fix charge_behaviour formatting") Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
- Loading branch information