#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/sched.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
#include <linux/proc_fs.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/gpio_keys.h>
#include <linux/workqueue.h>
#include <linux/gpio.h>
#include <linux/of_platform.h>
#include <linux/of_gpio.h>
#include <linux/spinlock.h>
Go to the source code of this file.
|
| ATTR_SHOW_FN (keys, EV_KEY, false) |
|
| ATTR_SHOW_FN (switches, EV_SW, false) |
|
| ATTR_SHOW_FN (disabled_keys, EV_KEY, true) |
|
| ATTR_SHOW_FN (disabled_switches, EV_SW, true) |
|
| ATTR_STORE_FN (disabled_keys, EV_KEY) |
|
| ATTR_STORE_FN (disabled_switches, EV_SW) |
|
| late_initcall (gpio_keys_init) |
|
| module_exit (gpio_keys_exit) |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("Phil Blundell <[email protected]>") |
|
| MODULE_DESCRIPTION ("Keyboard driver for GPIOs") |
|
| MODULE_ALIAS ("platform:gpio-keys") |
|
#define ATTR_SHOW_FN |
( |
|
name, |
|
|
|
type, |
|
|
|
only_disabled |
|
) |
| |
Value:
\
return gpio_keys_attr_show_helper(ddata,
buf, \
}
Definition at line 254 of file gpio_keys.c.
Value:
\
error = gpio_keys_attr_store_helper(ddata,
buf,
type); \
if (error) \
\
}
Definition at line 280 of file gpio_keys.c.
ATTR_SHOW_FN |
( |
disabled_switches |
, |
|
|
EV_SW |
, |
|
|
true |
|
|
) |
| |
ATTR_STORE_FN |
( |
disabled_keys |
, |
|
|
EV_KEY |
|
|
) |
| |
ATTR_STORE_FN |
( |
disabled_switches |
, |
|
|
EV_SW |
|
|
) |
| |
late_initcall |
( |
gpio_keys_init |
| ) |
|
MODULE_ALIAS |
( |
"platform:gpio-keys" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Keyboard driver for GPIOs" |
| ) |
|
module_exit |
( |
gpio_keys_exit |
| ) |
|