Lots of drivers still register with the LED Class using init_data. Let's
provide some additional Kunit infrastructure to exercise the various
possibilities.
Change log:
v1 => v2:
- Use devm_* to ensure resources are cleaned-up on exit
Lee Jones (5):
leds: led-test: Move common LED class registration code into helper
function
leds: led-test: Provide test for registration with missing
default_label
leds: led-test: Provide test for registration with missing devicename
leds: led-test: Provide test for registration with a name that is too
long
leds: led-test: Provide test for successful registration using
init_data
drivers/leds/led-test.c | 86 ++++++++++++++++++++++++++++++++++++++---
1 file changed, 80 insertions(+), 6 deletions(-)