summary refs log tree commit diff
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2021-06-16 11:51:24 -0700
committerSebastian Reichel <sre@kernel.org>2021-07-16 15:54:34 +0200
commit56d629af09b9d4db9792257165844287ecce0a98 (patch)
treeea61aeac6953176b43166d979b1d2062bc71691e /fs/file_table.c
parent5176a18bb5e1596d46c34c4700ac67b74f88f704 (diff)
downloadlinux-56d629af09b9d4db9792257165844287ecce0a98.tar.gz
power: supply: PCHG: Peripheral device charger
This patch adds a driver for PCHG (Peripheral CHarGer). PCHG is a
framework managing power supplies for peripheral devices.

This driver creates a sysfs node for each peripheral charge port:

	/sys/class/power_supply/peripheral<n>

where <n> is the index of a charge port.

For example, when a stylus is connected to a NFC/WLC port, the node
returns:

	/sys/class/power_supply/peripheral0/
		capacity=50
		charge_type=Standard
		scope=Device
		status=Charging
		type=Battery

Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions