cpcap: allow modifying voltages and currents
RFC 1/1 cpcap: allow modifying voltages and currents
Hi!
This allows user to disable the green LED, so that it can be used for other notifications. It also allows him to set lower voltage limits, and adjust current: lower current and voltage limits will result in longer battery lifetime.
Currently I'm using
POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT,POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE,
attributes to control it. Do we have something suitable for LED control? Are the current/voltage limits ok to use?
Best regards,
Pavel
drivers/power/supply/cpcap-battery.c +1 -1
@@ -3,7 +3,7 @@* * Copyright (C) 2017 Tony Lindgren <[email protected]> * -* Some parts of the code based on earlie Motorola mapphone Linux kernel +* Some parts of the code based on earlier Motorola mapphone Linux kernel * drivers: * * Copyright (C) 2009-2010 Motorola, Inc.
drivers/power/supply/cpcap-charger.c +125 -6
207 lines not on this page · raw message
Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180615/b6a49a75/attachment.sig>