aboutsummaryrefslogtreecommitdiff
path: root/fs/sysv
diff options
context:
space:
mode:
authorGravatar Andy Shevchenko <andriy.shevchenko@linux.intel.com> 2023-11-03 21:53:08 +0200
committerGravatar Lee Jones <lee@kernel.org> 2023-12-13 11:28:37 +0000
commit7d6766f5377686b871ab52c564327718ece233ad (patch)
treee2a999c93fcab3c39f318821e26e3707ffa576d0 /fs/sysv
parentleds: trigger: gpio: Replace custom code for gpiod_get_optional() (diff)
downloadlinux-7d6766f5377686b871ab52c564327718ece233ad.tar.gz
linux-7d6766f5377686b871ab52c564327718ece233ad.tar.bz2
linux-7d6766f5377686b871ab52c564327718ece233ad.zip
leds: trigger: gpio: Convert to use kstrtox()
sscanf() is a heavy one and moreover requires additional boundary checks. Convert driver to use kstrtou8() in gpio_trig_inverted_store(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20231103195310.948327-2-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions