]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - include/linux/leds.h
leds: unify the location of led-trigger API
authorJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 28 Apr 2015 07:18:41 +0000 (00:18 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 4 May 2015 18:05:55 +0000 (11:05 -0700)
commit20f56758b04364c3c139edbffde8cfaf0307edee
tree008d277afbe62debce879ea1f222928a4b8f8e95
parent0e14e0bfe85dd22ba19446bdfdc2cf0e941b9731
leds: unify the location of led-trigger API

Part of led-trigger API was in the private drivers/leds/leds.h header.
Move it to the include/linux/leds.h header to unify the API location
and announce it as public. It has been already exported from
led-triggers.c with EXPORT_SYMBOL_GPL macro. The no-op definitions are
changed from macros to inline to match the style of the surrounding code.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds.h
include/linux/leds.h