mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
@@ -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 *);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user