aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorChiaEn Wu <[email protected]>2024-04-09 18:21:54 +0800
committerLee Jones <[email protected]>2024-04-12 09:47:17 +0100
commitfd05e3698649f253db5476929675a8cd954cb2b8 (patch)
tree1a14b0b7d6162a9b9f0a0f026c6729930b70b8c9 /tools/perf/util/trace-event-scripting.c
parentfc3b23faa14371182ca8a3806854f0db827cb91f (diff)
leds: mt6360: Fix the second LED can not enable torch mode by V4L2
V4L2 will disable strobe mode of the LED device when enable torch mode, but this logic will conflict with the "priv->fled_torch_used" in "mt6360_strobe_set()". So after enabling torch mode of the first LED, the second LED will not be able to enable torch mode correctly. Therefore, at the beginning of "mt6360_strobe_set()", check whether the state of the upcoming change and the current LED device state are the same, so as to avoid the above problem. Signed-off-by: ChiaEn Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions