Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3732b122 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: power_supply: Add POWER_SUPPLY_PROP_BATTERY_TYPE property



This property indicates the type of battery as a string.
It provides specific battery details.

Change-Id: I87157d6ae8d3bcbd7b5981a8334cf29318415ec6
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent cc38f099
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -207,6 +207,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(model_name),
	POWER_SUPPLY_ATTR(manufacturer),
	POWER_SUPPLY_ATTR(serial_number),
	POWER_SUPPLY_ATTR(battery_type),
};

static struct attribute *
+1 −0
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_MODEL_NAME,
	POWER_SUPPLY_PROP_MANUFACTURER,
	POWER_SUPPLY_PROP_SERIAL_NUMBER,
	POWER_SUPPLY_PROP_BATTERY_TYPE,
};

enum power_supply_type {