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

Commit c472c2e0 authored by Ujwal Patel's avatar Ujwal Patel Committed by Matt Wagantall
Browse files

msm: mdss: send idle_time notification only if positive



User-land program can configure idle_time as zero when they want to
disable idle_time notifications. In the current implementation, driver
does not modify current idle timer if idle_time is zero but it may still
send the notification if the previous timer expires. Prevent this
notification if idle_time is set as zero.

Change-Id: Ib35b71a1f6c7f13f3efc28cf48a8c6bd6aaa0fa2
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent ea3ea3dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@ static void __mdss_fb_idle_notify_work(struct work_struct *work)

	/* Notify idle-ness here */
	pr_debug("Idle timeout %dms expired!\n", mfd->idle_time);
	if (mfd->idle_time)
		sysfs_notify(&mfd->fbi->dev->kobj, NULL, "idle_notify");
}