summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c')
-rwxr-xr-xANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c76
1 files changed, 0 insertions, 76 deletions
diff --git a/ANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c b/ANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c
deleted file mode 100755
index 5b68fde8..00000000
--- a/ANDROID_3.4.5/drivers/net/wireless/eagle/esp_pm.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2010 -2013 Espressif System.
- *
- */
-#ifdef CONFIG_HAS_WAKELOCK
-#include <linux/wakelock.h>
-#endif
-#ifdef CONFIG_HAS_EARLYSUSPEND
-#include <linux/earlysuspend.h>
-#endif
-#include "esp_pub.h"
-
-#ifdef CONFIG_HAS_EARLYSUSPEND
-
-static void esp_early_suspend(struct early_suspend *h)
-{
- printk("%s\n", __func__);
-}
-
-static void esp_late_resume(struct early_suspend*h)
-{
- printk("%s\n", __func__);
-}
-
-static struct early_suspend esp_early_suspend_ctrl = {
- .suspend = esp_early_suspend,
- .resume = esp_late_resume,
- .level = EARLY_SUSPEND_LEVEL_BLANK_SCREEN - 20,
-};
-#endif /* EARLYSUSPEND */
-
-void esp_register_early_suspend(void)
-{
-#ifdef CONFIG_HAS_EARLYSUSPEND
- register_early_suspend(&esp_early_suspend_ctrl);
-#endif
-}
-
-void esp_unregister_early_suspend(void)
-{
-#ifdef CONFIG_HAS_EARLYSUSPEND
- unregister_early_suspend(&esp_early_suspend_ctrl);
-#endif
-}
-
-#ifdef CONFIG_HAS_WAKELOCK
-static struct wake_lock esp_wake_lock_;
-#endif /* WAKELOCK */
-
-void esp_wakelock_init(void)
-{
-#ifdef CONFIG_HAS_WAKELOCK
- wake_lock_init(&esp_wake_lock_, WAKE_LOCK_SUSPEND, "eagle");
-#endif
-}
-
-void esp_wakelock_destroy(void)
-{
-#ifdef CONFIG_HAS_WAKELOCK
- wake_lock_destroy(&esp_wake_lock_);
-#endif
-}
-
-void esp_wake_lock(void)
-{
-#ifdef CONFIG_HAS_WAKELOCK
- wake_lock(&esp_wake_lock_);
-#endif
-}
-
-void esp_wake_unlock(void)
-{
-#ifdef CONFIG_HAS_WAKELOCK
- wake_unlock(&esp_wake_lock_);
-#endif
-}