diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index a028d2d1e4f4..c4dffee96c51 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -497,6 +497,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(cp_ilim), /* Local extensions of type int64_t */ POWER_SUPPLY_ATTR(charge_counter_ext), + POWER_SUPPLY_ATTR(charge_charger_state), /* Properties of type `const char *' */ POWER_SUPPLY_ATTR(model_name), POWER_SUPPLY_ATTR(ptmc_id), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index df9a68527fa4..68717a5856a0 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -362,6 +362,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_CP_ILIM, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, + POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE, /* Properties of type `const char *' */ POWER_SUPPLY_PROP_MODEL_NAME, POWER_SUPPLY_PROP_PTMC_ID,