summaryrefslogtreecommitdiff
path: root/include/linux/via-core.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-10-28 18:23:01 +0100
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2010-11-09 16:17:02 +0000
commit751305d9b2fd3e03eaab7808e976241d85ca4353 (patch)
tree93a78e80739f07a225fe35da11eafa1ab71e936c /include/linux/via-core.h
parent51f4332bb5fef869e8a89895a7bac6b4c03b4946 (diff)
viafb: General power management infrastructure
Multiple devices need S/R hooks (framebuffer, GPIO, camera). Add infrastructure and convert existing framebuffer code to the new model. This patch should create no functional change. Based on earlier work by Jonathan Corbet. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
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 7ffb521e1a7a..a4327a0c8efc 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.
*/