W dniu 29.09.2015 o 07:33, Andreas Dannenberg pisze: > This patch allows reading and writing of the input current limit through > the power supply's input_current_limit sysfs property. This allows > userspace to see what charger was detected (if the D+/D- USB signal- > based charger type detection is enabled) and to re-configure the maximum > current drawn from the external supply at runtime based on system-level > knowledge or user input. Note that upon charger disconnection and > re-connection the limit configured through firmware becomes active again > (or the D+/D- USB signal-based charger detection will be run again). > > Signed-off-by: Andreas Dannenberg <dannenberg@xxxxxx> > --- > drivers/power/bq24257_charger.c | 85 ++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 79 insertions(+), 6 deletions(-) > Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html