Skip to content

Commit

Permalink
Input: gpio_keys - fix struct device declared inside parameter list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Stübner authored and Dmitry Torokhov committed Feb 1, 2012
1 parent 42f5787 commit b18db3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/gpio_keys.h
Original file line number Diff line number Diff line change
@@ -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_*) */
Expand Down

0 comments on commit b18db3d

Please sign in to comment.