Le 01/04/2024 à 23:23, André Apitzsch via B4 Relay a écrit :
From: André Apitzsch <git@xxxxxxxxxxx> Add support for SY7802 flash LED controller. It can support up to 1.8A flash current. Signed-off-by: André Apitzsch <git@xxxxxxxxxxx> --- drivers/leds/flash/Kconfig | 11 + drivers/leds/flash/Makefile | 1 + drivers/leds/flash/leds-sy7802.c | 532 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 544 insertions(+)
...
+static int sy7802_led_register(struct device *dev, struct sy7802_led *led, + struct device_node *np) +{ + struct led_init_data init_data = {}; + int ret; + + init_data.fwnode = of_fwnode_handle(np); + + ret = devm_led_classdev_flash_register_ext(dev, &led->flash, &init_data); + if (ret) { + dev_err(dev, "Couldn't register flash %d\n", led->led_no); + return ret; + } + + return ret;
Hi, Nitpick: return 0; CJ
+}