led: core: Initialize blink_next_event with 0
A simpler way to make pattern to trigger immediately is to initialize
blink_next_event to 0 instead of current time value. Save a function
call and convert the code to do just that.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d2184ff commit 95bcdb4fcb2601499bd853a7cd295fe48c1b62c0
@Andrey Smirnov Andrey Smirnov authored on 7 Dec 2018
Sascha Hauer committed on 10 Dec 2018
Showing 1 changed file
View
drivers/led/core.c