diff options
author | Kamil Debski <k.debski@samsung.com> | 2013-05-21 16:54:10 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:34:15 +0900 |
commit | e1f89ef21fa681c085979c8bbdc610ec0d2e18d7 (patch) | |
tree | 91ca94a962c3b1072701f8e9519fa81549a63e8f /drivers/misc/modem_if/modem_prj.h | |
parent | f0167e0799e45304621c5c7da6985d4e421f6a0f (diff) | |
download | linux-3.10-e1f89ef21fa681c085979c8bbdc610ec0d2e18d7.tar.gz linux-3.10-e1f89ef21fa681c085979c8bbdc610ec0d2e18d7.tar.bz2 linux-3.10-e1f89ef21fa681c085979c8bbdc610ec0d2e18d7.zip |
modem_if: ifdef wake_lock support in the modem driver
Wake_locks are not supported outside of Android so it is essential to
make their use optional.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/misc/modem_if/modem_prj.h')
-rw-r--r-- | drivers/misc/modem_if/modem_prj.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/modem_if/modem_prj.h b/drivers/misc/modem_if/modem_prj.h index 4780bef3676..d7ab4843687 100644 --- a/drivers/misc/modem_if/modem_prj.h +++ b/drivers/misc/modem_if/modem_prj.h @@ -20,7 +20,9 @@ #include <linux/miscdevice.h> #include <linux/skbuff.h> #include <linux/completion.h> +#ifdef CONFIG_HAS_WAKELOCK #include <linux/wakelock.h> +#endif #include <linux/rbtree.h> #include <linux/spinlock.h> #include <linux/types.h> @@ -351,7 +353,9 @@ struct io_device { struct modem_ctl *mc; struct modem_shared *msd; +#ifdef CONFIG_HAS_WAKELOCK struct wake_lock wakelock; +#endif long waketime; /* DO NOT use __current_link directly @@ -554,6 +558,8 @@ struct modem_ctl { #endif /*CONFIG_LTE_MODEM_CMC221*/ #if defined(CONFIG_MACH_GRANDE) struct delayed_work sim_det_dwork; +#ifdef CONFIG_HAS_WAKELOCK +#endif #endif /* For checking sim detect pin */ struct work_struct work; @@ -570,7 +576,9 @@ struct modem_ctl { struct io_device *bootd; /* Wakelock for modem_ctl */ +#ifdef CONFIG_HAS_WAKELOCK struct wake_lock mc_wake_lock; +#endif void (*gpio_revers_bias_clear)(void); void (*gpio_revers_bias_restore)(void); |