diff options
Diffstat (limited to 'yocto-kernel-patches/enable-charging.patch')
-rw-r--r-- | yocto-kernel-patches/enable-charging.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/yocto-kernel-patches/enable-charging.patch b/yocto-kernel-patches/enable-charging.patch new file mode 100644 index 0000000..48452eb --- /dev/null +++ b/yocto-kernel-patches/enable-charging.patch @@ -0,0 +1,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), |