leds: core: add OF variants of LED registering functions
authorRafał Miłecki <rafal@milecki.pl>
Mon, 6 Mar 2017 05:19:44 +0000 (06:19 +0100)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Wed, 8 Mar 2017 20:10:01 +0000 (21:10 +0100)
commit442c609830e98919faa78b797e9b89c53bab9cbf
tree80c777f7864a0477d5fd64b4fc24b71f776c0a52
parentab768386116d0d88b944d0ef958adff082c088a8
leds: core: add OF variants of LED registering functions

These new functions allow passing an additional device_node argument
that will be internally set for created LED device. Thanks to this LED
core code and triggers will be able to access DT node for reading extra
info.

The easiest solution for achieving this was reworking old functions to
more generic ones & adding simple defines for API compatibility.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/led-class.c
include/linux/leds.h