diff options
author | Heiko Stübner <heiko@sntech.de> | 2012-02-01 09:12:24 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-02-01 09:13:11 -0800 |
commit | b18db3d91234c03ad080d317878c7c77672ba326 (patch) | |
tree | acaa0def1723509f0c77d772071bb0a783525b22 /include/linux/gpio_keys.h | |
parent | 42f578741bc59dc871bef03ff0f72dd197388409 (diff) | |
download | op-kernel-dev-b18db3d91234c03ad080d317878c7c77672ba326.zip op-kernel-dev-b18db3d91234c03ad080d317878c7c77672ba326.tar.gz |
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>
Diffstat (limited to 'include/linux/gpio_keys.h')
-rw-r--r-- | include/linux/gpio_keys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h index b5ca4b2..004ff33 100644 --- a/include/linux/gpio_keys.h +++ b/include/linux/gpio_keys.h @@ -1,6 +1,8 @@ #ifndef _GPIO_KEYS_H #define _GPIO_KEYS_H +struct device; + struct gpio_keys_button { /* Configuration parameters */ unsigned int code; /* input event code (KEY_*, SW_*) */ |