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

Commit 9259dd4f authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: smb5-lib: Query FLASH_TRIGGER only for PMI632



The FLASH_TRIGGER property is supported only on PMI632, add
a check for it.

Change-Id: I269b0be18b56d56c0ab0e68ee1d7194d09824dd3
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 7a55aabe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1283,6 +1283,8 @@ static int smb5_usb_main_get_prop(struct power_supply *psy,
		val->intval = chg->flash_active;
		break;
	case POWER_SUPPLY_PROP_FLASH_TRIGGER:
		val->intval = 0;
		if (chg->chg_param.smb_version == PMI632_SUBTYPE)
			rc = schgm_flash_get_vreg_ok(chg, &val->intval);
		break;
	case POWER_SUPPLY_PROP_TOGGLE_STAT: