summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2012-02-01 09:12:24 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-02-01 09:13:11 -0800
commitb18db3d91234c03ad080d317878c7c77672ba326 (patch)
treeacaa0def1723509f0c77d772071bb0a783525b22 /include/linux
parent42f578741bc59dc871bef03ff0f72dd197388409 (diff)
downloadlinux-b18db3d91234c03ad080d317878c7c77672ba326.tar.gz
linux-b18db3d91234c03ad080d317878c7c77672ba326.tar.bz2
linux-b18db3d91234c03ad080d317878c7c77672ba326.zip
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')
-rw-r--r--include/linux/gpio_keys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h
index b5ca4b2c08ec..004ff33ab38e 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_*) */