Tag: f165a66e16f0aa8270ec4a26fdb07606eb7d6ae3

leds: lp8788: Use devm_led_classdev_register

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove platform_set_drvdata in probe function and the remove function, lp8788_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifier p, probefn, removefn; @@ …

Continue reading