From: John Crispin Date: Tue, 5 Nov 2013 05:54:57 +0000 (+1100) Subject: input: CONFIG_INPUT_LEDS stubs should be static inline X-Git-Tag: next-20131105~2^2~319 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d969197cc37f663bd2b37c4343d49e3fd563f90;p=karo-tx-linux.git input: CONFIG_INPUT_LEDS stubs should be static inline The following commit breaks compile when CONFIG_INPUT_LEDS is not selected. commit 0eb6ee2db914ebb594cb9bc8ae97e3c362c3475a Author: Samuel Thibault Date: Wed Oct 30 11:45:16 2013 +1100 input: route kbd LEDs through the generic LEDs layer Signed-off-by: John Crispin Cc: Ralf Baechle Cc: Samuel Thibault Cc: Dmitry Torokhov Signed-off-by: Andrew Morton --- diff --git a/include/linux/input.h b/include/linux/input.h index eb0504a58b54..18a066f25778 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -540,12 +540,12 @@ void input_led_disconnect(struct input_dev *dev); #else -int input_led_connect(struct input_dev *dev) +static inline int input_led_connect(struct input_dev *dev) { return 0; } -void input_led_disconnect(struct input_dev *dev) +static inline void input_led_disconnect(struct input_dev *dev) { }