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

Commit f2882d52 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 2b40de5e afd826f0
Loading
Loading
Loading
Loading
+2 −2
Original line number 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)
		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,