summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub.h
diff options
context:
space:
mode:
authorViditha Hanumanthareddy <ngjq36@motorola.com>2014-06-02 09:11:25 -0500
committerViditha Hanumanthareddy <ngjq36@motorola.com>2014-06-04 09:36:24 -0500
commit13994f358b36cf0482295fe3a38a1297c3916715 (patch)
tree4e91b74228f67c1f4d438d96d0d6c30ba98f75c2 /include/linux/m4sensorhub.h
parent312df65201da563be207d3c5b9a0ff06fd0c48be (diff)
downloadolio-linux-3.10-13994f358b36cf0482295fe3a38a1297c3916715.tar.xz
olio-linux-3.10-13994f358b36cf0482295fe3a38a1297c3916715.zip
IKXCLOCK-1762: Fix m4 panic handlers
Change-Id: I53820435227388c323d2beec6e678a94b674fff9
Diffstat (limited to 'include/linux/m4sensorhub.h')
-rw-r--r--include/linux/m4sensorhub.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/include/linux/m4sensorhub.h b/include/linux/m4sensorhub.h
index 2e0de82aa1b..c78c0914770 100644
--- a/include/linux/m4sensorhub.h
+++ b/include/linux/m4sensorhub.h
@@ -67,6 +67,11 @@ enum m4sensorhub_bootmode {
*/
enum m4sensorhub_panichdl_index {
PANICHDL_DISPLAY_RESTORE,
+ PANICHDL_HEARTRATE_RESTORE,
+ PANICHDL_PASSIVE_RESTORE,
+ PANICHDL_FUSION_RESTORE,
+ PANICHDL_ALS_RESTORE,
+ PANICHDL_MPU9150_RESTORE,
/*
* Please add enum before PANICHDL_IRQ_RESTORE
* to make sure IRQ restore will be called last.
@@ -89,16 +94,6 @@ struct init_calldata {
void *p_data;
};
-struct m4sensorhub_platform_data {
- int (*hw_init)(struct m4sensorhub_data *);
- void (*hw_free)(struct m4sensorhub_data *);
- void (*hw_reset)(struct m4sensorhub_data *);
- int (*set_bootmode)(struct m4sensorhub_data *,
- enum m4sensorhub_bootmode);
- int (*stillmode_exit)(void);
- int (*set_display_control)(int m4_ctrl, int gpio_mipi_mux);
-};
-
struct m4sensorhub_hwconfig {
int irq_gpio;
int reset_gpio;
@@ -113,7 +108,6 @@ struct m4sensorhub_data {
void *irqdata;
void *panicdata;
enum m4sensorhub_mode mode;
- struct m4sensorhub_platform_data *pdev;
struct m4sensorhub_hwconfig hwconfig;
char *filename;
u16 fw_version;