From 7d969197cc37f663bd2b37c4343d49e3fd563f90 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 5 Nov 2013 16:54:57 +1100 Subject: [PATCH] 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 --- include/linux/input.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { } -- 2.39.5