aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2012-07-13 08:57:17 -0400
committerAndres Salomon <dilinger@queued.net>2012-07-31 23:27:30 -0400
commitac2504151f5af27bbf0c0362b7da5951e05dfc43 (patch)
tree21e163290e4e35e9151d50f90e58ce8c066c2f3c /include
parent3d26c20bae9e97c98f7240184427d3a38515d406 (diff)
Platform: OLPC: turn EC driver into a platform_driver
The 1.75-based OLPC EC driver already does this; let's do it for all EC drivers. This gives us nice suspend/resume hooks, amongst other things. We want to run the EC's suspend hooks later than other drivers (which may be setting wakeup masks or be running EC commands). We also want to run the EC's resume hooks earlier than other drivers (which may want to run EC commands). Signed-off-by: Andres Salomon <dilinger@queued.net> Acked-by: Paul Fox <pgf@laptop.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/olpc-ec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/olpc-ec.h b/include/linux/olpc-ec.h
index 231e96f5dfe2..5bb6e760aa61 100644
--- a/include/linux/olpc-ec.h
+++ b/include/linux/olpc-ec.h
@@ -14,7 +14,13 @@
14#define EC_SCI_QUERY 0x84 14#define EC_SCI_QUERY 0x84
15#define EC_EXT_SCI_QUERY 0x85 15#define EC_EXT_SCI_QUERY 0x85
16 16
17struct platform_device;
18
17struct olpc_ec_driver { 19struct olpc_ec_driver {
20 int (*probe)(struct platform_device *);
21 int (*suspend)(struct platform_device *);
22 int (*resume)(struct platform_device *);
23
18 int (*ec_cmd)(u8, u8 *, size_t, u8 *, size_t, void *); 24 int (*ec_cmd)(u8, u8 *, size_t, u8 *, size_t, void *);
19}; 25};
20 26