OSDN Git Service

leds: Replace {devm_}led_classdev_register() macros with inlines
authorJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 26 Aug 2019 20:34:42 +0000 (22:34 +0200)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Sun, 1 Sep 2019 11:33:16 +0000 (13:33 +0200)
commit7c322056e3564da1b5bdc3f3cb79229582955eb2
treecc1db40614e273681f68a91f1bfa7abd9483e0a7
parent1dbb9fb4082ce2a2f1cf9596881ddece062d15d0
leds: Replace {devm_}led_classdev_register() macros with inlines

Replace preprocessor macro aliases for legacy LED registration helpers
with inline functions. It will allow to avoid misleading compiler error
messages about missing symbol that actually wasn't explicitly used
in the code. It used to occur when CONFIG_LEDS_CLASS was undefined
and legacy (non-ext) function had been used in the code.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
include/linux/leds.h