diff options
Diffstat (limited to 'include/linux/powerkey.h')
-rw-r--r-- | include/linux/powerkey.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/powerkey.h b/include/linux/powerkey.h new file mode 100644 index 000000000000..f947a51e9595 --- /dev/null +++ b/include/linux/powerkey.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved. + */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#ifndef POWER_KEY_H +#define POWER_KEY_H + +typedef void (*pwrkey_callback)(void *); + +struct power_key_platform_data { + int key_value; + void (*register_pwrkey) (pwrkey_callback); + int (*get_key_status) (int); +}; + +#endif /* POWER_KEY_H */ |