Re: [PATCH] Fix build without CONFIG_INPUT_LEDS [Was: mmotm2013-10-29-16-22 uploaded (input)]
From: Stephen Rothwell
Date: Wed Oct 30 2013 - 19:28:14 EST
Hi Andrew,
On Wed, 30 Oct 2013 16:23:34 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> It needs this as well.
>
> From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Subject: input-route-kbd-leds-through-the-generic-leds-layer-fix-fix
>
> use IS_ENABLED to pick up CONFIG_INPUT_LEDS=m
>
> Cc: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> Cc: John Crispin <blogic@xxxxxxxxxxx>
> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
> Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
>
> include/linux/input.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN include/linux/input.h~input-route-kbd-leds-through-the-generic-leds-layer-fix-fix include/linux/input.h
> --- a/include/linux/input.h~input-route-kbd-leds-through-the-generic-leds-layer-fix-fix
> +++ a/include/linux/input.h
> @@ -533,7 +533,7 @@ int input_ff_erase(struct input_dev *dev
> int input_ff_create_memless(struct input_dev *dev, void *data,
> int (*play_effect)(struct input_dev *, void *, struct ff_effect *));
>
> -#ifdef CONFIG_INPUT_LEDS
> +#if IS_ENABLED(CONFIG_INPUT_LEDS)
>
> int input_led_connect(struct input_dev *dev);
> void input_led_disconnect(struct input_dev *dev);
Added.
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
Attachment:
pgp00000.pgp
Description: PGP signature