gpio_keys: fix struct device declared inside parameter list

A patch from »gpio_keys: fix struct device declared inside parameter list« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Thu, 12 Jan 2012 09:57:22 +0100

Commit-Message

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@...>

Patch-Comment

include/linux/gpio_keys.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

Statistics

  • 2 lines added
  • 0 lines removed

Changes

-------------------------- include/linux/gpio_keys.h ---------------------------
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_*) */
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...