The userspace should be updated periodically to update it with the charging progress. Create a delayed_work and schedule it every update_time milliseconds to notify the userspace that power supply changed. The userspace is then supposed to read the power supply properties and know about the charging progress. CRs-Fixed: 305572 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>