diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index da6b5367db3f..2894700c3486 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -506,6 +506,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(parallel_output_mode), POWER_SUPPLY_ATTR(alignment), POWER_SUPPLY_ATTR(moisture_detection_enabled), + POWER_SUPPLY_ATTR(fg_type), /* Local extensions of type int64_t */ POWER_SUPPLY_ATTR(charge_counter_ext), POWER_SUPPLY_ATTR(charge_charger_state), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 6c5e0e1276a3..2dae1837a21a 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -389,6 +389,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE, POWER_SUPPLY_PROP_ALIGNMENT, POWER_SUPPLY_PROP_MOISTURE_DETECTION_ENABLE, + POWER_SUPPLY_PROP_FG_TYPE, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,