Re: [PATCH 1/2] leds: core: add struct device_node pointer to the struct led_classdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28 February 2017 at 22:20, Jacek Anaszewski
<jacek.anaszewski@xxxxxxxxx> wrote:
> Thanks for the patch. How about following what has been already
> done for spi, i.e. adding a wrapper of_led_classdev_register()
> (please refer to of_register_spi_device() in drivers/spi/spi.c)?

I like this idea, but I'll need to split led_classdev_register into
two functions: allocation & actual registering function. That way I
can alloc, then read DT proprties and finally register LED (just like
it's done in of_register_spi_device).

Does it sound OK?



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux