Home
last modified time | relevance | path

Searched hist:"8 fd8f942" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/leds/
H A Dleds-ns2.c8fd8f942 Sat Sep 26 15:11:31 CDT 2020 Marek Behún <kabel@kernel.org> leds: ns2: do not guard OF match pointer with of_match_ptr

Do not match OF match pointer with of_match_ptr, so that even if
CONFIG_OF is disabled, the driver can still be bound via another method.

Move definition of of_ns2_leds_match just before ns2_led_driver
definition, since it is not needed sooner.

Signed-off-by: Marek Behún <kabel@kernel.org>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
8fd8f942 Sat Sep 26 15:11:31 CDT 2020 Marek Behún <kabel@kernel.org> leds: ns2: do not guard OF match pointer with of_match_ptr

Do not match OF match pointer with of_match_ptr, so that even if
CONFIG_OF is disabled, the driver can still be bound via another method.

Move definition of of_ns2_leds_match just before ns2_led_driver
definition, since it is not needed sooner.

Signed-off-by: Marek Behún <kabel@kernel.org>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>