Re: [PATCH] leds: Replace {devm_}led_classdev_register() macros with inlines

2019-08-27 Thread Jacek Anaszewski
On 8/27/19 1:31 PM, Pavel Machek wrote: > On Mon 2019-08-26 23:02:19, Jacek Anaszewski wrote: >> 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

Re: [PATCH] leds: Replace {devm_}led_classdev_register() macros with inlines

2019-08-27 Thread Pavel Machek
On Mon 2019-08-26 23:02:19, Jacek Anaszewski wrote: > 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

[PATCH] leds: Replace {devm_}led_classdev_register() macros with inlines

2019-08-26 Thread Jacek Anaszewski
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)