Commit b18db3d9 authored by Heiko Stübner's avatar Heiko Stübner Committed by Dmitry Torokhov

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: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 42f57874
#ifndef _GPIO_KEYS_H #ifndef _GPIO_KEYS_H
#define _GPIO_KEYS_H #define _GPIO_KEYS_H
struct device;
struct gpio_keys_button { struct gpio_keys_button {
/* Configuration parameters */ /* Configuration parameters */
unsigned int code; /* input event code (KEY_*, SW_*) */ unsigned int code; /* input event code (KEY_*, SW_*) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment