commit | 96a30960a2c5246c8ffebe8a3c9031f9df094d97 | [log] [tgz] |
---|---|---|
author | Zhen Lei <thunder.leizhen@huawei.com> | Sat May 15 11:06:46 2021 +0800 |
committer | Pavel Machek <pavel@ucw.cz> | Wed Jun 23 22:14:39 2021 +0200 |
tree | 1197275ba909da4c0e28c71690a155bf20f6ae58 | |
parent | 9d0150db97583cfbb6b44cbe02241a1a48f90210 [diff] |
leds: as3645a: Fix error return code in as3645a_parse_node() Return error code -ENODEV rather than '0' when the indicator node can not be found. Fixes: a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver") Reported-by: Hulk Robot <hulkci@huawei.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>