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

Commit df810e3a authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: qpnp-smb5: Make DC input_voltage_regulation writeable



Enable userspace to change DC's input_voltage_regulation.

Change-Id: I79222ebbdcdbadaf80db12178e89879f618828ca
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent a43a8828
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1391,15 +1391,14 @@ static int smb5_dc_set_prop(struct power_supply *psy,
static int smb5_dc_prop_is_writeable(struct power_supply *psy,
		enum power_supply_property psp)
{
	int rc;

	switch (psp) {
	case POWER_SUPPLY_PROP_INPUT_VOLTAGE_REGULATION:
		return 1;
	default:
		rc = 0;
		break;
	}

	return rc;
	return 0;
}

static const struct power_supply_desc dc_psy_desc = {