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

Skip to content
Commit 12925847 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

backlight: qcom-spmi-wled: Expose max_avail_current for switch via sysfs



Currently, max_brightness for flash and torch devices in WLED
is calculated based on the full scale current (FSC) and number
of strings enabled. However, max_avail_current is determined
based on the battery parameters. Add a sysfs parameter for switch
device to show available maximum current. At present, this is
going to show the maximum brightness.

Change-Id: Ic0b5f5c52a13193e314b5d7f898128a81385200e
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 81b84a6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment