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>
#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)
{
}