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

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

power: qpnp-qnovo5: Echo back value written to standalone



The "standalone" class parameter which when read returns whether the
charge pumps are enabled or not. Change this to simply echo back the
value written to it by userspace.

Change-Id: Idb44d99967691b1cd3315004ea0b5f7034e8e376
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 2ca0af79
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -740,9 +740,9 @@ static ssize_t standalone_show(struct class *c, struct class_attribute *attr,
	if (!cp_disable_votable)
	if (!cp_disable_votable)
		return -ENODEV;
		return -ENODEV;


	val = get_effective_result(cp_disable_votable);
	val = get_client_vote(cp_disable_votable, QNOVO_VOTER);


	return scnprintf(ubuf, PAGE_SIZE, "%d\n", !val);
	return scnprintf(ubuf, PAGE_SIZE, "%d\n", val);
}
}


static ssize_t standalone_store(struct class *c, struct class_attribute *attr,
static ssize_t standalone_store(struct class *c, struct class_attribute *attr,