summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2025-02-19 05:42:02 +0300
committerLee Jones <lee@kernel.org>2025-02-20 18:48:35 +0300
commit2f372a5dce6885f1d2647f7add01756bee0fef49 (patch)
treedd6838faa71914aa968eb24fe87f24ae44ce05df /tools/perf/scripts/python/gecko.py
parent9ec336ba05f6786814696deef637ab2b9f6d0f10 (diff)
downloadlinux-2f372a5dce6885f1d2647f7add01756bee0fef49.tar.xz
leds: st1202: Refactor st1202_led_set() to use !! operator for boolean conversion
st1202_led_set function now uses the !! operator to convert the enum led_brightness() value to a boolean active state, which is then passed to the st1202_channel_set() function. This change maintains the existing functionality. cocci warnings: drivers/leds/leds-st1202.c:194:66-71: WARNING: conversion to bool not needed here. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202502181845.xESVrC61-lkp@intel.com/ Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Link: https://lore.kernel.org/r/tencent_3DF7518D407679C99C4CCCB1B8E64638700A@qq.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions