summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-01-17 09:55:36 +0800
committerAlan Tull <alan.tull@freescale.com>2011-02-03 16:37:55 -0600
commit931f40446608cb4f3f7dda5ba0677854bea6a829 (patch)
tree394af7212f095aa2f16029db59068f1a3e39e711 /include
parentec2b11c9a26229edd62aa83b72881884b9ca5db1 (diff)
ENGR00136874-1 pwrkey: enhance the driver to support key press status
Add get keypad press status callback and desired send key value to the platform data. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/powerkey.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/powerkey.h b/include/linux/powerkey.h
index b59cb69c31ed..f947a51e9595 100644
--- a/include/linux/powerkey.h
+++ b/include/linux/powerkey.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* This program is free software; you can redistribute it and/or modify
@@ -19,12 +19,12 @@
#ifndef POWER_KEY_H
#define POWER_KEY_H
-typedef void (*key_press_call_back)(void *);
-typedef void (*register_key_press_call_back)(key_press_call_back, void *);
+typedef void (*pwrkey_callback)(void *);
struct power_key_platform_data {
- register_key_press_call_back register_key_press_handler;
- void *param; /* param of the handler */
+ int key_value;
+ void (*register_pwrkey) (pwrkey_callback);
+ int (*get_key_status) (int);
};
#endif /* POWER_KEY_H */