Loading drivers/power/supply/power_supply_sysfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -465,9 +465,9 @@ static struct device_attribute power_supply_attrs[] = { /* Properties of type `const char *' */ POWER_SUPPLY_ATTR(model_name), POWER_SUPPLY_ATTR(manufacturer), POWER_SUPPLY_ATTR(serial_number), POWER_SUPPLY_ATTR(battery_type), POWER_SUPPLY_ATTR(cycle_counts), POWER_SUPPLY_ATTR(serial_number), }; static struct attribute * Loading include/linux/power_supply.h +5 −1 Original line number Diff line number Diff line Loading @@ -338,9 +338,13 @@ enum power_supply_property { /* Properties of type `const char *' */ POWER_SUPPLY_PROP_MODEL_NAME, POWER_SUPPLY_PROP_MANUFACTURER, POWER_SUPPLY_PROP_SERIAL_NUMBER, POWER_SUPPLY_PROP_BATTERY_TYPE, POWER_SUPPLY_PROP_CYCLE_COUNTS, /* * Add local extensions for properties with string values between * MODEL_NAME and SERIAL_NUMBER. Don't add below SERIAL_NUMBER. */ POWER_SUPPLY_PROP_SERIAL_NUMBER, }; enum power_supply_type { Loading Loading
drivers/power/supply/power_supply_sysfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -465,9 +465,9 @@ static struct device_attribute power_supply_attrs[] = { /* Properties of type `const char *' */ POWER_SUPPLY_ATTR(model_name), POWER_SUPPLY_ATTR(manufacturer), POWER_SUPPLY_ATTR(serial_number), POWER_SUPPLY_ATTR(battery_type), POWER_SUPPLY_ATTR(cycle_counts), POWER_SUPPLY_ATTR(serial_number), }; static struct attribute * Loading
include/linux/power_supply.h +5 −1 Original line number Diff line number Diff line Loading @@ -338,9 +338,13 @@ enum power_supply_property { /* Properties of type `const char *' */ POWER_SUPPLY_PROP_MODEL_NAME, POWER_SUPPLY_PROP_MANUFACTURER, POWER_SUPPLY_PROP_SERIAL_NUMBER, POWER_SUPPLY_PROP_BATTERY_TYPE, POWER_SUPPLY_PROP_CYCLE_COUNTS, /* * Add local extensions for properties with string values between * MODEL_NAME and SERIAL_NUMBER. Don't add below SERIAL_NUMBER. */ POWER_SUPPLY_PROP_SERIAL_NUMBER, }; enum power_supply_type { Loading