Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: tuners: Constify struct tunertype, tuner_range and tuner_params

'struct tunertype', 'struct tuner_range' and 'struct tuner_params' are not
modified in this driver.

Constifying these structures moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
2877 8554 0 11431 2ca7 drivers/media/tuners/tuner-types.o

After:
=====
text data bss dec hex filename
11421 48 0 11469 2ccd drivers/media/tuners/tuner-types.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Christophe JAILLET and committed by
Hans Verkuil
70d4fd12 d22d91fb

+161 -161
+10 -10
drivers/media/tuners/tuner-simple.c
··· 112 112 struct list_head hybrid_tuner_instance_list; 113 113 114 114 unsigned int type; 115 - struct tunertype *tun; 115 + const struct tunertype *tun; 116 116 117 117 u32 frequency; 118 118 u32 bandwidth; ··· 232 232 return name; 233 233 } 234 234 235 - static struct tuner_params *simple_tuner_params(struct dvb_frontend *fe, 236 - enum param_type desired_type) 235 + static const struct tuner_params *simple_tuner_params(struct dvb_frontend *fe, 236 + enum param_type desired_type) 237 237 { 238 238 struct tuner_simple_priv *priv = fe->tuner_priv; 239 - struct tunertype *tun = priv->tun; 239 + const struct tunertype *tun = priv->tun; 240 240 int i; 241 241 242 242 for (i = 0; i < tun->count; i++) ··· 257 257 } 258 258 259 259 static int simple_config_lookup(struct dvb_frontend *fe, 260 - struct tuner_params *t_params, 260 + const struct tuner_params *t_params, 261 261 unsigned *frequency, u8 *config, u8 *cb) 262 262 { 263 263 struct tuner_simple_priv *priv = fe->tuner_priv; ··· 549 549 u8 buffer[4]; 550 550 int rc, IFPCoff, i; 551 551 enum param_type desired_type; 552 - struct tuner_params *t_params; 552 + const struct tuner_params *t_params; 553 553 554 554 /* IFPCoff = Video Intermediate Frequency - Vif: 555 555 940 =16*58.75 NTSC/J (Japan) ··· 664 664 static int simple_set_radio_freq(struct dvb_frontend *fe, 665 665 struct analog_parameters *params) 666 666 { 667 - struct tunertype *tun; 667 + const struct tunertype *tun; 668 668 struct tuner_simple_priv *priv = fe->tuner_priv; 669 669 u8 buffer[4]; 670 670 u16 div; 671 671 int rc, j; 672 - struct tuner_params *t_params; 672 + const struct tuner_params *t_params; 673 673 unsigned int freq = params->frequency; 674 674 bool mono = params->audmode == V4L2_TUNER_MODE_MONO; 675 675 ··· 848 848 { 849 849 /* This function returns the tuned frequency on success, 0 on error */ 850 850 struct tuner_simple_priv *priv = fe->tuner_priv; 851 - struct tunertype *tun = priv->tun; 852 - struct tuner_params *t_params; 851 + const struct tunertype *tun = priv->tun; 852 + const struct tuner_params *t_params; 853 853 u8 config, cb; 854 854 u32 div; 855 855 int ret;
+148 -148
drivers/media/tuners/tuner-types.c
··· 61 61 /* 0-9 */ 62 62 /* ------------ TUNER_TEMIC_PAL - TEMIC PAL ------------ */ 63 63 64 - static struct tuner_range tuner_temic_pal_ranges[] = { 64 + static const struct tuner_range tuner_temic_pal_ranges[] = { 65 65 { 16 * 140.25 /*MHz*/, 0x8e, 0x02, }, 66 66 { 16 * 463.25 /*MHz*/, 0x8e, 0x04, }, 67 67 { 16 * 999.99 , 0x8e, 0x01, }, 68 68 }; 69 69 70 - static struct tuner_params tuner_temic_pal_params[] = { 70 + static const struct tuner_params tuner_temic_pal_params[] = { 71 71 { 72 72 .type = TUNER_PARAM_TYPE_PAL, 73 73 .ranges = tuner_temic_pal_ranges, ··· 77 77 78 78 /* ------------ TUNER_PHILIPS_PAL_I - Philips PAL_I ------------ */ 79 79 80 - static struct tuner_range tuner_philips_pal_i_ranges[] = { 80 + static const struct tuner_range tuner_philips_pal_i_ranges[] = { 81 81 { 16 * 140.25 /*MHz*/, 0x8e, 0xa0, }, 82 82 { 16 * 463.25 /*MHz*/, 0x8e, 0x90, }, 83 83 { 16 * 999.99 , 0x8e, 0x30, }, 84 84 }; 85 85 86 - static struct tuner_params tuner_philips_pal_i_params[] = { 86 + static const struct tuner_params tuner_philips_pal_i_params[] = { 87 87 { 88 88 .type = TUNER_PARAM_TYPE_PAL, 89 89 .ranges = tuner_philips_pal_i_ranges, ··· 93 93 94 94 /* ------------ TUNER_PHILIPS_NTSC - Philips NTSC ------------ */ 95 95 96 - static struct tuner_range tuner_philips_ntsc_ranges[] = { 96 + static const struct tuner_range tuner_philips_ntsc_ranges[] = { 97 97 { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, }, 98 98 { 16 * 451.25 /*MHz*/, 0x8e, 0x90, }, 99 99 { 16 * 999.99 , 0x8e, 0x30, }, 100 100 }; 101 101 102 - static struct tuner_params tuner_philips_ntsc_params[] = { 102 + static const struct tuner_params tuner_philips_ntsc_params[] = { 103 103 { 104 104 .type = TUNER_PARAM_TYPE_NTSC, 105 105 .ranges = tuner_philips_ntsc_ranges, ··· 110 110 111 111 /* ------------ TUNER_PHILIPS_SECAM - Philips SECAM ------------ */ 112 112 113 - static struct tuner_range tuner_philips_secam_ranges[] = { 113 + static const struct tuner_range tuner_philips_secam_ranges[] = { 114 114 { 16 * 168.25 /*MHz*/, 0x8e, 0xa7, }, 115 115 { 16 * 447.25 /*MHz*/, 0x8e, 0x97, }, 116 116 { 16 * 999.99 , 0x8e, 0x37, }, 117 117 }; 118 118 119 - static struct tuner_params tuner_philips_secam_params[] = { 119 + static const struct tuner_params tuner_philips_secam_params[] = { 120 120 { 121 121 .type = TUNER_PARAM_TYPE_SECAM, 122 122 .ranges = tuner_philips_secam_ranges, ··· 127 127 128 128 /* ------------ TUNER_PHILIPS_PAL - Philips PAL ------------ */ 129 129 130 - static struct tuner_range tuner_philips_pal_ranges[] = { 130 + static const struct tuner_range tuner_philips_pal_ranges[] = { 131 131 { 16 * 168.25 /*MHz*/, 0x8e, 0xa0, }, 132 132 { 16 * 447.25 /*MHz*/, 0x8e, 0x90, }, 133 133 { 16 * 999.99 , 0x8e, 0x30, }, 134 134 }; 135 135 136 - static struct tuner_params tuner_philips_pal_params[] = { 136 + static const struct tuner_params tuner_philips_pal_params[] = { 137 137 { 138 138 .type = TUNER_PARAM_TYPE_PAL, 139 139 .ranges = tuner_philips_pal_ranges, ··· 144 144 145 145 /* ------------ TUNER_TEMIC_NTSC - TEMIC NTSC ------------ */ 146 146 147 - static struct tuner_range tuner_temic_ntsc_ranges[] = { 147 + static const struct tuner_range tuner_temic_ntsc_ranges[] = { 148 148 { 16 * 157.25 /*MHz*/, 0x8e, 0x02, }, 149 149 { 16 * 463.25 /*MHz*/, 0x8e, 0x04, }, 150 150 { 16 * 999.99 , 0x8e, 0x01, }, 151 151 }; 152 152 153 - static struct tuner_params tuner_temic_ntsc_params[] = { 153 + static const struct tuner_params tuner_temic_ntsc_params[] = { 154 154 { 155 155 .type = TUNER_PARAM_TYPE_NTSC, 156 156 .ranges = tuner_temic_ntsc_ranges, ··· 160 160 161 161 /* ------------ TUNER_TEMIC_PAL_I - TEMIC PAL_I ------------ */ 162 162 163 - static struct tuner_range tuner_temic_pal_i_ranges[] = { 163 + static const struct tuner_range tuner_temic_pal_i_ranges[] = { 164 164 { 16 * 170.00 /*MHz*/, 0x8e, 0x02, }, 165 165 { 16 * 450.00 /*MHz*/, 0x8e, 0x04, }, 166 166 { 16 * 999.99 , 0x8e, 0x01, }, 167 167 }; 168 168 169 - static struct tuner_params tuner_temic_pal_i_params[] = { 169 + static const struct tuner_params tuner_temic_pal_i_params[] = { 170 170 { 171 171 .type = TUNER_PARAM_TYPE_PAL, 172 172 .ranges = tuner_temic_pal_i_ranges, ··· 176 176 177 177 /* ------------ TUNER_TEMIC_4036FY5_NTSC - TEMIC NTSC ------------ */ 178 178 179 - static struct tuner_range tuner_temic_4036fy5_ntsc_ranges[] = { 179 + static const struct tuner_range tuner_temic_4036fy5_ntsc_ranges[] = { 180 180 { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, }, 181 181 { 16 * 463.25 /*MHz*/, 0x8e, 0x90, }, 182 182 { 16 * 999.99 , 0x8e, 0x30, }, 183 183 }; 184 184 185 - static struct tuner_params tuner_temic_4036fy5_ntsc_params[] = { 185 + static const struct tuner_params tuner_temic_4036fy5_ntsc_params[] = { 186 186 { 187 187 .type = TUNER_PARAM_TYPE_NTSC, 188 188 .ranges = tuner_temic_4036fy5_ntsc_ranges, ··· 192 192 193 193 /* ------------ TUNER_ALPS_TSBH1_NTSC - TEMIC NTSC ------------ */ 194 194 195 - static struct tuner_range tuner_alps_tsb_1_ranges[] = { 195 + static const struct tuner_range tuner_alps_tsb_1_ranges[] = { 196 196 { 16 * 137.25 /*MHz*/, 0x8e, 0x01, }, 197 197 { 16 * 385.25 /*MHz*/, 0x8e, 0x02, }, 198 198 { 16 * 999.99 , 0x8e, 0x08, }, 199 199 }; 200 200 201 - static struct tuner_params tuner_alps_tsbh1_ntsc_params[] = { 201 + static const struct tuner_params tuner_alps_tsbh1_ntsc_params[] = { 202 202 { 203 203 .type = TUNER_PARAM_TYPE_NTSC, 204 204 .ranges = tuner_alps_tsb_1_ranges, ··· 209 209 /* 10-19 */ 210 210 /* ------------ TUNER_ALPS_TSBE1_PAL - TEMIC PAL ------------ */ 211 211 212 - static struct tuner_params tuner_alps_tsb_1_params[] = { 212 + static const struct tuner_params tuner_alps_tsb_1_params[] = { 213 213 { 214 214 .type = TUNER_PARAM_TYPE_PAL, 215 215 .ranges = tuner_alps_tsb_1_ranges, ··· 219 219 220 220 /* ------------ TUNER_ALPS_TSBB5_PAL_I - Alps PAL_I ------------ */ 221 221 222 - static struct tuner_range tuner_alps_tsb_5_pal_ranges[] = { 222 + static const struct tuner_range tuner_alps_tsb_5_pal_ranges[] = { 223 223 { 16 * 133.25 /*MHz*/, 0x8e, 0x01, }, 224 224 { 16 * 351.25 /*MHz*/, 0x8e, 0x02, }, 225 225 { 16 * 999.99 , 0x8e, 0x08, }, 226 226 }; 227 227 228 - static struct tuner_params tuner_alps_tsbb5_params[] = { 228 + static const struct tuner_params tuner_alps_tsbb5_params[] = { 229 229 { 230 230 .type = TUNER_PARAM_TYPE_PAL, 231 231 .ranges = tuner_alps_tsb_5_pal_ranges, ··· 235 235 236 236 /* ------------ TUNER_ALPS_TSBE5_PAL - Alps PAL ------------ */ 237 237 238 - static struct tuner_params tuner_alps_tsbe5_params[] = { 238 + static const struct tuner_params tuner_alps_tsbe5_params[] = { 239 239 { 240 240 .type = TUNER_PARAM_TYPE_PAL, 241 241 .ranges = tuner_alps_tsb_5_pal_ranges, ··· 245 245 246 246 /* ------------ TUNER_ALPS_TSBC5_PAL - Alps PAL ------------ */ 247 247 248 - static struct tuner_params tuner_alps_tsbc5_params[] = { 248 + static const struct tuner_params tuner_alps_tsbc5_params[] = { 249 249 { 250 250 .type = TUNER_PARAM_TYPE_PAL, 251 251 .ranges = tuner_alps_tsb_5_pal_ranges, ··· 255 255 256 256 /* ------------ TUNER_TEMIC_4006FH5_PAL - TEMIC PAL ------------ */ 257 257 258 - static struct tuner_range tuner_lg_pal_ranges[] = { 258 + static const struct tuner_range tuner_lg_pal_ranges[] = { 259 259 { 16 * 170.00 /*MHz*/, 0x8e, 0xa0, }, 260 260 { 16 * 450.00 /*MHz*/, 0x8e, 0x90, }, 261 261 { 16 * 999.99 , 0x8e, 0x30, }, 262 262 }; 263 263 264 - static struct tuner_params tuner_temic_4006fh5_params[] = { 264 + static const struct tuner_params tuner_temic_4006fh5_params[] = { 265 265 { 266 266 .type = TUNER_PARAM_TYPE_PAL, 267 267 .ranges = tuner_lg_pal_ranges, ··· 271 271 272 272 /* ------------ TUNER_ALPS_TSHC6_NTSC - Alps NTSC ------------ */ 273 273 274 - static struct tuner_range tuner_alps_tshc6_ntsc_ranges[] = { 274 + static const struct tuner_range tuner_alps_tshc6_ntsc_ranges[] = { 275 275 { 16 * 137.25 /*MHz*/, 0x8e, 0x14, }, 276 276 { 16 * 385.25 /*MHz*/, 0x8e, 0x12, }, 277 277 { 16 * 999.99 , 0x8e, 0x11, }, 278 278 }; 279 279 280 - static struct tuner_params tuner_alps_tshc6_params[] = { 280 + static const struct tuner_params tuner_alps_tshc6_params[] = { 281 281 { 282 282 .type = TUNER_PARAM_TYPE_NTSC, 283 283 .ranges = tuner_alps_tshc6_ntsc_ranges, ··· 287 287 288 288 /* ------------ TUNER_TEMIC_PAL_DK - TEMIC PAL ------------ */ 289 289 290 - static struct tuner_range tuner_temic_pal_dk_ranges[] = { 290 + static const struct tuner_range tuner_temic_pal_dk_ranges[] = { 291 291 { 16 * 168.25 /*MHz*/, 0x8e, 0xa0, }, 292 292 { 16 * 456.25 /*MHz*/, 0x8e, 0x90, }, 293 293 { 16 * 999.99 , 0x8e, 0x30, }, 294 294 }; 295 295 296 - static struct tuner_params tuner_temic_pal_dk_params[] = { 296 + static const struct tuner_params tuner_temic_pal_dk_params[] = { 297 297 { 298 298 .type = TUNER_PARAM_TYPE_PAL, 299 299 .ranges = tuner_temic_pal_dk_ranges, ··· 303 303 304 304 /* ------------ TUNER_PHILIPS_NTSC_M - Philips NTSC ------------ */ 305 305 306 - static struct tuner_range tuner_philips_ntsc_m_ranges[] = { 306 + static const struct tuner_range tuner_philips_ntsc_m_ranges[] = { 307 307 { 16 * 160.00 /*MHz*/, 0x8e, 0xa0, }, 308 308 { 16 * 454.00 /*MHz*/, 0x8e, 0x90, }, 309 309 { 16 * 999.99 , 0x8e, 0x30, }, 310 310 }; 311 311 312 - static struct tuner_params tuner_philips_ntsc_m_params[] = { 312 + static const struct tuner_params tuner_philips_ntsc_m_params[] = { 313 313 { 314 314 .type = TUNER_PARAM_TYPE_NTSC, 315 315 .ranges = tuner_philips_ntsc_m_ranges, ··· 319 319 320 320 /* ------------ TUNER_TEMIC_4066FY5_PAL_I - TEMIC PAL_I ------------ */ 321 321 322 - static struct tuner_range tuner_temic_40x6f_5_pal_ranges[] = { 322 + static const struct tuner_range tuner_temic_40x6f_5_pal_ranges[] = { 323 323 { 16 * 169.00 /*MHz*/, 0x8e, 0xa0, }, 324 324 { 16 * 454.00 /*MHz*/, 0x8e, 0x90, }, 325 325 { 16 * 999.99 , 0x8e, 0x30, }, 326 326 }; 327 327 328 - static struct tuner_params tuner_temic_4066fy5_pal_i_params[] = { 328 + static const struct tuner_params tuner_temic_4066fy5_pal_i_params[] = { 329 329 { 330 330 .type = TUNER_PARAM_TYPE_PAL, 331 331 .ranges = tuner_temic_40x6f_5_pal_ranges, ··· 335 335 336 336 /* ------------ TUNER_TEMIC_4006FN5_MULTI_PAL - TEMIC PAL ------------ */ 337 337 338 - static struct tuner_params tuner_temic_4006fn5_multi_params[] = { 338 + static const struct tuner_params tuner_temic_4006fn5_multi_params[] = { 339 339 { 340 340 .type = TUNER_PARAM_TYPE_PAL, 341 341 .ranges = tuner_temic_40x6f_5_pal_ranges, ··· 346 346 /* 20-29 */ 347 347 /* ------------ TUNER_TEMIC_4009FR5_PAL - TEMIC PAL ------------ */ 348 348 349 - static struct tuner_range tuner_temic_4009f_5_pal_ranges[] = { 349 + static const struct tuner_range tuner_temic_4009f_5_pal_ranges[] = { 350 350 { 16 * 141.00 /*MHz*/, 0x8e, 0xa0, }, 351 351 { 16 * 464.00 /*MHz*/, 0x8e, 0x90, }, 352 352 { 16 * 999.99 , 0x8e, 0x30, }, 353 353 }; 354 354 355 - static struct tuner_params tuner_temic_4009f_5_params[] = { 355 + static const struct tuner_params tuner_temic_4009f_5_params[] = { 356 356 { 357 357 .type = TUNER_PARAM_TYPE_PAL, 358 358 .ranges = tuner_temic_4009f_5_pal_ranges, ··· 362 362 363 363 /* ------------ TUNER_TEMIC_4039FR5_NTSC - TEMIC NTSC ------------ */ 364 364 365 - static struct tuner_range tuner_temic_4x3x_f_5_ntsc_ranges[] = { 365 + static const struct tuner_range tuner_temic_4x3x_f_5_ntsc_ranges[] = { 366 366 { 16 * 158.00 /*MHz*/, 0x8e, 0xa0, }, 367 367 { 16 * 453.00 /*MHz*/, 0x8e, 0x90, }, 368 368 { 16 * 999.99 , 0x8e, 0x30, }, 369 369 }; 370 370 371 - static struct tuner_params tuner_temic_4039fr5_params[] = { 371 + static const struct tuner_params tuner_temic_4039fr5_params[] = { 372 372 { 373 373 .type = TUNER_PARAM_TYPE_NTSC, 374 374 .ranges = tuner_temic_4x3x_f_5_ntsc_ranges, ··· 378 378 379 379 /* ------------ TUNER_TEMIC_4046FM5 - TEMIC PAL ------------ */ 380 380 381 - static struct tuner_params tuner_temic_4046fm5_params[] = { 381 + static const struct tuner_params tuner_temic_4046fm5_params[] = { 382 382 { 383 383 .type = TUNER_PARAM_TYPE_PAL, 384 384 .ranges = tuner_temic_40x6f_5_pal_ranges, ··· 388 388 389 389 /* ------------ TUNER_PHILIPS_PAL_DK - Philips PAL ------------ */ 390 390 391 - static struct tuner_params tuner_philips_pal_dk_params[] = { 391 + static const struct tuner_params tuner_philips_pal_dk_params[] = { 392 392 { 393 393 .type = TUNER_PARAM_TYPE_PAL, 394 394 .ranges = tuner_lg_pal_ranges, ··· 398 398 399 399 /* ------------ TUNER_PHILIPS_FQ1216ME - Philips PAL ------------ */ 400 400 401 - static struct tuner_params tuner_philips_fq1216me_params[] = { 401 + static const struct tuner_params tuner_philips_fq1216me_params[] = { 402 402 { 403 403 .type = TUNER_PARAM_TYPE_PAL, 404 404 .ranges = tuner_lg_pal_ranges, ··· 412 412 413 413 /* ------------ TUNER_LG_PAL_I_FM - LGINNOTEK PAL_I ------------ */ 414 414 415 - static struct tuner_params tuner_lg_pal_i_fm_params[] = { 415 + static const struct tuner_params tuner_lg_pal_i_fm_params[] = { 416 416 { 417 417 .type = TUNER_PARAM_TYPE_PAL, 418 418 .ranges = tuner_lg_pal_ranges, ··· 422 422 423 423 /* ------------ TUNER_LG_PAL_I - LGINNOTEK PAL_I ------------ */ 424 424 425 - static struct tuner_params tuner_lg_pal_i_params[] = { 425 + static const struct tuner_params tuner_lg_pal_i_params[] = { 426 426 { 427 427 .type = TUNER_PARAM_TYPE_PAL, 428 428 .ranges = tuner_lg_pal_ranges, ··· 432 432 433 433 /* ------------ TUNER_LG_NTSC_FM - LGINNOTEK NTSC ------------ */ 434 434 435 - static struct tuner_range tuner_lg_ntsc_fm_ranges[] = { 435 + static const struct tuner_range tuner_lg_ntsc_fm_ranges[] = { 436 436 { 16 * 210.00 /*MHz*/, 0x8e, 0xa0, }, 437 437 { 16 * 497.00 /*MHz*/, 0x8e, 0x90, }, 438 438 { 16 * 999.99 , 0x8e, 0x30, }, 439 439 }; 440 440 441 - static struct tuner_params tuner_lg_ntsc_fm_params[] = { 441 + static const struct tuner_params tuner_lg_ntsc_fm_params[] = { 442 442 { 443 443 .type = TUNER_PARAM_TYPE_NTSC, 444 444 .ranges = tuner_lg_ntsc_fm_ranges, ··· 448 448 449 449 /* ------------ TUNER_LG_PAL_FM - LGINNOTEK PAL ------------ */ 450 450 451 - static struct tuner_params tuner_lg_pal_fm_params[] = { 451 + static const struct tuner_params tuner_lg_pal_fm_params[] = { 452 452 { 453 453 .type = TUNER_PARAM_TYPE_PAL, 454 454 .ranges = tuner_lg_pal_ranges, ··· 458 458 459 459 /* ------------ TUNER_LG_PAL - LGINNOTEK PAL ------------ */ 460 460 461 - static struct tuner_params tuner_lg_pal_params[] = { 461 + static const struct tuner_params tuner_lg_pal_params[] = { 462 462 { 463 463 .type = TUNER_PARAM_TYPE_PAL, 464 464 .ranges = tuner_lg_pal_ranges, ··· 469 469 /* 30-39 */ 470 470 /* ------------ TUNER_TEMIC_4009FN5_MULTI_PAL_FM - TEMIC PAL ------------ */ 471 471 472 - static struct tuner_params tuner_temic_4009_fn5_multi_pal_fm_params[] = { 472 + static const struct tuner_params tuner_temic_4009_fn5_multi_pal_fm_params[] = { 473 473 { 474 474 .type = TUNER_PARAM_TYPE_PAL, 475 475 .ranges = tuner_temic_4009f_5_pal_ranges, ··· 479 479 480 480 /* ------------ TUNER_SHARP_2U5JF5540_NTSC - SHARP NTSC ------------ */ 481 481 482 - static struct tuner_range tuner_sharp_2u5jf5540_ntsc_ranges[] = { 482 + static const struct tuner_range tuner_sharp_2u5jf5540_ntsc_ranges[] = { 483 483 { 16 * 137.25 /*MHz*/, 0x8e, 0x01, }, 484 484 { 16 * 317.25 /*MHz*/, 0x8e, 0x02, }, 485 485 { 16 * 999.99 , 0x8e, 0x08, }, 486 486 }; 487 487 488 - static struct tuner_params tuner_sharp_2u5jf5540_params[] = { 488 + static const struct tuner_params tuner_sharp_2u5jf5540_params[] = { 489 489 { 490 490 .type = TUNER_PARAM_TYPE_NTSC, 491 491 .ranges = tuner_sharp_2u5jf5540_ntsc_ranges, ··· 495 495 496 496 /* ------------ TUNER_Samsung_PAL_TCPM9091PD27 - Samsung PAL ------------ */ 497 497 498 - static struct tuner_range tuner_samsung_pal_tcpm9091pd27_ranges[] = { 498 + static const struct tuner_range tuner_samsung_pal_tcpm9091pd27_ranges[] = { 499 499 { 16 * 169 /*MHz*/, 0x8e, 0xa0, }, 500 500 { 16 * 464 /*MHz*/, 0x8e, 0x90, }, 501 501 { 16 * 999.99 , 0x8e, 0x30, }, 502 502 }; 503 503 504 - static struct tuner_params tuner_samsung_pal_tcpm9091pd27_params[] = { 504 + static const struct tuner_params tuner_samsung_pal_tcpm9091pd27_params[] = { 505 505 { 506 506 .type = TUNER_PARAM_TYPE_PAL, 507 507 .ranges = tuner_samsung_pal_tcpm9091pd27_ranges, ··· 511 511 512 512 /* ------------ TUNER_TEMIC_4106FH5 - TEMIC PAL ------------ */ 513 513 514 - static struct tuner_params tuner_temic_4106fh5_params[] = { 514 + static const struct tuner_params tuner_temic_4106fh5_params[] = { 515 515 { 516 516 .type = TUNER_PARAM_TYPE_PAL, 517 517 .ranges = tuner_temic_4009f_5_pal_ranges, ··· 521 521 522 522 /* ------------ TUNER_TEMIC_4012FY5 - TEMIC PAL ------------ */ 523 523 524 - static struct tuner_params tuner_temic_4012fy5_params[] = { 524 + static const struct tuner_params tuner_temic_4012fy5_params[] = { 525 525 { 526 526 .type = TUNER_PARAM_TYPE_PAL, 527 527 .ranges = tuner_temic_pal_ranges, ··· 531 531 532 532 /* ------------ TUNER_TEMIC_4136FY5 - TEMIC NTSC ------------ */ 533 533 534 - static struct tuner_params tuner_temic_4136_fy5_params[] = { 534 + static const struct tuner_params tuner_temic_4136_fy5_params[] = { 535 535 { 536 536 .type = TUNER_PARAM_TYPE_NTSC, 537 537 .ranges = tuner_temic_4x3x_f_5_ntsc_ranges, ··· 541 541 542 542 /* ------------ TUNER_LG_PAL_NEW_TAPC - LGINNOTEK PAL ------------ */ 543 543 544 - static struct tuner_range tuner_lg_new_tapc_ranges[] = { 544 + static const struct tuner_range tuner_lg_new_tapc_ranges[] = { 545 545 { 16 * 170.00 /*MHz*/, 0x8e, 0x01, }, 546 546 { 16 * 450.00 /*MHz*/, 0x8e, 0x02, }, 547 547 { 16 * 999.99 , 0x8e, 0x08, }, 548 548 }; 549 549 550 - static struct tuner_params tuner_lg_pal_new_tapc_params[] = { 550 + static const struct tuner_params tuner_lg_pal_new_tapc_params[] = { 551 551 { 552 552 .type = TUNER_PARAM_TYPE_PAL, 553 553 .ranges = tuner_lg_new_tapc_ranges, ··· 557 557 558 558 /* ------------ TUNER_PHILIPS_FM1216ME_MK3 - Philips PAL ------------ */ 559 559 560 - static struct tuner_range tuner_fm1216me_mk3_pal_ranges[] = { 560 + static const struct tuner_range tuner_fm1216me_mk3_pal_ranges[] = { 561 561 { 16 * 158.00 /*MHz*/, 0x8e, 0x01, }, 562 562 { 16 * 442.00 /*MHz*/, 0x8e, 0x02, }, 563 563 { 16 * 999.99 , 0x8e, 0x04, }, 564 564 }; 565 565 566 - static struct tuner_params tuner_fm1216me_mk3_params[] = { 566 + static const struct tuner_params tuner_fm1216me_mk3_params[] = { 567 567 { 568 568 .type = TUNER_PARAM_TYPE_PAL, 569 569 .ranges = tuner_fm1216me_mk3_pal_ranges, ··· 582 582 583 583 /* ------------ TUNER_PHILIPS_FM1216MK5 - Philips PAL ------------ */ 584 584 585 - static struct tuner_range tuner_fm1216mk5_pal_ranges[] = { 585 + static const struct tuner_range tuner_fm1216mk5_pal_ranges[] = { 586 586 { 16 * 158.00 /*MHz*/, 0xce, 0x01, }, 587 587 { 16 * 441.00 /*MHz*/, 0xce, 0x02, }, 588 588 { 16 * 864.00 , 0xce, 0x04, }, 589 589 }; 590 590 591 - static struct tuner_params tuner_fm1216mk5_params[] = { 591 + static const struct tuner_params tuner_fm1216mk5_params[] = { 592 592 { 593 593 .type = TUNER_PARAM_TYPE_PAL, 594 594 .ranges = tuner_fm1216mk5_pal_ranges, ··· 607 607 608 608 /* ------------ TUNER_LG_NTSC_NEW_TAPC - LGINNOTEK NTSC ------------ */ 609 609 610 - static struct tuner_params tuner_lg_ntsc_new_tapc_params[] = { 610 + static const struct tuner_params tuner_lg_ntsc_new_tapc_params[] = { 611 611 { 612 612 .type = TUNER_PARAM_TYPE_NTSC, 613 613 .ranges = tuner_lg_new_tapc_ranges, ··· 618 618 /* 40-49 */ 619 619 /* ------------ TUNER_HITACHI_NTSC - HITACHI NTSC ------------ */ 620 620 621 - static struct tuner_params tuner_hitachi_ntsc_params[] = { 621 + static const struct tuner_params tuner_hitachi_ntsc_params[] = { 622 622 { 623 623 .type = TUNER_PARAM_TYPE_NTSC, 624 624 .ranges = tuner_lg_new_tapc_ranges, ··· 628 628 629 629 /* ------------ TUNER_PHILIPS_PAL_MK - Philips PAL ------------ */ 630 630 631 - static struct tuner_range tuner_philips_pal_mk_pal_ranges[] = { 631 + static const struct tuner_range tuner_philips_pal_mk_pal_ranges[] = { 632 632 { 16 * 140.25 /*MHz*/, 0x8e, 0x01, }, 633 633 { 16 * 463.25 /*MHz*/, 0x8e, 0xc2, }, 634 634 { 16 * 999.99 , 0x8e, 0xcf, }, 635 635 }; 636 636 637 - static struct tuner_params tuner_philips_pal_mk_params[] = { 637 + static const struct tuner_params tuner_philips_pal_mk_params[] = { 638 638 { 639 639 .type = TUNER_PARAM_TYPE_PAL, 640 640 .ranges = tuner_philips_pal_mk_pal_ranges, ··· 644 644 645 645 /* ---- TUNER_PHILIPS_FCV1236D - Philips FCV1236D (ATSC/NTSC) ---- */ 646 646 647 - static struct tuner_range tuner_philips_fcv1236d_ntsc_ranges[] = { 647 + static const struct tuner_range tuner_philips_fcv1236d_ntsc_ranges[] = { 648 648 { 16 * 157.25 /*MHz*/, 0x8e, 0xa2, }, 649 649 { 16 * 451.25 /*MHz*/, 0x8e, 0x92, }, 650 650 { 16 * 999.99 , 0x8e, 0x32, }, 651 651 }; 652 652 653 - static struct tuner_range tuner_philips_fcv1236d_atsc_ranges[] = { 653 + static const struct tuner_range tuner_philips_fcv1236d_atsc_ranges[] = { 654 654 { 16 * 159.00 /*MHz*/, 0x8e, 0xa0, }, 655 655 { 16 * 453.00 /*MHz*/, 0x8e, 0x90, }, 656 656 { 16 * 999.99 , 0x8e, 0x30, }, 657 657 }; 658 658 659 - static struct tuner_params tuner_philips_fcv1236d_params[] = { 659 + static const struct tuner_params tuner_philips_fcv1236d_params[] = { 660 660 { 661 661 .type = TUNER_PARAM_TYPE_NTSC, 662 662 .ranges = tuner_philips_fcv1236d_ntsc_ranges, ··· 672 672 673 673 /* ------------ TUNER_PHILIPS_FM1236_MK3 - Philips NTSC ------------ */ 674 674 675 - static struct tuner_range tuner_fm1236_mk3_ntsc_ranges[] = { 675 + static const struct tuner_range tuner_fm1236_mk3_ntsc_ranges[] = { 676 676 { 16 * 160.00 /*MHz*/, 0x8e, 0x01, }, 677 677 { 16 * 442.00 /*MHz*/, 0x8e, 0x02, }, 678 678 { 16 * 999.99 , 0x8e, 0x04, }, 679 679 }; 680 680 681 - static struct tuner_params tuner_fm1236_mk3_params[] = { 681 + static const struct tuner_params tuner_fm1236_mk3_params[] = { 682 682 { 683 683 .type = TUNER_PARAM_TYPE_NTSC, 684 684 .ranges = tuner_fm1236_mk3_ntsc_ranges, ··· 693 693 694 694 /* ------------ TUNER_PHILIPS_4IN1 - Philips NTSC ------------ */ 695 695 696 - static struct tuner_params tuner_philips_4in1_params[] = { 696 + static const struct tuner_params tuner_philips_4in1_params[] = { 697 697 { 698 698 .type = TUNER_PARAM_TYPE_NTSC, 699 699 .ranges = tuner_fm1236_mk3_ntsc_ranges, ··· 703 703 704 704 /* ------------ TUNER_MICROTUNE_4049FM5 - Microtune PAL ------------ */ 705 705 706 - static struct tuner_params tuner_microtune_4049_fm5_params[] = { 706 + static const struct tuner_params tuner_microtune_4049_fm5_params[] = { 707 707 { 708 708 .type = TUNER_PARAM_TYPE_PAL, 709 709 .ranges = tuner_temic_4009f_5_pal_ranges, ··· 718 718 719 719 /* ------------ TUNER_PANASONIC_VP27 - Panasonic NTSC ------------ */ 720 720 721 - static struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = { 721 + static const struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = { 722 722 { 16 * 160.00 /*MHz*/, 0xce, 0x01, }, 723 723 { 16 * 454.00 /*MHz*/, 0xce, 0x02, }, 724 724 { 16 * 999.99 , 0xce, 0x08, }, 725 725 }; 726 726 727 - static struct tuner_params tuner_panasonic_vp27_params[] = { 727 + static const struct tuner_params tuner_panasonic_vp27_params[] = { 728 728 { 729 729 .type = TUNER_PARAM_TYPE_NTSC, 730 730 .ranges = tuner_panasonic_vp27_ntsc_ranges, ··· 739 739 740 740 /* ------------ TUNER_TNF_8831BGFF - Philips PAL ------------ */ 741 741 742 - static struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = { 742 + static const struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = { 743 743 { 16 * 161.25 /*MHz*/, 0x8e, 0xa0, }, 744 744 { 16 * 463.25 /*MHz*/, 0x8e, 0x90, }, 745 745 { 16 * 999.99 , 0x8e, 0x30, }, 746 746 }; 747 747 748 - static struct tuner_params tuner_tnf_8831bgff_params[] = { 748 + static const struct tuner_params tuner_tnf_8831bgff_params[] = { 749 749 { 750 750 .type = TUNER_PARAM_TYPE_PAL, 751 751 .ranges = tuner_tnf_8831bgff_pal_ranges, ··· 755 755 756 756 /* ------------ TUNER_MICROTUNE_4042FI5 - Microtune NTSC ------------ */ 757 757 758 - static struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = { 758 + static const struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = { 759 759 { 16 * 162.00 /*MHz*/, 0x8e, 0xa2, }, 760 760 { 16 * 457.00 /*MHz*/, 0x8e, 0x94, }, 761 761 { 16 * 999.99 , 0x8e, 0x31, }, 762 762 }; 763 763 764 - static struct tuner_range tuner_microtune_4042fi5_atsc_ranges[] = { 764 + static const struct tuner_range tuner_microtune_4042fi5_atsc_ranges[] = { 765 765 { 16 * 162.00 /*MHz*/, 0x8e, 0xa1, }, 766 766 { 16 * 457.00 /*MHz*/, 0x8e, 0x91, }, 767 767 { 16 * 999.99 , 0x8e, 0x31, }, 768 768 }; 769 769 770 - static struct tuner_params tuner_microtune_4042fi5_params[] = { 770 + static const struct tuner_params tuner_microtune_4042fi5_params[] = { 771 771 { 772 772 .type = TUNER_PARAM_TYPE_NTSC, 773 773 .ranges = tuner_microtune_4042fi5_ntsc_ranges, ··· 784 784 /* 50-59 */ 785 785 /* ------------ TUNER_TCL_2002N - TCL NTSC ------------ */ 786 786 787 - static struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = { 787 + static const struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = { 788 788 { 16 * 172.00 /*MHz*/, 0x8e, 0x01, }, 789 789 { 16 * 448.00 /*MHz*/, 0x8e, 0x02, }, 790 790 { 16 * 999.99 , 0x8e, 0x08, }, 791 791 }; 792 792 793 - static struct tuner_params tuner_tcl_2002n_params[] = { 793 + static const struct tuner_params tuner_tcl_2002n_params[] = { 794 794 { 795 795 .type = TUNER_PARAM_TYPE_NTSC, 796 796 .ranges = tuner_tcl_2002n_ntsc_ranges, ··· 801 801 802 802 /* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */ 803 803 804 - static struct tuner_params tuner_philips_fm1256_ih3_params[] = { 804 + static const struct tuner_params tuner_philips_fm1256_ih3_params[] = { 805 805 { 806 806 .type = TUNER_PARAM_TYPE_PAL, 807 807 .ranges = tuner_fm1236_mk3_ntsc_ranges, ··· 813 813 /* ------------ TUNER_THOMSON_DTT7610 - THOMSON ATSC ------------ */ 814 814 815 815 /* single range used for both ntsc and atsc */ 816 - static struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = { 816 + static const struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = { 817 817 { 16 * 157.25 /*MHz*/, 0x8e, 0x39, }, 818 818 { 16 * 454.00 /*MHz*/, 0x8e, 0x3a, }, 819 819 { 16 * 999.99 , 0x8e, 0x3c, }, 820 820 }; 821 821 822 - static struct tuner_params tuner_thomson_dtt7610_params[] = { 822 + static const struct tuner_params tuner_thomson_dtt7610_params[] = { 823 823 { 824 824 .type = TUNER_PARAM_TYPE_NTSC, 825 825 .ranges = tuner_thomson_dtt7610_ntsc_ranges, ··· 835 835 836 836 /* ------------ TUNER_PHILIPS_FQ1286 - Philips NTSC ------------ */ 837 837 838 - static struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = { 838 + static const struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = { 839 839 { 16 * 160.00 /*MHz*/, 0x8e, 0x41, }, 840 840 { 16 * 454.00 /*MHz*/, 0x8e, 0x42, }, 841 841 { 16 * 999.99 , 0x8e, 0x04, }, 842 842 }; 843 843 844 - static struct tuner_params tuner_philips_fq1286_params[] = { 844 + static const struct tuner_params tuner_philips_fq1286_params[] = { 845 845 { 846 846 .type = TUNER_PARAM_TYPE_NTSC, 847 847 .ranges = tuner_philips_fq1286_ntsc_ranges, ··· 851 851 852 852 /* ------------ TUNER_TCL_2002MB - TCL PAL ------------ */ 853 853 854 - static struct tuner_range tuner_tcl_2002mb_pal_ranges[] = { 854 + static const struct tuner_range tuner_tcl_2002mb_pal_ranges[] = { 855 855 { 16 * 170.00 /*MHz*/, 0xce, 0x01, }, 856 856 { 16 * 450.00 /*MHz*/, 0xce, 0x02, }, 857 857 { 16 * 999.99 , 0xce, 0x08, }, 858 858 }; 859 859 860 - static struct tuner_params tuner_tcl_2002mb_params[] = { 860 + static const struct tuner_params tuner_tcl_2002mb_params[] = { 861 861 { 862 862 .type = TUNER_PARAM_TYPE_PAL, 863 863 .ranges = tuner_tcl_2002mb_pal_ranges, ··· 867 867 868 868 /* ------------ TUNER_PHILIPS_FQ1216AME_MK4 - Philips PAL ------------ */ 869 869 870 - static struct tuner_range tuner_philips_fq12_6a___mk4_pal_ranges[] = { 870 + static const struct tuner_range tuner_philips_fq12_6a___mk4_pal_ranges[] = { 871 871 { 16 * 160.00 /*MHz*/, 0xce, 0x01, }, 872 872 { 16 * 442.00 /*MHz*/, 0xce, 0x02, }, 873 873 { 16 * 999.99 , 0xce, 0x04, }, 874 874 }; 875 875 876 - static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = { 876 + static const struct tuner_params tuner_philips_fq1216ame_mk4_params[] = { 877 877 { 878 878 .type = TUNER_PARAM_TYPE_PAL, 879 879 .ranges = tuner_philips_fq12_6a___mk4_pal_ranges, ··· 890 890 891 891 /* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */ 892 892 893 - static struct tuner_params tuner_philips_fq1236a_mk4_params[] = { 893 + static const struct tuner_params tuner_philips_fq1236a_mk4_params[] = { 894 894 { 895 895 .type = TUNER_PARAM_TYPE_NTSC, 896 896 .ranges = tuner_fm1236_mk3_ntsc_ranges, ··· 900 900 901 901 /* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */ 902 902 903 - static struct tuner_params tuner_ymec_tvf_8531mf_params[] = { 903 + static const struct tuner_params tuner_ymec_tvf_8531mf_params[] = { 904 904 { 905 905 .type = TUNER_PARAM_TYPE_NTSC, 906 906 .ranges = tuner_philips_ntsc_m_ranges, ··· 910 910 911 911 /* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */ 912 912 913 - static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = { 913 + static const struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = { 914 914 { 16 * 160.00 /*MHz*/, 0x8e, 0x01, }, 915 915 { 16 * 454.00 /*MHz*/, 0x8e, 0x02, }, 916 916 { 16 * 999.99 , 0x8e, 0x04, }, 917 917 }; 918 918 919 - static struct tuner_params tuner_ymec_tvf_5533mf_params[] = { 919 + static const struct tuner_params tuner_ymec_tvf_5533mf_params[] = { 920 920 { 921 921 .type = TUNER_PARAM_TYPE_NTSC, 922 922 .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges, ··· 928 928 /* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ */ 929 929 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */ 930 930 931 - static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = { 931 + static const struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = { 932 932 { 16 * 145.25 /*MHz*/, 0x8e, 0x39, }, 933 933 { 16 * 415.25 /*MHz*/, 0x8e, 0x3a, }, 934 934 { 16 * 999.99 , 0x8e, 0x3c, }, 935 935 }; 936 936 937 - static struct tuner_range tuner_thomson_dtt761x_atsc_ranges[] = { 937 + static const struct tuner_range tuner_thomson_dtt761x_atsc_ranges[] = { 938 938 { 16 * 147.00 /*MHz*/, 0x8e, 0x39, }, 939 939 { 16 * 417.00 /*MHz*/, 0x8e, 0x3a, }, 940 940 { 16 * 999.99 , 0x8e, 0x3c, }, 941 941 }; 942 942 943 - static struct tuner_params tuner_thomson_dtt761x_params[] = { 943 + static const struct tuner_params tuner_thomson_dtt761x_params[] = { 944 944 { 945 945 .type = TUNER_PARAM_TYPE_NTSC, 946 946 .ranges = tuner_thomson_dtt761x_ntsc_ranges, ··· 959 959 960 960 /* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */ 961 961 962 - static struct tuner_range tuner_tena_9533_di_pal_ranges[] = { 962 + static const struct tuner_range tuner_tena_9533_di_pal_ranges[] = { 963 963 { 16 * 160.25 /*MHz*/, 0x8e, 0x01, }, 964 964 { 16 * 464.25 /*MHz*/, 0x8e, 0x02, }, 965 965 { 16 * 999.99 , 0x8e, 0x04, }, 966 966 }; 967 967 968 - static struct tuner_params tuner_tena_9533_di_params[] = { 968 + static const struct tuner_params tuner_tena_9533_di_params[] = { 969 969 { 970 970 .type = TUNER_PARAM_TYPE_PAL, 971 971 .ranges = tuner_tena_9533_di_pal_ranges, ··· 975 975 976 976 /* ------------ TUNER_TENA_TNF_5337 - Tena tnf5337MFD STD M/N ------------ */ 977 977 978 - static struct tuner_range tuner_tena_tnf_5337_ntsc_ranges[] = { 978 + static const struct tuner_range tuner_tena_tnf_5337_ntsc_ranges[] = { 979 979 { 16 * 166.25 /*MHz*/, 0x86, 0x01, }, 980 980 { 16 * 466.25 /*MHz*/, 0x86, 0x02, }, 981 981 { 16 * 999.99 , 0x86, 0x08, }, 982 982 }; 983 983 984 - static struct tuner_params tuner_tena_tnf_5337_params[] = { 984 + static const struct tuner_params tuner_tena_tnf_5337_params[] = { 985 985 { 986 986 .type = TUNER_PARAM_TYPE_NTSC, 987 987 .ranges = tuner_tena_tnf_5337_ntsc_ranges, ··· 991 991 992 992 /* ------------ TUNER_PHILIPS_FMD1216ME(X)_MK3 - Philips PAL ------------ */ 993 993 994 - static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = { 994 + static const struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = { 995 995 { 16 * 160.00 /*MHz*/, 0x86, 0x51, }, 996 996 { 16 * 442.00 /*MHz*/, 0x86, 0x52, }, 997 997 { 16 * 999.99 , 0x86, 0x54, }, 998 998 }; 999 999 1000 - static struct tuner_range tuner_philips_fmd1216me_mk3_dvb_ranges[] = { 1000 + static const struct tuner_range tuner_philips_fmd1216me_mk3_dvb_ranges[] = { 1001 1001 { 16 * 143.87 /*MHz*/, 0xbc, 0x41 }, 1002 1002 { 16 * 158.87 /*MHz*/, 0xf4, 0x41 }, 1003 1003 { 16 * 329.87 /*MHz*/, 0xbc, 0x42 }, ··· 1007 1007 { 16 * 999.99 , 0xfc, 0x44 }, 1008 1008 }; 1009 1009 1010 - static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = { 1010 + static const struct tuner_params tuner_philips_fmd1216me_mk3_params[] = { 1011 1011 { 1012 1012 .type = TUNER_PARAM_TYPE_PAL, 1013 1013 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges, ··· 1027 1027 }, 1028 1028 }; 1029 1029 1030 - static struct tuner_params tuner_philips_fmd1216mex_mk3_params[] = { 1030 + static const struct tuner_params tuner_philips_fmd1216mex_mk3_params[] = { 1031 1031 { 1032 1032 .type = TUNER_PARAM_TYPE_PAL, 1033 1033 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges, ··· 1051 1051 1052 1052 /* ------ TUNER_LG_TDVS_H06XF - LG INNOTEK / INFINEON ATSC ----- */ 1053 1053 1054 - static struct tuner_range tuner_tua6034_ntsc_ranges[] = { 1054 + static const struct tuner_range tuner_tua6034_ntsc_ranges[] = { 1055 1055 { 16 * 165.00 /*MHz*/, 0x8e, 0x01 }, 1056 1056 { 16 * 450.00 /*MHz*/, 0x8e, 0x02 }, 1057 1057 { 16 * 999.99 , 0x8e, 0x04 }, 1058 1058 }; 1059 1059 1060 - static struct tuner_range tuner_tua6034_atsc_ranges[] = { 1060 + static const struct tuner_range tuner_tua6034_atsc_ranges[] = { 1061 1061 { 16 * 165.00 /*MHz*/, 0xce, 0x01 }, 1062 1062 { 16 * 450.00 /*MHz*/, 0xce, 0x02 }, 1063 1063 { 16 * 999.99 , 0xce, 0x04 }, 1064 1064 }; 1065 1065 1066 - static struct tuner_params tuner_lg_tdvs_h06xf_params[] = { 1066 + static const struct tuner_params tuner_lg_tdvs_h06xf_params[] = { 1067 1067 { 1068 1068 .type = TUNER_PARAM_TYPE_NTSC, 1069 1069 .ranges = tuner_tua6034_ntsc_ranges, ··· 1079 1079 1080 1080 /* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */ 1081 1081 1082 - static struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = { 1082 + static const struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = { 1083 1083 { 16 * 160.25 /*MHz*/, 0x8e, 0x01, }, 1084 1084 { 16 * 464.25 /*MHz*/, 0x8e, 0x02, }, 1085 1085 { 16 * 999.99 , 0x8e, 0x08, }, 1086 1086 }; 1087 1087 1088 - static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = { 1088 + static const struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = { 1089 1089 { 1090 1090 .type = TUNER_PARAM_TYPE_PAL, 1091 1091 .ranges = tuner_ymec_tvf66t5_b_dff_pal_ranges, ··· 1095 1095 1096 1096 /* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */ 1097 1097 1098 - static struct tuner_range tuner_lg_taln_ntsc_ranges[] = { 1098 + static const struct tuner_range tuner_lg_taln_ntsc_ranges[] = { 1099 1099 { 16 * 137.25 /*MHz*/, 0x8e, 0x01, }, 1100 1100 { 16 * 373.25 /*MHz*/, 0x8e, 0x02, }, 1101 1101 { 16 * 999.99 , 0x8e, 0x08, }, 1102 1102 }; 1103 1103 1104 - static struct tuner_range tuner_lg_taln_pal_secam_ranges[] = { 1104 + static const struct tuner_range tuner_lg_taln_pal_secam_ranges[] = { 1105 1105 { 16 * 150.00 /*MHz*/, 0x8e, 0x01, }, 1106 1106 { 16 * 425.00 /*MHz*/, 0x8e, 0x02, }, 1107 1107 { 16 * 999.99 , 0x8e, 0x08, }, 1108 1108 }; 1109 1109 1110 - static struct tuner_params tuner_lg_taln_params[] = { 1110 + static const struct tuner_params tuner_lg_taln_params[] = { 1111 1111 { 1112 1112 .type = TUNER_PARAM_TYPE_NTSC, 1113 1113 .ranges = tuner_lg_taln_ntsc_ranges, ··· 1121 1121 1122 1122 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */ 1123 1123 1124 - static struct tuner_range tuner_philips_td1316_pal_ranges[] = { 1124 + static const struct tuner_range tuner_philips_td1316_pal_ranges[] = { 1125 1125 { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, }, 1126 1126 { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, }, 1127 1127 { 16 * 999.99 , 0xc8, 0xa4, }, 1128 1128 }; 1129 1129 1130 - static struct tuner_range tuner_philips_td1316_dvb_ranges[] = { 1130 + static const struct tuner_range tuner_philips_td1316_dvb_ranges[] = { 1131 1131 { 16 * 93.834 /*MHz*/, 0xca, 0x60, }, 1132 1132 { 16 * 123.834 /*MHz*/, 0xca, 0xa0, }, 1133 1133 { 16 * 163.834 /*MHz*/, 0xca, 0xc0, }, ··· 1139 1139 { 16 * 999.999 , 0xca, 0xe0, }, 1140 1140 }; 1141 1141 1142 - static struct tuner_params tuner_philips_td1316_params[] = { 1142 + static const struct tuner_params tuner_philips_td1316_params[] = { 1143 1143 { 1144 1144 .type = TUNER_PARAM_TYPE_PAL, 1145 1145 .ranges = tuner_philips_td1316_pal_ranges, ··· 1155 1155 1156 1156 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */ 1157 1157 1158 - static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = { 1158 + static const struct tuner_range tuner_tuv1236d_ntsc_ranges[] = { 1159 1159 { 16 * 157.25 /*MHz*/, 0xce, 0x01, }, 1160 1160 { 16 * 454.00 /*MHz*/, 0xce, 0x02, }, 1161 1161 { 16 * 999.99 , 0xce, 0x04, }, 1162 1162 }; 1163 1163 1164 - static struct tuner_range tuner_tuv1236d_atsc_ranges[] = { 1164 + static const struct tuner_range tuner_tuv1236d_atsc_ranges[] = { 1165 1165 { 16 * 157.25 /*MHz*/, 0xc6, 0x41, }, 1166 1166 { 16 * 454.00 /*MHz*/, 0xc6, 0x42, }, 1167 1167 { 16 * 999.99 , 0xc6, 0x44, }, 1168 1168 }; 1169 1169 1170 - static struct tuner_params tuner_tuv1236d_params[] = { 1170 + static const struct tuner_params tuner_tuv1236d_params[] = { 1171 1171 { 1172 1172 .type = TUNER_PARAM_TYPE_NTSC, 1173 1173 .ranges = tuner_tuv1236d_ntsc_ranges, ··· 1187 1187 * models based on TI SN 761677 chip on both PAL and NTSC 1188 1188 */ 1189 1189 1190 - static struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = { 1190 + static const struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = { 1191 1191 { 16 * 168.25 /*MHz*/, 0x8e, 0x01, }, 1192 1192 { 16 * 471.25 /*MHz*/, 0x8e, 0x02, }, 1193 1193 { 16 * 999.99 , 0x8e, 0x08, }, 1194 1194 }; 1195 1195 1196 - static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = { 1196 + static const struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = { 1197 1197 { 16 * 169.25 /*MHz*/, 0x8e, 0x01, }, 1198 1198 { 16 * 469.25 /*MHz*/, 0x8e, 0x02, }, 1199 1199 { 16 * 999.99 , 0x8e, 0x08, }, 1200 1200 }; 1201 1201 1202 - static struct tuner_params tuner_tnf_5335mf_params[] = { 1202 + static const struct tuner_params tuner_tnf_5335mf_params[] = { 1203 1203 { 1204 1204 .type = TUNER_PARAM_TYPE_NTSC, 1205 1205 .ranges = tuner_tnf_5335mf_ntsc_ranges, ··· 1216 1216 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */ 1217 1217 1218 1218 /* '+ 4' turns on the Low Noise Amplifier */ 1219 - static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = { 1219 + static const struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = { 1220 1220 { 16 * 130.00 /*MHz*/, 0xce, 0x01 + 4, }, 1221 1221 { 16 * 364.50 /*MHz*/, 0xce, 0x02 + 4, }, 1222 1222 { 16 * 999.99 , 0xce, 0x08 + 4, }, 1223 1223 }; 1224 1224 1225 - static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = { 1225 + static const struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = { 1226 1226 { 1227 1227 .type = TUNER_PARAM_TYPE_NTSC, 1228 1228 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges, ··· 1232 1232 1233 1233 /* ------------ TUNER_THOMSON_FE6600 - DViCO Hybrid PAL ------------ */ 1234 1234 1235 - static struct tuner_range tuner_thomson_fe6600_pal_ranges[] = { 1235 + static const struct tuner_range tuner_thomson_fe6600_pal_ranges[] = { 1236 1236 { 16 * 160.00 /*MHz*/, 0xfe, 0x11, }, 1237 1237 { 16 * 442.00 /*MHz*/, 0xf6, 0x12, }, 1238 1238 { 16 * 999.99 , 0xf6, 0x18, }, 1239 1239 }; 1240 1240 1241 - static struct tuner_range tuner_thomson_fe6600_dvb_ranges[] = { 1241 + static const struct tuner_range tuner_thomson_fe6600_dvb_ranges[] = { 1242 1242 { 16 * 250.00 /*MHz*/, 0xb4, 0x12, }, 1243 1243 { 16 * 455.00 /*MHz*/, 0xfe, 0x11, }, 1244 1244 { 16 * 775.50 /*MHz*/, 0xbc, 0x18, }, 1245 1245 { 16 * 999.99 , 0xf4, 0x18, }, 1246 1246 }; 1247 1247 1248 - static struct tuner_params tuner_thomson_fe6600_params[] = { 1248 + static const struct tuner_params tuner_thomson_fe6600_params[] = { 1249 1249 { 1250 1250 .type = TUNER_PARAM_TYPE_PAL, 1251 1251 .ranges = tuner_thomson_fe6600_pal_ranges, ··· 1262 1262 /* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ */ 1263 1263 1264 1264 /* '+ 4' turns on the Low Noise Amplifier */ 1265 - static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = { 1265 + static const struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = { 1266 1266 { 16 * 146.25 /*MHz*/, 0xce, 0x01 + 4, }, 1267 1267 { 16 * 428.50 /*MHz*/, 0xce, 0x02 + 4, }, 1268 1268 { 16 * 999.99 , 0xce, 0x08 + 4, }, 1269 1269 }; 1270 1270 1271 - static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = { 1271 + static const struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = { 1272 1272 { 1273 1273 .type = TUNER_PARAM_TYPE_PAL, 1274 1274 .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges, ··· 1282 1282 1283 1283 /* ------------ TUNER_TCL_MF02GIP-5N-E - TCL MF02GIP-5N ------------ */ 1284 1284 1285 - static struct tuner_range tuner_tcl_mf02gip_5n_ntsc_ranges[] = { 1285 + static const struct tuner_range tuner_tcl_mf02gip_5n_ntsc_ranges[] = { 1286 1286 { 16 * 172.00 /*MHz*/, 0x8e, 0x01, }, 1287 1287 { 16 * 448.00 /*MHz*/, 0x8e, 0x02, }, 1288 1288 { 16 * 999.99 , 0x8e, 0x04, }, 1289 1289 }; 1290 1290 1291 - static struct tuner_params tuner_tcl_mf02gip_5n_params[] = { 1291 + static const struct tuner_params tuner_tcl_mf02gip_5n_params[] = { 1292 1292 { 1293 1293 .type = TUNER_PARAM_TYPE_NTSC, 1294 1294 .ranges = tuner_tcl_mf02gip_5n_ntsc_ranges, ··· 1300 1300 /* 80-89 */ 1301 1301 /* --------- TUNER_PHILIPS_FQ1216LME_MK3 -- active loopthrough, no FM ------- */ 1302 1302 1303 - static struct tuner_params tuner_fq1216lme_mk3_params[] = { 1303 + static const struct tuner_params tuner_fq1216lme_mk3_params[] = { 1304 1304 { 1305 1305 .type = TUNER_PARAM_TYPE_PAL, 1306 1306 .ranges = tuner_fm1216me_mk3_pal_ranges, ··· 1321 1321 1322 1322 /* ----- TUNER_PARTSNIC_PTI_5NF05 - Partsnic (Daewoo) PTI-5NF05 NTSC ----- */ 1323 1323 1324 - static struct tuner_range tuner_partsnic_pti_5nf05_ranges[] = { 1324 + static const struct tuner_range tuner_partsnic_pti_5nf05_ranges[] = { 1325 1325 /* The datasheet specified channel ranges and the bandswitch byte */ 1326 1326 /* The control byte value of 0x8e is just a guess */ 1327 1327 { 16 * 133.25 /*MHz*/, 0x8e, 0x01, }, /* Channels 2 - B */ ··· 1329 1329 { 16 * 999.99 , 0x8e, 0x08, }, /* Channels W+12 - 69 */ 1330 1330 }; 1331 1331 1332 - static struct tuner_params tuner_partsnic_pti_5nf05_params[] = { 1332 + static const struct tuner_params tuner_partsnic_pti_5nf05_params[] = { 1333 1333 { 1334 1334 .type = TUNER_PARAM_TYPE_NTSC, 1335 1335 .ranges = tuner_partsnic_pti_5nf05_ranges, ··· 1340 1340 1341 1341 /* --------- TUNER_PHILIPS_CU1216L - DVB-C NIM ------------------------- */ 1342 1342 1343 - static struct tuner_range tuner_cu1216l_ranges[] = { 1343 + static const struct tuner_range tuner_cu1216l_ranges[] = { 1344 1344 { 16 * 160.25 /*MHz*/, 0xce, 0x01 }, 1345 1345 { 16 * 444.25 /*MHz*/, 0xce, 0x02 }, 1346 1346 { 16 * 999.99 , 0xce, 0x04 }, 1347 1347 }; 1348 1348 1349 - static struct tuner_params tuner_philips_cu1216l_params[] = { 1349 + static const struct tuner_params tuner_philips_cu1216l_params[] = { 1350 1350 { 1351 1351 .type = TUNER_PARAM_TYPE_DIGITAL, 1352 1352 .ranges = tuner_cu1216l_ranges, ··· 1357 1357 1358 1358 /* ---------------------- TUNER_SONY_BTF_PXN01Z ------------------------ */ 1359 1359 1360 - static struct tuner_range tuner_sony_btf_pxn01z_ranges[] = { 1360 + static const struct tuner_range tuner_sony_btf_pxn01z_ranges[] = { 1361 1361 { 16 * 137.25 /*MHz*/, 0x8e, 0x01, }, 1362 1362 { 16 * 367.25 /*MHz*/, 0x8e, 0x02, }, 1363 1363 { 16 * 999.99 , 0x8e, 0x04, }, 1364 1364 }; 1365 1365 1366 - static struct tuner_params tuner_sony_btf_pxn01z_params[] = { 1366 + static const struct tuner_params tuner_sony_btf_pxn01z_params[] = { 1367 1367 { 1368 1368 .type = TUNER_PARAM_TYPE_NTSC, 1369 1369 .ranges = tuner_sony_btf_pxn01z_ranges, ··· 1373 1373 1374 1374 /* ------------ TUNER_PHILIPS_FQ1236_MK5 - Philips NTSC ------------ */ 1375 1375 1376 - static struct tuner_params tuner_philips_fq1236_mk5_params[] = { 1376 + static const struct tuner_params tuner_philips_fq1236_mk5_params[] = { 1377 1377 { 1378 1378 .type = TUNER_PARAM_TYPE_NTSC, 1379 1379 .ranges = tuner_fm1236_mk3_ntsc_ranges, ··· 1384 1384 1385 1385 /* --------- Sony BTF-PG472Z PAL/SECAM ------- */ 1386 1386 1387 - static struct tuner_range tuner_sony_btf_pg472z_ranges[] = { 1387 + static const struct tuner_range tuner_sony_btf_pg472z_ranges[] = { 1388 1388 { 16 * 144.25 /*MHz*/, 0xc6, 0x01, }, 1389 1389 { 16 * 427.25 /*MHz*/, 0xc6, 0x02, }, 1390 1390 { 16 * 999.99 , 0xc6, 0x04, }, 1391 1391 }; 1392 1392 1393 - static struct tuner_params tuner_sony_btf_pg472z_params[] = { 1393 + static const struct tuner_params tuner_sony_btf_pg472z_params[] = { 1394 1394 { 1395 1395 .type = TUNER_PARAM_TYPE_PAL, 1396 1396 .ranges = tuner_sony_btf_pg472z_ranges, ··· 1404 1404 /* 90-99 */ 1405 1405 /* --------- Sony BTF-PG467Z NTSC-M-JP ------- */ 1406 1406 1407 - static struct tuner_range tuner_sony_btf_pg467z_ranges[] = { 1407 + static const struct tuner_range tuner_sony_btf_pg467z_ranges[] = { 1408 1408 { 16 * 220.25 /*MHz*/, 0xc6, 0x01, }, 1409 1409 { 16 * 467.25 /*MHz*/, 0xc6, 0x02, }, 1410 1410 { 16 * 999.99 , 0xc6, 0x04, }, 1411 1411 }; 1412 1412 1413 - static struct tuner_params tuner_sony_btf_pg467z_params[] = { 1413 + static const struct tuner_params tuner_sony_btf_pg467z_params[] = { 1414 1414 { 1415 1415 .type = TUNER_PARAM_TYPE_NTSC, 1416 1416 .ranges = tuner_sony_btf_pg467z_ranges, ··· 1420 1420 1421 1421 /* --------- Sony BTF-PG463Z NTSC-M ------- */ 1422 1422 1423 - static struct tuner_range tuner_sony_btf_pg463z_ranges[] = { 1423 + static const struct tuner_range tuner_sony_btf_pg463z_ranges[] = { 1424 1424 { 16 * 130.25 /*MHz*/, 0xc6, 0x01, }, 1425 1425 { 16 * 364.25 /*MHz*/, 0xc6, 0x02, }, 1426 1426 { 16 * 999.99 , 0xc6, 0x04, }, 1427 1427 }; 1428 1428 1429 - static struct tuner_params tuner_sony_btf_pg463z_params[] = { 1429 + static const struct tuner_params tuner_sony_btf_pg463z_params[] = { 1430 1430 { 1431 1431 .type = TUNER_PARAM_TYPE_NTSC, 1432 1432 .ranges = tuner_sony_btf_pg463z_ranges, ··· 1436 1436 1437 1437 /* ------------- TUNER_TENA_TNF_931D_DFDR1 - NXP TDA6509A ------------- */ 1438 1438 1439 - static struct tuner_range tuner_tena_tnf_931d_dfdr1_ranges[] = { 1439 + static const struct tuner_range tuner_tena_tnf_931d_dfdr1_ranges[] = { 1440 1440 { 16 * 161.15 /*MHz*/, 0x8e, 0x01, }, 1441 1441 { 16 * 463.15 /*MHz*/, 0x8e, 0x02, }, 1442 1442 { 16 * 999.99 , 0x8e, 0x08, }, 1443 1443 }; 1444 1444 1445 - static struct tuner_params tuner_tena_tnf_931d_dfdr1_params[] = { 1445 + static const struct tuner_params tuner_tena_tnf_931d_dfdr1_params[] = { 1446 1446 { 1447 1447 .type = TUNER_PARAM_TYPE_PAL, 1448 1448 .ranges = tuner_tena_tnf_931d_dfdr1_ranges, ··· 1452 1452 1453 1453 /* --------------------------------------------------------------------- */ 1454 1454 1455 - struct tunertype tuners[] = { 1455 + const struct tunertype tuners[] = { 1456 1456 /* 0-9 */ 1457 1457 [TUNER_TEMIC_PAL] = { /* TEMIC PAL */ 1458 1458 .name = "Temic PAL (4002 FH5)",
+3 -3
include/media/tuner-types.h
··· 168 168 u16 iffreq; 169 169 170 170 unsigned int count; 171 - struct tuner_range *ranges; 171 + const struct tuner_range *ranges; 172 172 }; 173 173 174 174 /** ··· 189 189 struct tunertype { 190 190 char *name; 191 191 unsigned int count; 192 - struct tuner_params *params; 192 + const struct tuner_params *params; 193 193 194 194 u16 min; 195 195 u16 max; ··· 199 199 u8 *sleepdata; 200 200 }; 201 201 202 - extern struct tunertype tuners[]; 202 + extern const struct tunertype tuners[]; 203 203 extern unsigned const int tuner_count; 204 204 205 205 #endif