summaryrefslogtreecommitdiffstats
path: root/include/linux/olpc-ec.h
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2012-07-13 05:57:17 -0700
committerAndres Salomon <dilinger@queued.net>2012-07-31 23:27:30 -0400
commitac2504151f5af27bbf0c0362b7da5951e05dfc43 (patch)
tree21e163290e4e35e9151d50f90e58ce8c066c2f3c /include/linux/olpc-ec.h
parent3d26c20bae9e97c98f7240184427d3a38515d406 (diff)
downloadop-kernel-dev-ac2504151f5af27bbf0c0362b7da5951e05dfc43.zip
op-kernel-dev-ac2504151f5af27bbf0c0362b7da5951e05dfc43.tar.gz
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/linux/olpc-ec.h')
-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 231e96f..5bb6e76 100644
--- a/include/linux/olpc-ec.h
+++ b/include/linux/olpc-ec.h
@@ -14,7 +14,13 @@
#define EC_SCI_QUERY 0x84
#define EC_EXT_SCI_QUERY 0x85
+struct platform_device;
+
struct olpc_ec_driver {
+ int (*probe)(struct platform_device *);
+ int (*suspend)(struct platform_device *);
+ int (*resume)(struct platform_device *);
+
int (*ec_cmd)(u8, u8 *, size_t, u8 *, size_t, void *);
};
OpenPOWER on IntegriCloud