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

Commit be88a07a authored by Ke Liu's avatar Ke Liu
Browse files

power: bq28400: update batt_psy.name to avoid conflict



Currently, batt_psy.name is set to "battery" which results in registration
conflict with other charger driver, like smb350. Hence update batt_psy.name
to "bq28400_battery" to avoid registration conflict. Also,
change batt_psy.type to POWER_SUPPLT_TYPE_BMS which matches the fuel gauge
part.

Change-Id: I01badfabe572889db5292fa69670e1ad9062b756
Signed-off-by: default avatarKe Liu <keliu@codeaurora.org>
parent c8100225
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -794,8 +794,8 @@ static int bq28400_register_psy(struct bq28400_device *bq28400_dev)
{
	int ret;

	bq28400_dev->batt_psy.name = "battery";
	bq28400_dev->batt_psy.type = POWER_SUPPLY_TYPE_BATTERY;
	bq28400_dev->batt_psy.name = "bq28400_battery";
	bq28400_dev->batt_psy.type = POWER_SUPPLY_TYPE_BMS;
	bq28400_dev->batt_psy.num_supplicants = 0;
	bq28400_dev->batt_psy.properties = pm_power_props;
	bq28400_dev->batt_psy.num_properties = ARRAY_SIZE(pm_power_props);