blob: 2e34afab65e4ae187b12897fce1dd68b64955f87 [file] [log] [blame]
Arve Hjønnevågb172e892008-11-21 21:47:23 -08001/*
2 * include/linux/keyreset.h - platform data structure for resetkeys driver
3 *
Daniel Rosenberg6e926972014-05-07 14:17:47 -07004 * Copyright (C) 2014 Google, Inc.
Arve Hjønnevågb172e892008-11-21 21:47:23 -08005 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16
17#ifndef _LINUX_KEYRESET_H
18#define _LINUX_KEYRESET_H
19
20#define KEYRESET_NAME "keyreset"
21
22struct keyreset_platform_data {
23 int (*reset_fn)(void);
Daniel Rosenberg6e926972014-05-07 14:17:47 -070024 int key_down_delay;
Arve Hjønnevågb172e892008-11-21 21:47:23 -080025 int *keys_up;
26 int keys_down[]; /* 0 terminated */
27};
28
29#endif /* _LINUX_KEYRESET_H */