diff options
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 43c75497dc49..e210da161566 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -156,28 +156,28 @@ static void set_freq(__u16 io, __u32 freq) | |||
156 | { | 156 | { |
157 | unsigned long int si; | 157 | unsigned long int si; |
158 | int bl; | 158 | int bl; |
159 | int data = FREQ2BITS(freq); | 159 | int val = FREQ2BITS(freq); |
160 | 160 | ||
161 | /* TEA5757 shift register bits (see pdf) */ | 161 | /* TEA5757 shift register bits (see pdf) */ |
162 | 162 | ||
163 | outbit(0,io); // 24 search | 163 | outbit(0, io); /* 24 search */ |
164 | outbit(1,io); // 23 search up/down | 164 | outbit(1, io); /* 23 search up/down */ |
165 | 165 | ||
166 | outbit(0,io); // 22 stereo/mono | 166 | outbit(0, io); /* 22 stereo/mono */ |
167 | 167 | ||
168 | outbit(0,io); // 21 band | 168 | outbit(0, io); /* 21 band */ |
169 | outbit(0,io); // 20 band (only 00=FM works I think) | 169 | outbit(0, io); /* 20 band (only 00=FM works I think) */ |
170 | 170 | ||
171 | outbit(0,io); // 19 port ? | 171 | outbit(0, io); /* 19 port ? */ |
172 | outbit(0,io); // 18 port ? | 172 | outbit(0, io); /* 18 port ? */ |
173 | 173 | ||
174 | outbit(0,io); // 17 search level | 174 | outbit(0, io); /* 17 search level */ |
175 | outbit(0,io); // 16 search level | 175 | outbit(0, io); /* 16 search level */ |
176 | 176 | ||
177 | si = 0x8000; | 177 | si = 0x8000; |
178 | for (bl = 1; bl <= 16 ; bl++) { | 178 | for (bl = 1; bl <= 16; bl++) { |
179 | outbit(data & si,io); | 179 | outbit(val & si, io); |
180 | si >>=1; | 180 | si >>= 1; |
181 | } | 181 | } |
182 | 182 | ||
183 | dprintk(1, "Radio freq set to %d.%02d MHz\n", | 183 | dprintk(1, "Radio freq set to %d.%02d MHz\n", |