diff options
author | Jean-Jacques Hiblot <jjhiblot@traphandler.com> | 2023-07-28 17:37:28 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-08-17 09:00:06 +0100 |
commit | afb48153220d35f330d0d979792920a31f7d9a81 (patch) | |
tree | 54ce29822b21abc872002ab3ac0d4b96bc312965 /scripts/gdb/linux/stackdepot.py | |
parent | 179507fcd5e448eaecae9b69f0fb30965c3c4466 (diff) |
leds: Provide devm_of_led_get_optional()
Add an optional variant of devm_of_led_get(). It behaves the same as
devm_of_led_get() except where the LED doesn't exist. In this case,
instead of returning -ENOENT, the function returns NULL.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230728153731.3742339-2-jjhiblot@traphandler.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions