diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-11-03 21:53:08 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-12-13 11:28:37 +0000 |
commit | 7d6766f5377686b871ab52c564327718ece233ad (patch) | |
tree | e2a999c93fcab3c39f318821e26e3707ffa576d0 /fs/sysfs | |
parent | leds: trigger: gpio: Replace custom code for gpiod_get_optional() (diff) | |
download | linux-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/sysfs')
0 files changed, 0 insertions, 0 deletions