summaryrefslogtreecommitdiff
path: root/yocto-kernel-patches/enable-charging.patch
blob: 48452ebf4c036b49ecd50546ac448547f3bcf6ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index 44420d1..35e0093 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -139,6 +139,7 @@ static struct device_attribute power_supply_attrs[] = {
 	POWER_SUPPLY_ATTR(health),
 	POWER_SUPPLY_ATTR(present),
 	POWER_SUPPLY_ATTR(online),
+  POWER_SUPPLY_ATTR(charging_enabled),
 	POWER_SUPPLY_ATTR(authentic),
 	POWER_SUPPLY_ATTR(technology),
 	POWER_SUPPLY_ATTR(cycle_count),