Thread (2 messages) flat view 2 messages, 2 authors, 2014-02-03

Re: [PATCH v5 08/14] ahci-platform: "Library-ise" suspend / resume functionality

From: Arnd Bergmann <arnd@arndb.de>
Date: 2014-02-03 14:53:45
Also in: linux-arm-kernel, linux-devicetree

Possibly related (same subject, not in this thread)

On Wednesday 22 January 2014, Hans de Goede wrote:
quoted hunk ↗ jump to hunk
--- a/include/linux/ahci_platform.h
+++ b/include/linux/ahci_platform.h
@@ -50,4 +50,11 @@ int ahci_platform_init_host(struct platform_device *pdev,
                            unsigned int force_port_map,
                            unsigned int mask_port_map);
 
+#ifdef CONFIG_PM_SLEEP
+int ahci_platform_suspend_host(struct device *dev);
+int ahci_platform_resume_host(struct device *dev);
+int ahci_platform_suspend(struct device *dev);
+int ahci_platform_resume(struct device *dev);
+#endif
+
Not sure if the #ifdef does any good here. Normally, we don't hide declarations
so we can do stuff like

	if (IS_ENABLED(CONFIG_PM_SLEEP))
		ret = ahci_platform_suspend_host(dev);

and expect the code to compile and link just fine.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help