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

Commit b3baca36 authored by Pranav Vashi's avatar Pranav Vashi
Browse files

fixup! power: supply: smb5: Properly opt-out from s/w based health reporting

parent 2f547cb3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2157,10 +2157,12 @@ static int smb5_usb_main_get_prop(struct power_supply *psy,
		break;
	/* Use this property to report SMB health */
	case POWER_SUPPLY_PROP_HEALTH:
#if defined(CONFIG_MACH_XIAOMI_VAYU) || defined(CONFIG_MACH_XIAOMI_NABU)
		if (chg->use_bq_pump) {
			rc = val->intval = -ENODATA;
			break;
		}
#endif
		rc = val->intval = smblib_get_prop_smb_health(chg);
		break;
	/* Use this property to report overheat status */