diff options
author | Jean-Jacques Hiblot <jjhiblot@traphandler.com> | 2023-07-28 18:37:28 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-08-17 11:00:06 +0300 |
commit | afb48153220d35f330d0d979792920a31f7d9a81 (patch) | |
tree | 54ce29822b21abc872002ab3ac0d4b96bc312965 /Documentation/ABI | |
parent | 179507fcd5e448eaecae9b69f0fb30965c3c4466 (diff) | |
download | linux-afb48153220d35f330d0d979792920a31f7d9a81.tar.xz |
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 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions