linux/drivers/usb/common
Paul Cercueil e3ee0e740c usb: common: usb-conn-gpio: Register charger
Register a power supply charger, whose online state depends on whether
the USB role is set to device or not.

This is useful when the USB role is the only way to know if the device
is charging from USB. The API is the standard power supply charger API,
you get a /sys/class/power_supply/xxx/online node which tells you the
state of the charger.

The sole purpose of this is to give userspace applications a way to
know whether or not the charger is plugged.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200727170413.23131-1-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-30 08:45:24 +02:00
..
Kconfig usb: common: usb-conn-gpio: Register charger 2020-07-30 08:45:24 +02:00
Makefile usb: common: add USB GPIO based connection detection driver 2019-09-03 19:01:04 +02:00
common.c USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
common.h USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
debug.c USB: Replace HTTP links with HTTPS ones 2020-07-21 13:41:57 +02:00
led.c USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
ulpi.c usb: common: ulpi: Fix a few kerneldoc related issues 2020-07-03 09:34:11 +02:00
usb-conn-gpio.c usb: common: usb-conn-gpio: Register charger 2020-07-30 08:45:24 +02:00
usb-otg-fsm.c USB: common: Remove redundant license text 2017-11-04 11:55:39 +01:00