]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
input: CONFIG_INPUT_LEDS stubs should be static inline
authorJohn Crispin <blogic@openwrt.org>
Tue, 5 Nov 2013 05:54:57 +0000 (16:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:54:57 +0000 (16:54 +1100)
The following commit breaks compile when CONFIG_INPUT_LEDS is not selected.

commit 0eb6ee2db914ebb594cb9bc8ae97e3c362c3475a
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Oct 30 11:45:16 2013 +1100
input: route kbd LEDs through the generic LEDs layer

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/input.h

index eb0504a58b547b7d9991ba47c45ef4faa311b3f2..18a066f257785ce8b66334807b94e921b8538c13 100644 (file)
@@ -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)
 {
 }