Re: [PATCH 1/2] leds: tlc591xx: simplify driver by using the managed led API

2019-07-05 Thread Pavel Machek
On Mon 2019-07-01 17:26:01, Jean-Jacques Hiblot wrote: > Use the managed API of the LED class (devm_led_classdev_register() > instead of led_classdev_register()). > This allows us to remove the code used to track-and-destroy the LED devices > > Signed-off-by: Jean-Jacques Hiblot ack. -- (engli

Re: [PATCH 1/2] leds: tlc591xx: simplify driver by using the managed led API

2019-07-01 Thread Dan Murphy
On 7/1/19 10:26 AM, Jean-Jacques Hiblot wrote: Use the managed API of the LED class (devm_led_classdev_register() instead of led_classdev_register()). This allows us to remove the code used to track-and-destroy the LED devices Signed-off-by: Jean-Jacques Hiblot --- drivers/leds/leds-tlc591x

[PATCH 1/2] leds: tlc591xx: simplify driver by using the managed led API

2019-07-01 Thread Jean-Jacques Hiblot
Use the managed API of the LED class (devm_led_classdev_register() instead of led_classdev_register()). This allows us to remove the code used to track-and-destroy the LED devices Signed-off-by: Jean-Jacques Hiblot --- drivers/leds/leds-tlc591xx.c | 81 ++-- 1 fil