Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: gpio_keys - fix struct device declared inside parameter list

A struct device parameter is used in the enable and disable callbacks to
distinguish between different gpio_keys devices.

Platforms that don't use these callbacks may not include struct device
at all, as seen on arch/arm/mach-s3c2410/mach-n30.c

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Heiko Stübner and committed by
Dmitry Torokhov
b18db3d9 42f57874

+2
+2
include/linux/gpio_keys.h
··· 1 1 #ifndef _GPIO_KEYS_H 2 2 #define _GPIO_KEYS_H 3 3 4 + struct device; 5 + 4 6 struct gpio_keys_button { 5 7 /* Configuration parameters */ 6 8 unsigned int code; /* input event code (KEY_*, SW_*) */