diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index f98116de9a6d..bcacfd977d14 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -482,6 +482,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(irq_status), POWER_SUPPLY_ATTR(parallel_output_mode), POWER_SUPPLY_ATTR(fg_type), + POWER_SUPPLY_ATTR(charger_status), /* Local extensions of type int64_t */ POWER_SUPPLY_ATTR(charge_counter_ext), /* Properties of type `const char *' */ diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index e78b73bde4c6..f6ebcb59ac26 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -362,6 +362,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_IRQ_STATUS, POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE, POWER_SUPPLY_PROP_FG_TYPE, + POWER_SUPPLY_PROP_CHARGER_STATUS, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, /* Properties of type `const char *' */