diff options
author | Michael Krufky <mkrufky@m1k.net> | 2006-01-23 14:11:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-23 14:11:11 -0500 |
commit | ab66b22f0c4e5786d59fa23569ac37a4a21ab4fb (patch) | |
tree | 293838829f957b2cf9194bdd4590bd1c7b668a74 | |
parent | 257c645d3dc90ee8b7c0640da8d9ea1b2cbe95c4 (diff) |
V4L/DVB (3435): rename cb variable names in tuner structures for global consistency
- rename cb variable names in tuner structures for global consistency
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.h | 4 | ||||
-rw-r--r-- | drivers/media/video/tuner-simple.c | 40 |
3 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index 4dcb6050d4fa..cd8f28275ed6 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c | |||
@@ -391,8 +391,8 @@ int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf, | |||
391 | div = (freq + desc->entries[i].offset) / desc->entries[i].stepsize; | 391 | div = (freq + desc->entries[i].offset) / desc->entries[i].stepsize; |
392 | buf[0] = div >> 8; | 392 | buf[0] = div >> 8; |
393 | buf[1] = div & 0xff; | 393 | buf[1] = div & 0xff; |
394 | buf[2] = desc->entries[i].cb1; | 394 | buf[2] = desc->entries[i].config; |
395 | buf[3] = desc->entries[i].cb2; | 395 | buf[3] = desc->entries[i].cb; |
396 | 396 | ||
397 | if (desc->setbw) | 397 | if (desc->setbw) |
398 | desc->setbw(buf, freq, bandwidth); | 398 | desc->setbw(buf, freq, bandwidth); |
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h index bb8d4b4eb183..872e3b4c1396 100644 --- a/drivers/media/dvb/frontends/dvb-pll.h +++ b/drivers/media/dvb/frontends/dvb-pll.h | |||
@@ -15,8 +15,8 @@ struct dvb_pll_desc { | |||
15 | u32 limit; | 15 | u32 limit; |
16 | u32 offset; | 16 | u32 offset; |
17 | u32 stepsize; | 17 | u32 stepsize; |
18 | u8 cb1; | 18 | u8 config; |
19 | u8 cb2; | 19 | u8 cb; |
20 | } entries[12]; | 20 | } entries[12]; |
21 | }; | 21 | }; |
22 | 22 | ||
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c index 37977ff49780..2c6410cc0fe9 100644 --- a/drivers/media/video/tuner-simple.c +++ b/drivers/media/video/tuner-simple.c | |||
@@ -133,7 +133,7 @@ static int tuner_stereo(struct i2c_client *c) | |||
133 | static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | 133 | static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) |
134 | { | 134 | { |
135 | struct tuner *t = i2c_get_clientdata(c); | 135 | struct tuner *t = i2c_get_clientdata(c); |
136 | u8 config, tuneraddr; | 136 | u8 cb, tuneraddr; |
137 | u16 div; | 137 | u16 div; |
138 | struct tunertype *tun; | 138 | struct tunertype *tun; |
139 | u8 buffer[4]; | 139 | u8 buffer[4]; |
@@ -152,7 +152,7 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | |||
152 | freq, tun->params[j].ranges[i - 1].limit); | 152 | freq, tun->params[j].ranges[i - 1].limit); |
153 | freq = tun->params[j].ranges[--i].limit; | 153 | freq = tun->params[j].ranges[--i].limit; |
154 | } | 154 | } |
155 | config = tun->params[j].ranges[i].cb; | 155 | cb = tun->params[j].ranges[i].cb; |
156 | /* i == 0 -> VHF_LO */ | 156 | /* i == 0 -> VHF_LO */ |
157 | /* i == 1 -> VHF_HI */ | 157 | /* i == 1 -> VHF_HI */ |
158 | /* i == 2 -> UHF */ | 158 | /* i == 2 -> UHF */ |
@@ -164,40 +164,40 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | |||
164 | /* 0x01 -> ??? no change ??? */ | 164 | /* 0x01 -> ??? no change ??? */ |
165 | /* 0x02 -> PAL BDGHI / SECAM L */ | 165 | /* 0x02 -> PAL BDGHI / SECAM L */ |
166 | /* 0x04 -> ??? PAL others / SECAM others ??? */ | 166 | /* 0x04 -> ??? PAL others / SECAM others ??? */ |
167 | config &= ~0x02; | 167 | cb &= ~0x02; |
168 | if (t->std & V4L2_STD_SECAM) | 168 | if (t->std & V4L2_STD_SECAM) |
169 | config |= 0x02; | 169 | cb |= 0x02; |
170 | break; | 170 | break; |
171 | 171 | ||
172 | case TUNER_TEMIC_4046FM5: | 172 | case TUNER_TEMIC_4046FM5: |
173 | config &= ~0x0f; | 173 | cb &= ~0x0f; |
174 | 174 | ||
175 | if (t->std & V4L2_STD_PAL_BG) { | 175 | if (t->std & V4L2_STD_PAL_BG) { |
176 | config |= TEMIC_SET_PAL_BG; | 176 | cb |= TEMIC_SET_PAL_BG; |
177 | 177 | ||
178 | } else if (t->std & V4L2_STD_PAL_I) { | 178 | } else if (t->std & V4L2_STD_PAL_I) { |
179 | config |= TEMIC_SET_PAL_I; | 179 | cb |= TEMIC_SET_PAL_I; |
180 | 180 | ||
181 | } else if (t->std & V4L2_STD_PAL_DK) { | 181 | } else if (t->std & V4L2_STD_PAL_DK) { |
182 | config |= TEMIC_SET_PAL_DK; | 182 | cb |= TEMIC_SET_PAL_DK; |
183 | 183 | ||
184 | } else if (t->std & V4L2_STD_SECAM_L) { | 184 | } else if (t->std & V4L2_STD_SECAM_L) { |
185 | config |= TEMIC_SET_PAL_L; | 185 | cb |= TEMIC_SET_PAL_L; |
186 | 186 | ||
187 | } | 187 | } |
188 | break; | 188 | break; |
189 | 189 | ||
190 | case TUNER_PHILIPS_FQ1216ME: | 190 | case TUNER_PHILIPS_FQ1216ME: |
191 | config &= ~0x0f; | 191 | cb &= ~0x0f; |
192 | 192 | ||
193 | if (t->std & (V4L2_STD_PAL_BG|V4L2_STD_PAL_DK)) { | 193 | if (t->std & (V4L2_STD_PAL_BG|V4L2_STD_PAL_DK)) { |
194 | config |= PHILIPS_SET_PAL_BGDK; | 194 | cb |= PHILIPS_SET_PAL_BGDK; |
195 | 195 | ||
196 | } else if (t->std & V4L2_STD_PAL_I) { | 196 | } else if (t->std & V4L2_STD_PAL_I) { |
197 | config |= PHILIPS_SET_PAL_I; | 197 | cb |= PHILIPS_SET_PAL_I; |
198 | 198 | ||
199 | } else if (t->std & V4L2_STD_SECAM_L) { | 199 | } else if (t->std & V4L2_STD_SECAM_L) { |
200 | config |= PHILIPS_SET_PAL_L; | 200 | cb |= PHILIPS_SET_PAL_L; |
201 | 201 | ||
202 | } | 202 | } |
203 | break; | 203 | break; |
@@ -207,9 +207,9 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | |||
207 | /* 0x01 -> ATSC antenna input 2 */ | 207 | /* 0x01 -> ATSC antenna input 2 */ |
208 | /* 0x02 -> NTSC antenna input 1 */ | 208 | /* 0x02 -> NTSC antenna input 1 */ |
209 | /* 0x03 -> NTSC antenna input 2 */ | 209 | /* 0x03 -> NTSC antenna input 2 */ |
210 | config &= ~0x03; | 210 | cb &= ~0x03; |
211 | if (!(t->std & V4L2_STD_ATSC)) | 211 | if (!(t->std & V4L2_STD_ATSC)) |
212 | config |= 2; | 212 | cb |= 2; |
213 | /* FIXME: input */ | 213 | /* FIXME: input */ |
214 | break; | 214 | break; |
215 | 215 | ||
@@ -227,9 +227,9 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | |||
227 | buffer[1] = 0x00; | 227 | buffer[1] = 0x00; |
228 | buffer[2] = 0x17; | 228 | buffer[2] = 0x17; |
229 | buffer[3] = 0x00; | 229 | buffer[3] = 0x00; |
230 | config &= ~0x40; | 230 | cb &= ~0x40; |
231 | if (t->std & V4L2_STD_ATSC) { | 231 | if (t->std & V4L2_STD_ATSC) { |
232 | config |= 0x40; | 232 | cb |= 0x40; |
233 | buffer[1] = 0x04; | 233 | buffer[1] = 0x04; |
234 | } | 234 | } |
235 | /* set to the correct mode (analog or digital) */ | 235 | /* set to the correct mode (analog or digital) */ |
@@ -277,14 +277,14 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | |||
277 | 277 | ||
278 | if (tuners[t->type].params->cb_first_if_lower_freq && div < t->last_div) { | 278 | if (tuners[t->type].params->cb_first_if_lower_freq && div < t->last_div) { |
279 | buffer[0] = tun->params[j].config; | 279 | buffer[0] = tun->params[j].config; |
280 | buffer[1] = config; | 280 | buffer[1] = cb; |
281 | buffer[2] = (div>>8) & 0x7f; | 281 | buffer[2] = (div>>8) & 0x7f; |
282 | buffer[3] = div & 0xff; | 282 | buffer[3] = div & 0xff; |
283 | } else { | 283 | } else { |
284 | buffer[0] = (div>>8) & 0x7f; | 284 | buffer[0] = (div>>8) & 0x7f; |
285 | buffer[1] = div & 0xff; | 285 | buffer[1] = div & 0xff; |
286 | buffer[2] = tun->params[j].config; | 286 | buffer[2] = tun->params[j].config; |
287 | buffer[3] = config; | 287 | buffer[3] = cb; |
288 | } | 288 | } |
289 | t->last_div = div; | 289 | t->last_div = div; |
290 | tuner_dbg("tv 0x%02x 0x%02x 0x%02x 0x%02x\n", | 290 | tuner_dbg("tv 0x%02x 0x%02x 0x%02x 0x%02x\n", |
@@ -316,7 +316,7 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq) | |||
316 | buffer[0] = (div>>8) & 0x7f; | 316 | buffer[0] = (div>>8) & 0x7f; |
317 | buffer[1] = div & 0xff; | 317 | buffer[1] = div & 0xff; |
318 | buffer[2] = tun->params[j].config; | 318 | buffer[2] = tun->params[j].config; |
319 | buffer[3] = config; | 319 | buffer[3] = cb; |
320 | tuner_dbg("tv 0x%02x 0x%02x 0x%02x 0x%02x\n", | 320 | tuner_dbg("tv 0x%02x 0x%02x 0x%02x 0x%02x\n", |
321 | buffer[0],buffer[1],buffer[2],buffer[3]); | 321 | buffer[0],buffer[1],buffer[2],buffer[3]); |
322 | 322 | ||