summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorMatheus Silveira <matheus.feitosa@usp.br>2026-05-28 21:55:12 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-31 13:01:51 +0300
commit40d7dc96cf14e2e37fb9501e7d25fde10b858596 (patch)
treed598118249f944791f05946826e854d61a0c543b /scripts/checkstack.pl
parent36862727e0079f8edcb2869d994a0d394513d857 (diff)
downloadlinux-40d7dc96cf14e2e37fb9501e7d25fde10b858596.tar.xz
light: tsl2591: simplify tsl2591_persist functions via lookup table
Replace switch statements with an indexed lookup table for persist cycle conversions. Both functions contain redundant switch statements. This reduces code duplication and makes future updates to TSL2591_PRST_ALS_INT_CYCLE_* definitions easier to maintain by keeping the mapping in a single place. Signed-off-by: Matheus Silveira <matheus.feitosa@usp.br> Co-developed-by: Lucas Rabaquim <lucas.rabaquim@usp.br> Signed-off-by: Lucas Rabaquim <lucas.rabaquim@usp.br> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions