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

Commit 481e4253 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Harry Yang
Browse files

qcom: qnovo: fix the enable reporting



Currently the enable voter returns 1 when its actually disabled and 0
when its actually enabled.

Fix this reverse logic.

Change-Id: I9f916bd3d30b9d6d89162e0175e4b90e6c0b6f0a
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent fb4997cb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -630,6 +630,7 @@ static ssize_t enable_show(struct class *c, struct class_attribute *attr,
	int val;

	val = get_client_vote(chip->disable_votable, USER_VOTER);
	val = !val;
	return snprintf(ubuf, PAGE_SIZE, "%d\n", val);
}