]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
power: supply: core: Add type property to uevent env
authorMathew King <mathewk@chromium.org>
Mon, 4 May 2020 20:29:30 +0000 (14:29 -0600)
committerSebastian Reichel <sre@kernel.org>
Wed, 6 May 2020 22:54:38 +0000 (00:54 +0200)
commit2ad3d74e3c69fb371412f37d8226f2da3a3b6cc2
tree76446683f3eb351360f6680a76989c710875151c
parent5b505366ac6c77a623e18fe18cedb2d4d3c9a7f3
power: supply: core: Add type property to uevent env

Add POWER_SUPPLY_TYPE to the uevent env for power supply. Type is a
property of all power supplies and there is a sysfs entry for it but it
is not included in the properties array of the power supply so
explicitly add it to the udev env.

Signed-off-by: Mathew King <mathewk@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_sysfs.c