Skip to contentSkip to conversation

gpio_keys: fix struct device declared inside parameter list

PATCH Applied Heiko Stübner 2 participants 3 messages Jan 12, 2012 – Feb 3, 2012 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 include/linux/gpio_keys.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/gpio_keys.h +2 -0
index b5ca4b2..004ff33 100644
@@ -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_*) */
Signature · 1 line
1.7.5.4
#1 lore raw

Am Donnerstag 12 Januar 2012, 10:11:31 schrieb Heiko Stübner:

Quoted 7 lines

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

ping?

Thanks
Heiko
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 10 lines · Heiko Stübner

Am Donnerstag 12 Januar 2012, 10:11:31 schrieb Heiko Stübner:

Quoted 7 lines

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

ping?

Applied, thank you Heiko.

Signature · 5 lines
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html