summaryrefslogtreecommitdiff
path: root/firmware/target/arm/sandisk/power-c200_e200.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/sandisk/power-c200_e200.c')
-rw-r--r--firmware/target/arm/sandisk/power-c200_e200.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/firmware/target/arm/sandisk/power-c200_e200.c b/firmware/target/arm/sandisk/power-c200_e200.c
index da86d97d26..40aa792dce 100644
--- a/firmware/target/arm/sandisk/power-c200_e200.c
+++ b/firmware/target/arm/sandisk/power-c200_e200.c
@@ -69,12 +69,14 @@ void ide_power_enable(bool on)
69} 69}
70 70
71#if CONFIG_TUNER 71#if CONFIG_TUNER
72
72/** Tuner **/ 73/** Tuner **/
73static bool powered = false; 74static bool powered = false;
74 75
75bool tuner_power_nolock(bool status) 76bool tuner_power(bool status)
76{ 77{
77 bool old_status; 78 bool old_status;
79 lv24020lp_lock();
78 80
79 old_status = powered; 81 old_status = powered;
80 82
@@ -128,16 +130,8 @@ bool tuner_power_nolock(bool status)
128 powered = status; 130 powered = status;
129 } 131 }
130 132
131 return old_status;
132}
133
134bool tuner_power(bool status)
135{
136 bool old_status;
137 lv24020lp_lock();
138 old_status = tuner_power_nolock(status);
139 lv24020lp_unlock(); 133 lv24020lp_unlock();
140 return old_status; 134 return old_status;
141} 135}
142 136
143#endif 137#endif /* CONFIG_TUNER */