summaryrefslogtreecommitdiff
path: root/include/linux/via-core.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-11-10 06:04:41 +0300
committerPaul Mundt <lethal@linux-sh.org>2010-11-10 06:04:41 +0300
commitdc7c0b6a6d28b0de231728de963ed53a9cee85cf (patch)
treee7d4deeaba1ea8f905f1bb2be42cc47b4441eb97 /include/linux/via-core.h
parentd6ff7d0fe22cdf3ea41c48b50da9a9181500d1bf (diff)
parentb884a94ed16d1a633e76f80fb1bd75d0e7373ce3 (diff)
downloadlinux-dc7c0b6a6d28b0de231728de963ed53a9cee85cf.tar.xz
Merge branch 'viafb-next' of git://github.com/schandinat/linux-2.6
Diffstat (limited to 'include/linux/via-core.h')
-rw-r--r--include/linux/via-core.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/via-core.h b/include/linux/via-core.h
index 38bffd8ccca5..9c21cdf3e3b3 100644
--- a/include/linux/via-core.h
+++ b/include/linux/via-core.h
@@ -60,6 +60,21 @@ struct via_port_cfg {
};
/*
+ * Allow subdevs to register suspend/resume hooks.
+ */
+#ifdef CONFIG_PM
+struct viafb_pm_hooks {
+ struct list_head list;
+ int (*suspend)(void *private);
+ int (*resume)(void *private);
+ void *private;
+};
+
+void viafb_pm_register(struct viafb_pm_hooks *hooks);
+void viafb_pm_unregister(struct viafb_pm_hooks *hooks);
+#endif /* CONFIG_PM */
+
+/*
* This is the global viafb "device" containing stuff needed by
* all subdevs.
*/