diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-09-06 10:51:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-06 10:51:57 -0400 |
commit | 7f79d852ed30a06eebf7497afe9334a726db3d40 (patch) | |
tree | 0057281f17501b635d3d88cda9a14203706f5dcc /drivers/media/radio/radio-maxiradio.c | |
parent | aef745fca016aea45adae5c98e8698904dd8ad51 (diff) | |
parent | 70bb08962ea9bd50797ae9f16b2493f5f7c65053 (diff) |
Merge branch 'linus' into sched/devel
Diffstat (limited to 'drivers/media/radio/radio-maxiradio.c')
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 43c75497dc49..0cc6fcb041fd 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", |
@@ -410,7 +410,7 @@ static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_d | |||
410 | mutex_init(&radio_unit.lock); | 410 | mutex_init(&radio_unit.lock); |
411 | maxiradio_radio.priv = &radio_unit; | 411 | maxiradio_radio.priv = &radio_unit; |
412 | 412 | ||
413 | if (video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr)==-1) { | 413 | if (video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr) < 0) { |
414 | printk("radio-maxiradio: can't register device!"); | 414 | printk("radio-maxiradio: can't register device!"); |
415 | goto err_out_free_region; | 415 | goto err_out_free_region; |
416 | } | 416 | } |