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

[media] dvb: make DVB frontend *_ops instances "const"

These are immutable. Making them "const" allows the compiler to move
them to the "rodata" section.

Note that cxd2841er_t_c_ops cannot be made "const", because
cxd2841er_attach() modifies it. Ouch!

[mchehab@s-opensource.com: fix merge conflicts]
Signed-off-by: Max Kellermann <max.kellermann@gmail.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Max Kellermann and committed by
Mauro Carvalho Chehab
bd336e63 c183d358

+165 -165
+1 -1
drivers/media/common/siano/smsdvb-main.c
··· 1044 1044 /* do nothing */ 1045 1045 } 1046 1046 1047 - static struct dvb_frontend_ops smsdvb_fe_ops = { 1047 + static const struct dvb_frontend_ops smsdvb_fe_ops = { 1048 1048 .info = { 1049 1049 .name = "Siano Mobile Digital MDTV Receiver", 1050 1050 .frequency_min = 44250000,
+2 -2
drivers/media/dvb-frontends/af9013.c
··· 1351 1351 kfree(state); 1352 1352 } 1353 1353 1354 - static struct dvb_frontend_ops af9013_ops; 1354 + static const struct dvb_frontend_ops af9013_ops; 1355 1355 1356 1356 static int af9013_download_firmware(struct af9013_state *state) 1357 1357 { ··· 1516 1516 } 1517 1517 EXPORT_SYMBOL(af9013_attach); 1518 1518 1519 - static struct dvb_frontend_ops af9013_ops = { 1519 + static const struct dvb_frontend_ops af9013_ops = { 1520 1520 .delsys = { SYS_DVBT }, 1521 1521 .info = { 1522 1522 .name = "Afatech AF9013",
+1 -1
drivers/media/dvb-frontends/af9033.c
··· 1198 1198 return ret; 1199 1199 } 1200 1200 1201 - static struct dvb_frontend_ops af9033_ops = { 1201 + static const struct dvb_frontend_ops af9033_ops = { 1202 1202 .delsys = { SYS_DVBT }, 1203 1203 .info = { 1204 1204 .name = "Afatech AF9033 (DVB-T)",
+1 -1
drivers/media/dvb-frontends/as102_fe.c
··· 415 415 } 416 416 417 417 418 - static struct dvb_frontend_ops as102_fe_ops = { 418 + static const struct dvb_frontend_ops as102_fe_ops = { 419 419 .delsys = { SYS_DVBT }, 420 420 .info = { 421 421 .name = "Abilis AS102 DVB-T",
+1 -1
drivers/media/dvb-frontends/atbm8830.c
··· 428 428 return atbm8830_write_reg(priv, REG_I2C_GATE, enable ? 1 : 0); 429 429 } 430 430 431 - static struct dvb_frontend_ops atbm8830_ops = { 431 + static const struct dvb_frontend_ops atbm8830_ops = { 432 432 .delsys = { SYS_DTMB }, 433 433 .info = { 434 434 .name = "AltoBeam ATBM8830/8831 DMB-TH",
+2 -2
drivers/media/dvb-frontends/au8522_dig.c
··· 834 834 return 0; 835 835 } 836 836 837 - static struct dvb_frontend_ops au8522_ops; 837 + static const struct dvb_frontend_ops au8522_ops; 838 838 839 839 840 840 static void au8522_release(struct dvb_frontend *fe) ··· 894 894 } 895 895 EXPORT_SYMBOL(au8522_attach); 896 896 897 - static struct dvb_frontend_ops au8522_ops = { 897 + static const struct dvb_frontend_ops au8522_ops = { 898 898 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 899 899 .info = { 900 900 .name = "Auvitek AU8522 QAM/8VSB Frontend",
+2 -2
drivers/media/dvb-frontends/bcm3510.c
··· 788 788 } 789 789 790 790 791 - static struct dvb_frontend_ops bcm3510_ops; 791 + static const struct dvb_frontend_ops bcm3510_ops; 792 792 793 793 struct dvb_frontend* bcm3510_attach(const struct bcm3510_config *config, 794 794 struct i2c_adapter *i2c) ··· 834 834 } 835 835 EXPORT_SYMBOL(bcm3510_attach); 836 836 837 - static struct dvb_frontend_ops bcm3510_ops = { 837 + static const struct dvb_frontend_ops bcm3510_ops = { 838 838 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 839 839 .info = { 840 840 .name = "Broadcom BCM3510 VSB/QAM frontend",
+2 -2
drivers/media/dvb-frontends/cx22700.c
··· 380 380 kfree(state); 381 381 } 382 382 383 - static struct dvb_frontend_ops cx22700_ops; 383 + static const struct dvb_frontend_ops cx22700_ops; 384 384 385 385 struct dvb_frontend* cx22700_attach(const struct cx22700_config* config, 386 386 struct i2c_adapter* i2c) ··· 408 408 return NULL; 409 409 } 410 410 411 - static struct dvb_frontend_ops cx22700_ops = { 411 + static const struct dvb_frontend_ops cx22700_ops = { 412 412 .delsys = { SYS_DVBT }, 413 413 .info = { 414 414 .name = "Conexant CX22700 DVB-T",
+2 -2
drivers/media/dvb-frontends/cx24110.c
··· 592 592 kfree(state); 593 593 } 594 594 595 - static struct dvb_frontend_ops cx24110_ops; 595 + static const struct dvb_frontend_ops cx24110_ops; 596 596 597 597 struct dvb_frontend* cx24110_attach(const struct cx24110_config* config, 598 598 struct i2c_adapter* i2c) ··· 625 625 return NULL; 626 626 } 627 627 628 - static struct dvb_frontend_ops cx24110_ops = { 628 + static const struct dvb_frontend_ops cx24110_ops = { 629 629 .delsys = { SYS_DVBS }, 630 630 .info = { 631 631 .name = "Conexant CX24110 DVB-S",
+2 -2
drivers/media/dvb-frontends/cx24116.c
··· 1116 1116 kfree(state); 1117 1117 } 1118 1118 1119 - static struct dvb_frontend_ops cx24116_ops; 1119 + static const struct dvb_frontend_ops cx24116_ops; 1120 1120 1121 1121 struct dvb_frontend *cx24116_attach(const struct cx24116_config *config, 1122 1122 struct i2c_adapter *i2c) ··· 1467 1467 return DVBFE_ALGO_HW; 1468 1468 } 1469 1469 1470 - static struct dvb_frontend_ops cx24116_ops = { 1470 + static const struct dvb_frontend_ops cx24116_ops = { 1471 1471 .delsys = { SYS_DVBS, SYS_DVBS2 }, 1472 1472 .info = { 1473 1473 .name = "Conexant CX24116/CX24118",
+2 -2
drivers/media/dvb-frontends/cx24117.c
··· 1164 1164 kfree(state); 1165 1165 } 1166 1166 1167 - static struct dvb_frontend_ops cx24117_ops; 1167 + static const struct dvb_frontend_ops cx24117_ops; 1168 1168 1169 1169 struct dvb_frontend *cx24117_attach(const struct cx24117_config *config, 1170 1170 struct i2c_adapter *i2c) ··· 1618 1618 return 0; 1619 1619 } 1620 1620 1621 - static struct dvb_frontend_ops cx24117_ops = { 1621 + static const struct dvb_frontend_ops cx24117_ops = { 1622 1622 .delsys = { SYS_DVBS, SYS_DVBS2 }, 1623 1623 .info = { 1624 1624 .name = "Conexant CX24117/CX24132",
+2 -2
drivers/media/dvb-frontends/cx24120.c
··· 267 267 return ret; 268 268 } 269 269 270 - static struct dvb_frontend_ops cx24120_ops; 270 + static const struct dvb_frontend_ops cx24120_ops; 271 271 272 272 struct dvb_frontend *cx24120_attach(const struct cx24120_config *config, 273 273 struct i2c_adapter *i2c) ··· 1551 1551 return 0; 1552 1552 } 1553 1553 1554 - static struct dvb_frontend_ops cx24120_ops = { 1554 + static const struct dvb_frontend_ops cx24120_ops = { 1555 1555 .delsys = { SYS_DVBS, SYS_DVBS2 }, 1556 1556 .info = { 1557 1557 .name = "Conexant CX24120/CX24118",
+2 -2
drivers/media/dvb-frontends/cx24123.c
··· 1049 1049 } 1050 1050 EXPORT_SYMBOL(cx24123_get_tuner_i2c_adapter); 1051 1051 1052 - static struct dvb_frontend_ops cx24123_ops; 1052 + static const struct dvb_frontend_ops cx24123_ops; 1053 1053 1054 1054 struct dvb_frontend *cx24123_attach(const struct cx24123_config *config, 1055 1055 struct i2c_adapter *i2c) ··· 1111 1111 } 1112 1112 EXPORT_SYMBOL(cx24123_attach); 1113 1113 1114 - static struct dvb_frontend_ops cx24123_ops = { 1114 + static const struct dvb_frontend_ops cx24123_ops = { 1115 1115 .delsys = { SYS_DVBS }, 1116 1116 .info = { 1117 1117 .name = "Conexant CX24123/CX24109",
+3 -3
drivers/media/dvb-frontends/cxd2841er.c
··· 3719 3719 return 0; 3720 3720 } 3721 3721 3722 - static struct dvb_frontend_ops cxd2841er_dvbs_s2_ops; 3722 + static const struct dvb_frontend_ops cxd2841er_dvbs_s2_ops; 3723 3723 static struct dvb_frontend_ops cxd2841er_t_c_ops; 3724 3724 3725 3725 static struct dvb_frontend *cxd2841er_attach(struct cxd2841er_config *cfg, ··· 3801 3801 } 3802 3802 EXPORT_SYMBOL(cxd2841er_attach_t_c); 3803 3803 3804 - static struct dvb_frontend_ops cxd2841er_dvbs_s2_ops = { 3804 + static const struct dvb_frontend_ops cxd2841er_dvbs_s2_ops = { 3805 3805 .delsys = { SYS_DVBS, SYS_DVBS2 }, 3806 3806 .info = { 3807 3807 .name = "Sony CXD2841ER DVB-S/S2 demodulator", ··· 3829 3829 .tune = cxd2841er_tune_s 3830 3830 }; 3831 3831 3832 - static struct dvb_frontend_ops cxd2841er_t_c_ops = { 3832 + static struct dvb_frontend_ops cxd2841er_t_c_ops = { 3833 3833 .delsys = { SYS_DVBT, SYS_DVBT2, SYS_DVBC_ANNEX_A }, 3834 3834 .info = { 3835 3835 .name = "", /* will set in attach function */
+2 -2
drivers/media/dvb-frontends/dib3000mb.c
··· 742 742 return 0; 743 743 } 744 744 745 - static struct dvb_frontend_ops dib3000mb_ops; 745 + static const struct dvb_frontend_ops dib3000mb_ops; 746 746 747 747 struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config, 748 748 struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops) ··· 782 782 return NULL; 783 783 } 784 784 785 - static struct dvb_frontend_ops dib3000mb_ops = { 785 + static const struct dvb_frontend_ops dib3000mb_ops = { 786 786 .delsys = { SYS_DVBT }, 787 787 .info = { 788 788 .name = "DiBcom 3000M-B DVB-T",
+2 -2
drivers/media/dvb-frontends/dib3000mc.c
··· 879 879 } 880 880 EXPORT_SYMBOL(dib3000mc_i2c_enumeration); 881 881 882 - static struct dvb_frontend_ops dib3000mc_ops; 882 + static const struct dvb_frontend_ops dib3000mc_ops; 883 883 884 884 struct dvb_frontend * dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib3000mc_config *cfg) 885 885 { ··· 912 912 } 913 913 EXPORT_SYMBOL(dib3000mc_attach); 914 914 915 - static struct dvb_frontend_ops dib3000mc_ops = { 915 + static const struct dvb_frontend_ops dib3000mc_ops = { 916 916 .delsys = { SYS_DVBT }, 917 917 .info = { 918 918 .name = "DiBcom 3000MC/P",
+2 -2
drivers/media/dvb-frontends/dib7000m.c
··· 1401 1401 EXPORT_SYMBOL(dib7000m_i2c_enumeration); 1402 1402 #endif 1403 1403 1404 - static struct dvb_frontend_ops dib7000m_ops; 1404 + static const struct dvb_frontend_ops dib7000m_ops; 1405 1405 struct dvb_frontend * dib7000m_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000m_config *cfg) 1406 1406 { 1407 1407 struct dvb_frontend *demod; ··· 1439 1439 } 1440 1440 EXPORT_SYMBOL(dib7000m_attach); 1441 1441 1442 - static struct dvb_frontend_ops dib7000m_ops = { 1442 + static const struct dvb_frontend_ops dib7000m_ops = { 1443 1443 .delsys = { SYS_DVBT }, 1444 1444 .info = { 1445 1445 .name = "DiBcom 7000MA/MB/PA/PB/MC",
+2 -2
drivers/media/dvb-frontends/dib7000p.c
··· 2721 2721 return 0; 2722 2722 } 2723 2723 2724 - static struct dvb_frontend_ops dib7000p_ops; 2724 + static const struct dvb_frontend_ops dib7000p_ops; 2725 2725 static struct dvb_frontend *dib7000p_init(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000p_config *cfg) 2726 2726 { 2727 2727 struct dvb_frontend *demod; ··· 2811 2811 } 2812 2812 EXPORT_SYMBOL(dib7000p_attach); 2813 2813 2814 - static struct dvb_frontend_ops dib7000p_ops = { 2814 + static const struct dvb_frontend_ops dib7000p_ops = { 2815 2815 .delsys = { SYS_DVBT }, 2816 2816 .info = { 2817 2817 .name = "DiBcom 7000PC",
+2 -2
drivers/media/dvb-frontends/dib9000.c
··· 2490 2490 } 2491 2491 EXPORT_SYMBOL(dib9000_get_slave_frontend); 2492 2492 2493 - static struct dvb_frontend_ops dib9000_ops; 2493 + static const struct dvb_frontend_ops dib9000_ops; 2494 2494 struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, const struct dib9000_config *cfg) 2495 2495 { 2496 2496 struct dvb_frontend *fe; ··· 2567 2567 } 2568 2568 EXPORT_SYMBOL(dib9000_attach); 2569 2569 2570 - static struct dvb_frontend_ops dib9000_ops = { 2570 + static const struct dvb_frontend_ops dib9000_ops = { 2571 2571 .delsys = { SYS_DVBT }, 2572 2572 .info = { 2573 2573 .name = "DiBcom 9000",
+2 -2
drivers/media/dvb-frontends/drx39xyj/drxj.c
··· 12264 12264 kfree(state); 12265 12265 } 12266 12266 12267 - static struct dvb_frontend_ops drx39xxj_ops; 12267 + static const struct dvb_frontend_ops drx39xxj_ops; 12268 12268 12269 12269 struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) 12270 12270 { ··· 12363 12363 } 12364 12364 EXPORT_SYMBOL(drx39xxj_attach); 12365 12365 12366 - static struct dvb_frontend_ops drx39xxj_ops = { 12366 + static const struct dvb_frontend_ops drx39xxj_ops = { 12367 12367 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 12368 12368 .info = { 12369 12369 .name = "Micronas DRX39xxj family Frontend",
+1 -1
drivers/media/dvb-frontends/drxd_hard.c
··· 2912 2912 kfree(state); 2913 2913 } 2914 2914 2915 - static struct dvb_frontend_ops drxd_ops = { 2915 + static const struct dvb_frontend_ops drxd_ops = { 2916 2916 .delsys = { SYS_DVBT}, 2917 2917 .info = { 2918 2918 .name = "Micronas DRXD DVB-T",
+1 -1
drivers/media/dvb-frontends/drxk_hard.c
··· 6737 6737 } 6738 6738 } 6739 6739 6740 - static struct dvb_frontend_ops drxk_ops = { 6740 + static const struct dvb_frontend_ops drxk_ops = { 6741 6741 /* .delsys will be filled dynamically */ 6742 6742 .info = { 6743 6743 .name = "DRXK",
+2 -2
drivers/media/dvb-frontends/ds3000.c
··· 830 830 kfree(state); 831 831 } 832 832 833 - static struct dvb_frontend_ops ds3000_ops; 833 + static const struct dvb_frontend_ops ds3000_ops; 834 834 835 835 struct dvb_frontend *ds3000_attach(const struct ds3000_config *config, 836 836 struct i2c_adapter *i2c) ··· 1104 1104 return 0; 1105 1105 } 1106 1106 1107 - static struct dvb_frontend_ops ds3000_ops = { 1107 + static const struct dvb_frontend_ops ds3000_ops = { 1108 1108 .delsys = { SYS_DVBS, SYS_DVBS2 }, 1109 1109 .info = { 1110 1110 .name = "Montage Technology DS3000",
+6 -6
drivers/media/dvb-frontends/dvb_dummy_fe.c
··· 119 119 kfree(state); 120 120 } 121 121 122 - static struct dvb_frontend_ops dvb_dummy_fe_ofdm_ops; 122 + static const struct dvb_frontend_ops dvb_dummy_fe_ofdm_ops; 123 123 124 124 struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void) 125 125 { ··· 136 136 return &state->frontend; 137 137 } 138 138 139 - static struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops; 139 + static const struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops; 140 140 141 141 struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void) 142 142 { ··· 153 153 return &state->frontend; 154 154 } 155 155 156 - static struct dvb_frontend_ops dvb_dummy_fe_qam_ops; 156 + static const struct dvb_frontend_ops dvb_dummy_fe_qam_ops; 157 157 158 158 struct dvb_frontend *dvb_dummy_fe_qam_attach(void) 159 159 { ··· 170 170 return &state->frontend; 171 171 } 172 172 173 - static struct dvb_frontend_ops dvb_dummy_fe_ofdm_ops = { 173 + static const struct dvb_frontend_ops dvb_dummy_fe_ofdm_ops = { 174 174 .delsys = { SYS_DVBT }, 175 175 .info = { 176 176 .name = "Dummy DVB-T", ··· 201 201 .read_ucblocks = dvb_dummy_fe_read_ucblocks, 202 202 }; 203 203 204 - static struct dvb_frontend_ops dvb_dummy_fe_qam_ops = { 204 + static const struct dvb_frontend_ops dvb_dummy_fe_qam_ops = { 205 205 .delsys = { SYS_DVBC_ANNEX_A }, 206 206 .info = { 207 207 .name = "Dummy DVB-C", ··· 230 230 .read_ucblocks = dvb_dummy_fe_read_ucblocks, 231 231 }; 232 232 233 - static struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops = { 233 + static const struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops = { 234 234 .delsys = { SYS_DVBS }, 235 235 .info = { 236 236 .name = "Dummy DVB-S",
+2 -2
drivers/media/dvb-frontends/ec100.c
··· 280 280 kfree(state); 281 281 } 282 282 283 - static struct dvb_frontend_ops ec100_ops; 283 + static const struct dvb_frontend_ops ec100_ops; 284 284 285 285 struct dvb_frontend *ec100_attach(const struct ec100_config *config, 286 286 struct i2c_adapter *i2c) ··· 315 315 } 316 316 EXPORT_SYMBOL(ec100_attach); 317 317 318 - static struct dvb_frontend_ops ec100_ops = { 318 + static const struct dvb_frontend_ops ec100_ops = { 319 319 .delsys = { SYS_DVBT }, 320 320 .info = { 321 321 .name = "E3C EC100 DVB-T",
+2 -2
drivers/media/dvb-frontends/gp8psk-fe.c
··· 323 323 kfree(st); 324 324 } 325 325 326 - static struct dvb_frontend_ops gp8psk_fe_ops; 326 + static const struct dvb_frontend_ops gp8psk_fe_ops; 327 327 328 328 struct dvb_frontend *gp8psk_fe_attach(const struct gp8psk_fe_ops *ops, 329 329 void *priv, bool is_rev1) ··· 351 351 } 352 352 EXPORT_SYMBOL_GPL(gp8psk_fe_attach); 353 353 354 - static struct dvb_frontend_ops gp8psk_fe_ops = { 354 + static const struct dvb_frontend_ops gp8psk_fe_ops = { 355 355 .delsys = { SYS_DVBS }, 356 356 .info = { 357 357 .name = "Genpix DVB-S",
+2 -2
drivers/media/dvb-frontends/hd29l2.c
··· 793 793 kfree(priv); 794 794 } 795 795 796 - static struct dvb_frontend_ops hd29l2_ops; 796 + static const struct dvb_frontend_ops hd29l2_ops; 797 797 798 798 struct dvb_frontend *hd29l2_attach(const struct hd29l2_config *config, 799 799 struct i2c_adapter *i2c) ··· 828 828 } 829 829 EXPORT_SYMBOL(hd29l2_attach); 830 830 831 - static struct dvb_frontend_ops hd29l2_ops = { 831 + static const struct dvb_frontend_ops hd29l2_ops = { 832 832 .delsys = { SYS_DVBT }, 833 833 .info = { 834 834 .name = "HDIC HD29L2 DMB-TH",
+2 -2
drivers/media/dvb-frontends/l64781.c
··· 496 496 kfree(state); 497 497 } 498 498 499 - static struct dvb_frontend_ops l64781_ops; 499 + static const struct dvb_frontend_ops l64781_ops; 500 500 501 501 struct dvb_frontend* l64781_attach(const struct l64781_config* config, 502 502 struct i2c_adapter* i2c) ··· 571 571 return NULL; 572 572 } 573 573 574 - static struct dvb_frontend_ops l64781_ops = { 574 + static const struct dvb_frontend_ops l64781_ops = { 575 575 .delsys = { SYS_DVBT }, 576 576 .info = { 577 577 .name = "LSI L64781 DVB-T",
+2 -2
drivers/media/dvb-frontends/lg2160.c
··· 1359 1359 kfree(state); 1360 1360 } 1361 1361 1362 - static struct dvb_frontend_ops lg2160_ops = { 1362 + static const struct dvb_frontend_ops lg2160_ops = { 1363 1363 .delsys = { SYS_ATSCMH }, 1364 1364 .info = { 1365 1365 .name = "LG Electronics LG2160 ATSC/MH Frontend", ··· 1387 1387 .release = lg216x_release, 1388 1388 }; 1389 1389 1390 - static struct dvb_frontend_ops lg2161_ops = { 1390 + static const struct dvb_frontend_ops lg2161_ops = { 1391 1391 .delsys = { SYS_ATSCMH }, 1392 1392 .info = { 1393 1393 .name = "LG Electronics LG2161 ATSC/MH Frontend",
+4 -4
drivers/media/dvb-frontends/lgdt3305.c
··· 1103 1103 kfree(state); 1104 1104 } 1105 1105 1106 - static struct dvb_frontend_ops lgdt3304_ops; 1107 - static struct dvb_frontend_ops lgdt3305_ops; 1106 + static const struct dvb_frontend_ops lgdt3304_ops; 1107 + static const struct dvb_frontend_ops lgdt3305_ops; 1108 1108 1109 1109 struct dvb_frontend *lgdt3305_attach(const struct lgdt3305_config *config, 1110 1110 struct i2c_adapter *i2c_adap) ··· 1164 1164 } 1165 1165 EXPORT_SYMBOL(lgdt3305_attach); 1166 1166 1167 - static struct dvb_frontend_ops lgdt3304_ops = { 1167 + static const struct dvb_frontend_ops lgdt3304_ops = { 1168 1168 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 1169 1169 .info = { 1170 1170 .name = "LG Electronics LGDT3304 VSB/QAM Frontend", ··· 1187 1187 .release = lgdt3305_release, 1188 1188 }; 1189 1189 1190 - static struct dvb_frontend_ops lgdt3305_ops = { 1190 + static const struct dvb_frontend_ops lgdt3305_ops = { 1191 1191 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 1192 1192 .info = { 1193 1193 .name = "LG Electronics LGDT3305 VSB/QAM Frontend",
+2 -2
drivers/media/dvb-frontends/lgdt3306a.c
··· 1767 1767 kfree(state); 1768 1768 } 1769 1769 1770 - static struct dvb_frontend_ops lgdt3306a_ops; 1770 + static const struct dvb_frontend_ops lgdt3306a_ops; 1771 1771 1772 1772 struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config, 1773 1773 struct i2c_adapter *i2c_adap) ··· 2103 2103 2104 2104 2105 2105 2106 - static struct dvb_frontend_ops lgdt3306a_ops = { 2106 + static const struct dvb_frontend_ops lgdt3306a_ops = { 2107 2107 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 2108 2108 .info = { 2109 2109 .name = "LG Electronics LGDT3306A VSB/QAM Frontend",
+4 -4
drivers/media/dvb-frontends/lgdt330x.c
··· 728 728 kfree(state); 729 729 } 730 730 731 - static struct dvb_frontend_ops lgdt3302_ops; 732 - static struct dvb_frontend_ops lgdt3303_ops; 731 + static const struct dvb_frontend_ops lgdt3302_ops; 732 + static const struct dvb_frontend_ops lgdt3303_ops; 733 733 734 734 struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config, 735 735 struct i2c_adapter* i2c) ··· 774 774 return NULL; 775 775 } 776 776 777 - static struct dvb_frontend_ops lgdt3302_ops = { 777 + static const struct dvb_frontend_ops lgdt3302_ops = { 778 778 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 779 779 .info = { 780 780 .name= "LG Electronics LGDT3302 VSB/QAM Frontend", ··· 797 797 .release = lgdt330x_release, 798 798 }; 799 799 800 - static struct dvb_frontend_ops lgdt3303_ops = { 800 + static const struct dvb_frontend_ops lgdt3303_ops = { 801 801 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 802 802 .info = { 803 803 .name= "LG Electronics LGDT3303 VSB/QAM Frontend",
+2 -2
drivers/media/dvb-frontends/lgs8gl5.c
··· 376 376 } 377 377 378 378 379 - static struct dvb_frontend_ops lgs8gl5_ops; 379 + static const struct dvb_frontend_ops lgs8gl5_ops; 380 380 381 381 382 382 struct dvb_frontend* ··· 412 412 EXPORT_SYMBOL(lgs8gl5_attach); 413 413 414 414 415 - static struct dvb_frontend_ops lgs8gl5_ops = { 415 + static const struct dvb_frontend_ops lgs8gl5_ops = { 416 416 .delsys = { SYS_DTMB }, 417 417 .info = { 418 418 .name = "Legend Silicon LGS-8GL5 DMB-TH",
+1 -1
drivers/media/dvb-frontends/lgs8gxx.c
··· 985 985 return lgs8gxx_write_reg(priv, 0x01, 0); 986 986 } 987 987 988 - static struct dvb_frontend_ops lgs8gxx_ops = { 988 + static const struct dvb_frontend_ops lgs8gxx_ops = { 989 989 .delsys = { SYS_DTMB }, 990 990 .info = { 991 991 .name = "Legend Silicon LGS8913/LGS8GXX DMB-TH",
+2 -2
drivers/media/dvb-frontends/m88ds3103.c
··· 16 16 17 17 #include "m88ds3103_priv.h" 18 18 19 - static struct dvb_frontend_ops m88ds3103_ops; 19 + static const struct dvb_frontend_ops m88ds3103_ops; 20 20 21 21 /* write single register with mask */ 22 22 static int m88ds3103_update_bits(struct m88ds3103_dev *dev, ··· 1295 1295 } 1296 1296 EXPORT_SYMBOL(m88ds3103_attach); 1297 1297 1298 - static struct dvb_frontend_ops m88ds3103_ops = { 1298 + static const struct dvb_frontend_ops m88ds3103_ops = { 1299 1299 .delsys = {SYS_DVBS, SYS_DVBS2}, 1300 1300 .info = { 1301 1301 .name = "Montage Technology M88DS3103",
+1 -1
drivers/media/dvb-frontends/m88rs2000.c
··· 752 752 kfree(state); 753 753 } 754 754 755 - static struct dvb_frontend_ops m88rs2000_ops = { 755 + static const struct dvb_frontend_ops m88rs2000_ops = { 756 756 .delsys = { SYS_DVBS }, 757 757 .info = { 758 758 .name = "M88RS2000 DVB-S",
+1 -1
drivers/media/dvb-frontends/mb86a16.c
··· 1816 1816 return DVBFE_ALGO_CUSTOM; 1817 1817 } 1818 1818 1819 - static struct dvb_frontend_ops mb86a16_ops = { 1819 + static const struct dvb_frontend_ops mb86a16_ops = { 1820 1820 .delsys = { SYS_DVBS }, 1821 1821 .info = { 1822 1822 .name = "Fujitsu MB86A16 DVB-S",
+2 -2
drivers/media/dvb-frontends/mb86a20s.c
··· 2060 2060 return DVBFE_ALGO_HW; 2061 2061 } 2062 2062 2063 - static struct dvb_frontend_ops mb86a20s_ops; 2063 + static const struct dvb_frontend_ops mb86a20s_ops; 2064 2064 2065 2065 struct dvb_frontend *mb86a20s_attach(const struct mb86a20s_config *config, 2066 2066 struct i2c_adapter *i2c) ··· 2108 2108 } 2109 2109 EXPORT_SYMBOL(mb86a20s_attach); 2110 2110 2111 - static struct dvb_frontend_ops mb86a20s_ops = { 2111 + static const struct dvb_frontend_ops mb86a20s_ops = { 2112 2112 .delsys = { SYS_ISDBT }, 2113 2113 /* Use dib8000 values per default */ 2114 2114 .info = {
+1 -1
drivers/media/dvb-frontends/mn88472.c
··· 411 411 return ret; 412 412 } 413 413 414 - static struct dvb_frontend_ops mn88472_ops = { 414 + static const struct dvb_frontend_ops mn88472_ops = { 415 415 .delsys = {SYS_DVBT, SYS_DVBT2, SYS_DVBC_ANNEX_A}, 416 416 .info = { 417 417 .name = "Panasonic MN88472",
+1 -1
drivers/media/dvb-frontends/mt312.c
··· 748 748 } 749 749 750 750 #define MT312_SYS_CLK 90000000UL /* 90 MHz */ 751 - static struct dvb_frontend_ops mt312_ops = { 751 + static const struct dvb_frontend_ops mt312_ops = { 752 752 .delsys = { SYS_DVBS }, 753 753 .info = { 754 754 .name = "Zarlink ???? DVB-S",
+2 -2
drivers/media/dvb-frontends/mt352.c
··· 538 538 kfree(state); 539 539 } 540 540 541 - static struct dvb_frontend_ops mt352_ops; 541 + static const struct dvb_frontend_ops mt352_ops; 542 542 543 543 struct dvb_frontend* mt352_attach(const struct mt352_config* config, 544 544 struct i2c_adapter* i2c) ··· 566 566 return NULL; 567 567 } 568 568 569 - static struct dvb_frontend_ops mt352_ops = { 569 + static const struct dvb_frontend_ops mt352_ops = { 570 570 .delsys = { SYS_DVBT }, 571 571 .info = { 572 572 .name = "Zarlink MT352 DVB-T",
+2 -2
drivers/media/dvb-frontends/nxt200x.c
··· 1149 1149 kfree(state); 1150 1150 } 1151 1151 1152 - static struct dvb_frontend_ops nxt200x_ops; 1152 + static const struct dvb_frontend_ops nxt200x_ops; 1153 1153 1154 1154 struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config, 1155 1155 struct i2c_adapter* i2c) ··· 1212 1212 return NULL; 1213 1213 } 1214 1214 1215 - static struct dvb_frontend_ops nxt200x_ops = { 1215 + static const struct dvb_frontend_ops nxt200x_ops = { 1216 1216 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 1217 1217 .info = { 1218 1218 .name = "Nextwave NXT200X VSB/QAM frontend",
+2 -2
drivers/media/dvb-frontends/nxt6000.c
··· 564 564 } 565 565 } 566 566 567 - static struct dvb_frontend_ops nxt6000_ops; 567 + static const struct dvb_frontend_ops nxt6000_ops; 568 568 569 569 struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config, 570 570 struct i2c_adapter* i2c) ··· 592 592 return NULL; 593 593 } 594 594 595 - static struct dvb_frontend_ops nxt6000_ops = { 595 + static const struct dvb_frontend_ops nxt6000_ops = { 596 596 .delsys = { SYS_DVBT }, 597 597 .info = { 598 598 .name = "NxtWave NXT6000 DVB-T",
+2 -2
drivers/media/dvb-frontends/or51132.c
··· 559 559 kfree(state); 560 560 } 561 561 562 - static struct dvb_frontend_ops or51132_ops; 562 + static const struct dvb_frontend_ops or51132_ops; 563 563 564 564 struct dvb_frontend* or51132_attach(const struct or51132_config* config, 565 565 struct i2c_adapter* i2c) ··· 583 583 return &state->frontend; 584 584 } 585 585 586 - static struct dvb_frontend_ops or51132_ops = { 586 + static const struct dvb_frontend_ops or51132_ops = { 587 587 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 588 588 .info = { 589 589 .name = "Oren OR51132 VSB/QAM Frontend",
+2 -2
drivers/media/dvb-frontends/or51211.c
··· 507 507 kfree(state); 508 508 } 509 509 510 - static struct dvb_frontend_ops or51211_ops; 510 + static const struct dvb_frontend_ops or51211_ops; 511 511 512 512 struct dvb_frontend* or51211_attach(const struct or51211_config* config, 513 513 struct i2c_adapter* i2c) ··· 531 531 return &state->frontend; 532 532 } 533 533 534 - static struct dvb_frontend_ops or51211_ops = { 534 + static const struct dvb_frontend_ops or51211_ops = { 535 535 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 536 536 .info = { 537 537 .name = "Oren OR51211 VSB Frontend",
+1 -1
drivers/media/dvb-frontends/rtl2830.c
··· 548 548 return 0; 549 549 } 550 550 551 - static struct dvb_frontend_ops rtl2830_ops = { 551 + static const struct dvb_frontend_ops rtl2830_ops = { 552 552 .delsys = {SYS_DVBT}, 553 553 .info = { 554 554 .name = "Realtek RTL2830 (DVB-T)",
+1 -1
drivers/media/dvb-frontends/rtl2832.c
··· 837 837 return 0; 838 838 } 839 839 840 - static struct dvb_frontend_ops rtl2832_ops = { 840 + static const struct dvb_frontend_ops rtl2832_ops = { 841 841 .delsys = { SYS_DVBT }, 842 842 .info = { 843 843 .name = "Realtek RTL2832 (DVB-T)",
+2 -2
drivers/media/dvb-frontends/s5h1409.c
··· 949 949 kfree(state); 950 950 } 951 951 952 - static struct dvb_frontend_ops s5h1409_ops; 952 + static const struct dvb_frontend_ops s5h1409_ops; 953 953 954 954 struct dvb_frontend *s5h1409_attach(const struct s5h1409_config *config, 955 955 struct i2c_adapter *i2c) ··· 995 995 } 996 996 EXPORT_SYMBOL(s5h1409_attach); 997 997 998 - static struct dvb_frontend_ops s5h1409_ops = { 998 + static const struct dvb_frontend_ops s5h1409_ops = { 999 999 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 1000 1000 .info = { 1001 1001 .name = "Samsung S5H1409 QAM/8VSB Frontend",
+2 -2
drivers/media/dvb-frontends/s5h1411.c
··· 864 864 kfree(state); 865 865 } 866 866 867 - static struct dvb_frontend_ops s5h1411_ops; 867 + static const struct dvb_frontend_ops s5h1411_ops; 868 868 869 869 struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config, 870 870 struct i2c_adapter *i2c) ··· 914 914 } 915 915 EXPORT_SYMBOL(s5h1411_attach); 916 916 917 - static struct dvb_frontend_ops s5h1411_ops = { 917 + static const struct dvb_frontend_ops s5h1411_ops = { 918 918 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B }, 919 919 .info = { 920 920 .name = "Samsung S5H1411 QAM/8VSB Frontend",
+2 -2
drivers/media/dvb-frontends/s5h1420.c
··· 880 880 } 881 881 EXPORT_SYMBOL(s5h1420_get_tuner_i2c_adapter); 882 882 883 - static struct dvb_frontend_ops s5h1420_ops; 883 + static const struct dvb_frontend_ops s5h1420_ops; 884 884 885 885 struct dvb_frontend *s5h1420_attach(const struct s5h1420_config *config, 886 886 struct i2c_adapter *i2c) ··· 934 934 } 935 935 EXPORT_SYMBOL(s5h1420_attach); 936 936 937 - static struct dvb_frontend_ops s5h1420_ops = { 937 + static const struct dvb_frontend_ops s5h1420_ops = { 938 938 .delsys = { SYS_DVBS }, 939 939 .info = { 940 940 .name = "Samsung S5H1420/PnpNetwork PN1010 DVB-S",
+2 -2
drivers/media/dvb-frontends/s5h1432.c
··· 341 341 kfree(state); 342 342 } 343 343 344 - static struct dvb_frontend_ops s5h1432_ops; 344 + static const struct dvb_frontend_ops s5h1432_ops; 345 345 346 346 struct dvb_frontend *s5h1432_attach(const struct s5h1432_config *config, 347 347 struct i2c_adapter *i2c) ··· 370 370 } 371 371 EXPORT_SYMBOL(s5h1432_attach); 372 372 373 - static struct dvb_frontend_ops s5h1432_ops = { 373 + static const struct dvb_frontend_ops s5h1432_ops = { 374 374 .delsys = { SYS_DVBT }, 375 375 .info = { 376 376 .name = "Samsung s5h1432 DVB-T Frontend",
+2 -2
drivers/media/dvb-frontends/s921.c
··· 477 477 kfree(state); 478 478 } 479 479 480 - static struct dvb_frontend_ops s921_ops; 480 + static const struct dvb_frontend_ops s921_ops; 481 481 482 482 struct dvb_frontend *s921_attach(const struct s921_config *config, 483 483 struct i2c_adapter *i2c) ··· 505 505 } 506 506 EXPORT_SYMBOL(s921_attach); 507 507 508 - static struct dvb_frontend_ops s921_ops = { 508 + static const struct dvb_frontend_ops s921_ops = { 509 509 .delsys = { SYS_ISDBT }, 510 510 /* Use dib8000 values per default */ 511 511 .info = {
+1 -1
drivers/media/dvb-frontends/si2165.c
··· 978 978 return 0; 979 979 } 980 980 981 - static struct dvb_frontend_ops si2165_ops = { 981 + static const struct dvb_frontend_ops si2165_ops = { 982 982 .info = { 983 983 .name = "Silicon Labs ", 984 984 /* For DVB-C */
+1 -1
drivers/media/dvb-frontends/si21xx.c
··· 866 866 kfree(state); 867 867 } 868 868 869 - static struct dvb_frontend_ops si21xx_ops = { 869 + static const struct dvb_frontend_ops si21xx_ops = { 870 870 .delsys = { SYS_DVBS }, 871 871 .info = { 872 872 .name = "SL SI21XX DVB-S",
+2 -2
drivers/media/dvb-frontends/sp8870.c
··· 551 551 kfree(state); 552 552 } 553 553 554 - static struct dvb_frontend_ops sp8870_ops; 554 + static const struct dvb_frontend_ops sp8870_ops; 555 555 556 556 struct dvb_frontend* sp8870_attach(const struct sp8870_config* config, 557 557 struct i2c_adapter* i2c) ··· 580 580 return NULL; 581 581 } 582 582 583 - static struct dvb_frontend_ops sp8870_ops = { 583 + static const struct dvb_frontend_ops sp8870_ops = { 584 584 .delsys = { SYS_DVBT }, 585 585 .info = { 586 586 .name = "Spase SP8870 DVB-T",
+2 -2
drivers/media/dvb-frontends/sp887x.c
··· 561 561 kfree(state); 562 562 } 563 563 564 - static struct dvb_frontend_ops sp887x_ops; 564 + static const struct dvb_frontend_ops sp887x_ops; 565 565 566 566 struct dvb_frontend* sp887x_attach(const struct sp887x_config* config, 567 567 struct i2c_adapter* i2c) ··· 590 590 return NULL; 591 591 } 592 592 593 - static struct dvb_frontend_ops sp887x_ops = { 593 + static const struct dvb_frontend_ops sp887x_ops = { 594 594 .delsys = { SYS_DVBT }, 595 595 .info = { 596 596 .name = "Spase SP887x DVB-T",
+1 -1
drivers/media/dvb-frontends/stb0899_drv.c
··· 1573 1573 return DVBFE_ALGO_CUSTOM; 1574 1574 } 1575 1575 1576 - static struct dvb_frontend_ops stb0899_ops = { 1576 + static const struct dvb_frontend_ops stb0899_ops = { 1577 1577 .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, 1578 1578 .info = { 1579 1579 .name = "STB0899 Multistandard",
+1 -1
drivers/media/dvb-frontends/stv0288.c
··· 535 535 kfree(state); 536 536 } 537 537 538 - static struct dvb_frontend_ops stv0288_ops = { 538 + static const struct dvb_frontend_ops stv0288_ops = { 539 539 .delsys = { SYS_DVBS }, 540 540 .info = { 541 541 .name = "ST STV0288 DVB-S",
+2 -2
drivers/media/dvb-frontends/stv0297.c
··· 658 658 kfree(state); 659 659 } 660 660 661 - static struct dvb_frontend_ops stv0297_ops; 661 + static const struct dvb_frontend_ops stv0297_ops; 662 662 663 663 struct dvb_frontend *stv0297_attach(const struct stv0297_config *config, 664 664 struct i2c_adapter *i2c) ··· 690 690 return NULL; 691 691 } 692 692 693 - static struct dvb_frontend_ops stv0297_ops = { 693 + static const struct dvb_frontend_ops stv0297_ops = { 694 694 .delsys = { SYS_DVBC_ANNEX_A }, 695 695 .info = { 696 696 .name = "ST STV0297 DVB-C",
+2 -2
drivers/media/dvb-frontends/stv0299.c
··· 673 673 kfree(state); 674 674 } 675 675 676 - static struct dvb_frontend_ops stv0299_ops; 676 + static const struct dvb_frontend_ops stv0299_ops; 677 677 678 678 struct dvb_frontend* stv0299_attach(const struct stv0299_config* config, 679 679 struct i2c_adapter* i2c) ··· 713 713 return NULL; 714 714 } 715 715 716 - static struct dvb_frontend_ops stv0299_ops = { 716 + static const struct dvb_frontend_ops stv0299_ops = { 717 717 .delsys = { SYS_DVBS }, 718 718 .info = { 719 719 .name = "ST STV0299 DVB-S",
+2 -2
drivers/media/dvb-frontends/stv0367.c
··· 2272 2272 kfree(state); 2273 2273 } 2274 2274 2275 - static struct dvb_frontend_ops stv0367ter_ops = { 2275 + static const struct dvb_frontend_ops stv0367ter_ops = { 2276 2276 .delsys = { SYS_DVBT }, 2277 2277 .info = { 2278 2278 .name = "ST STV0367 DVB-T", ··· 3390 3390 return 0; 3391 3391 }; 3392 3392 3393 - static struct dvb_frontend_ops stv0367cab_ops = { 3393 + static const struct dvb_frontend_ops stv0367cab_ops = { 3394 3394 .delsys = { SYS_DVBC_ANNEX_A }, 3395 3395 .info = { 3396 3396 .name = "ST STV0367 DVB-C",
+1 -1
drivers/media/dvb-frontends/stv0900_core.c
··· 1875 1875 return 0; 1876 1876 } 1877 1877 1878 - static struct dvb_frontend_ops stv0900_ops = { 1878 + static const struct dvb_frontend_ops stv0900_ops = { 1879 1879 .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, 1880 1880 .info = { 1881 1881 .name = "STV0900 frontend",
+1 -1
drivers/media/dvb-frontends/stv090x.c
··· 4880 4880 return stv090x_write_reg(state, STV090x_GPIOxCFG(gpio), reg); 4881 4881 } 4882 4882 4883 - static struct dvb_frontend_ops stv090x_ops = { 4883 + static const struct dvb_frontend_ops stv090x_ops = { 4884 4884 .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, 4885 4885 .info = { 4886 4886 .name = "STV090x Multistandard",
+2 -2
drivers/media/dvb-frontends/tda10021.c
··· 443 443 kfree(state); 444 444 } 445 445 446 - static struct dvb_frontend_ops tda10021_ops; 446 + static const struct dvb_frontend_ops tda10021_ops; 447 447 448 448 struct dvb_frontend* tda10021_attach(const struct tda1002x_config* config, 449 449 struct i2c_adapter* i2c, ··· 483 483 return NULL; 484 484 } 485 485 486 - static struct dvb_frontend_ops tda10021_ops = { 486 + static const struct dvb_frontend_ops tda10021_ops = { 487 487 .delsys = { SYS_DVBC_ANNEX_A, SYS_DVBC_ANNEX_C }, 488 488 .info = { 489 489 .name = "Philips TDA10021 DVB-C",
+2 -2
drivers/media/dvb-frontends/tda10023.c
··· 514 514 kfree(state); 515 515 } 516 516 517 - static struct dvb_frontend_ops tda10023_ops; 517 + static const struct dvb_frontend_ops tda10023_ops; 518 518 519 519 struct dvb_frontend *tda10023_attach(const struct tda10023_config *config, 520 520 struct i2c_adapter *i2c, ··· 571 571 return NULL; 572 572 } 573 573 574 - static struct dvb_frontend_ops tda10023_ops = { 574 + static const struct dvb_frontend_ops tda10023_ops = { 575 575 .delsys = { SYS_DVBC_ANNEX_A, SYS_DVBC_ANNEX_C }, 576 576 .info = { 577 577 .name = "Philips TDA10023 DVB-C",
+2 -2
drivers/media/dvb-frontends/tda10048.c
··· 1090 1090 } 1091 1091 } 1092 1092 1093 - static struct dvb_frontend_ops tda10048_ops; 1093 + static const struct dvb_frontend_ops tda10048_ops; 1094 1094 1095 1095 struct dvb_frontend *tda10048_attach(const struct tda10048_config *config, 1096 1096 struct i2c_adapter *i2c) ··· 1152 1152 } 1153 1153 EXPORT_SYMBOL(tda10048_attach); 1154 1154 1155 - static struct dvb_frontend_ops tda10048_ops = { 1155 + static const struct dvb_frontend_ops tda10048_ops = { 1156 1156 .delsys = { SYS_DVBT }, 1157 1157 .info = { 1158 1158 .name = "NXP TDA10048HN DVB-T",
+2 -2
drivers/media/dvb-frontends/tda1004x.c
··· 1245 1245 kfree(state); 1246 1246 } 1247 1247 1248 - static struct dvb_frontend_ops tda10045_ops = { 1248 + static const struct dvb_frontend_ops tda10045_ops = { 1249 1249 .delsys = { SYS_DVBT }, 1250 1250 .info = { 1251 1251 .name = "Philips TDA10045H DVB-T", ··· 1315 1315 return &state->frontend; 1316 1316 } 1317 1317 1318 - static struct dvb_frontend_ops tda10046_ops = { 1318 + static const struct dvb_frontend_ops tda10046_ops = { 1319 1319 .delsys = { SYS_DVBT }, 1320 1320 .info = { 1321 1321 .name = "Philips TDA10046H DVB-T",
+2 -2
drivers/media/dvb-frontends/tda10071.c
··· 20 20 21 21 #include "tda10071_priv.h" 22 22 23 - static struct dvb_frontend_ops tda10071_ops; 23 + static const struct dvb_frontend_ops tda10071_ops; 24 24 25 25 /* 26 26 * XXX: regmap_update_bits() does not fit our needs as it does not support ··· 1102 1102 return 0; 1103 1103 } 1104 1104 1105 - static struct dvb_frontend_ops tda10071_ops = { 1105 + static const struct dvb_frontend_ops tda10071_ops = { 1106 1106 .delsys = { SYS_DVBS, SYS_DVBS2 }, 1107 1107 .info = { 1108 1108 .name = "NXP TDA10071",
+1 -1
drivers/media/dvb-frontends/tda10086.c
··· 706 706 kfree(state); 707 707 } 708 708 709 - static struct dvb_frontend_ops tda10086_ops = { 709 + static const struct dvb_frontend_ops tda10086_ops = { 710 710 .delsys = { SYS_DVBS }, 711 711 .info = { 712 712 .name = "Philips TDA10086 DVB-S",
+2 -2
drivers/media/dvb-frontends/tda8083.c
··· 421 421 kfree(state); 422 422 } 423 423 424 - static struct dvb_frontend_ops tda8083_ops; 424 + static const struct dvb_frontend_ops tda8083_ops; 425 425 426 426 struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 427 427 struct i2c_adapter* i2c) ··· 449 449 return NULL; 450 450 } 451 451 452 - static struct dvb_frontend_ops tda8083_ops = { 452 + static const struct dvb_frontend_ops tda8083_ops = { 453 453 .delsys = { SYS_DVBS }, 454 454 .info = { 455 455 .name = "Philips TDA8083 DVB-S",
+2 -2
drivers/media/dvb-frontends/ves1820.c
··· 369 369 kfree(state); 370 370 } 371 371 372 - static struct dvb_frontend_ops ves1820_ops; 372 + static const struct dvb_frontend_ops ves1820_ops; 373 373 374 374 struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, 375 375 struct i2c_adapter* i2c, ··· 408 408 return NULL; 409 409 } 410 410 411 - static struct dvb_frontend_ops ves1820_ops = { 411 + static const struct dvb_frontend_ops ves1820_ops = { 412 412 .delsys = { SYS_DVBC_ANNEX_A }, 413 413 .info = { 414 414 .name = "VLSI VES1820 DVB-C",
+2 -2
drivers/media/dvb-frontends/ves1x93.c
··· 454 454 } 455 455 } 456 456 457 - static struct dvb_frontend_ops ves1x93_ops; 457 + static const struct dvb_frontend_ops ves1x93_ops; 458 458 459 459 struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config, 460 460 struct i2c_adapter* i2c) ··· 512 512 return NULL; 513 513 } 514 514 515 - static struct dvb_frontend_ops ves1x93_ops = { 515 + static const struct dvb_frontend_ops ves1x93_ops = { 516 516 .delsys = { SYS_DVBS }, 517 517 .info = { 518 518 .name = "VLSI VES1x93 DVB-S",
+2 -2
drivers/media/dvb-frontends/zl10353.c
··· 602 602 kfree(state); 603 603 } 604 604 605 - static struct dvb_frontend_ops zl10353_ops; 605 + static const struct dvb_frontend_ops zl10353_ops; 606 606 607 607 struct dvb_frontend *zl10353_attach(const struct zl10353_config *config, 608 608 struct i2c_adapter *i2c) ··· 634 634 return NULL; 635 635 } 636 636 637 - static struct dvb_frontend_ops zl10353_ops = { 637 + static const struct dvb_frontend_ops zl10353_ops = { 638 638 .delsys = { SYS_DVBT }, 639 639 .info = { 640 640 .name = "Zarlink ZL10353 DVB-T",
+8 -8
drivers/media/pci/bt8xx/dst.c
··· 1696 1696 kfree(state); 1697 1697 } 1698 1698 1699 - static struct dvb_frontend_ops dst_dvbt_ops; 1700 - static struct dvb_frontend_ops dst_dvbs_ops; 1701 - static struct dvb_frontend_ops dst_dvbc_ops; 1702 - static struct dvb_frontend_ops dst_atsc_ops; 1699 + static const struct dvb_frontend_ops dst_dvbt_ops; 1700 + static const struct dvb_frontend_ops dst_dvbs_ops; 1701 + static const struct dvb_frontend_ops dst_dvbc_ops; 1702 + static const struct dvb_frontend_ops dst_atsc_ops; 1703 1703 1704 1704 struct dst_state *dst_attach(struct dst_state *state, struct dvb_adapter *dvb_adapter) 1705 1705 { ··· 1735 1735 1736 1736 EXPORT_SYMBOL(dst_attach); 1737 1737 1738 - static struct dvb_frontend_ops dst_dvbt_ops = { 1738 + static const struct dvb_frontend_ops dst_dvbt_ops = { 1739 1739 .delsys = { SYS_DVBT }, 1740 1740 .info = { 1741 1741 .name = "DST DVB-T", ··· 1764 1764 .read_snr = dst_read_snr, 1765 1765 }; 1766 1766 1767 - static struct dvb_frontend_ops dst_dvbs_ops = { 1767 + static const struct dvb_frontend_ops dst_dvbs_ops = { 1768 1768 .delsys = { SYS_DVBS }, 1769 1769 .info = { 1770 1770 .name = "DST DVB-S", ··· 1793 1793 .set_tone = dst_set_tone, 1794 1794 }; 1795 1795 1796 - static struct dvb_frontend_ops dst_dvbc_ops = { 1796 + static const struct dvb_frontend_ops dst_dvbc_ops = { 1797 1797 .delsys = { SYS_DVBC_ANNEX_A }, 1798 1798 .info = { 1799 1799 .name = "DST DVB-C", ··· 1822 1822 .read_snr = dst_read_snr, 1823 1823 }; 1824 1824 1825 - static struct dvb_frontend_ops dst_atsc_ops = { 1825 + static const struct dvb_frontend_ops dst_atsc_ops = { 1826 1826 .delsys = { SYS_ATSC }, 1827 1827 .info = { 1828 1828 .name = "DST ATSC",
+1 -1
drivers/media/pci/pt1/va1j5jf8007s.c
··· 578 578 kfree(state); 579 579 } 580 580 581 - static struct dvb_frontend_ops va1j5jf8007s_ops = { 581 + static const struct dvb_frontend_ops va1j5jf8007s_ops = { 582 582 .delsys = { SYS_ISDBS }, 583 583 .info = { 584 584 .name = "VA1J5JF8007/VA1J5JF8011 ISDB-S",
+1 -1
drivers/media/pci/pt1/va1j5jf8007t.c
··· 427 427 kfree(state); 428 428 } 429 429 430 - static struct dvb_frontend_ops va1j5jf8007t_ops = { 430 + static const struct dvb_frontend_ops va1j5jf8007t_ops = { 431 431 .delsys = { SYS_ISDBT }, 432 432 .info = { 433 433 .name = "VA1J5JF8007/VA1J5JF8011 ISDB-T",
+2 -2
drivers/media/tuners/tda8290.c
··· 721 721 return -ENODEV; 722 722 } 723 723 724 - static struct analog_demod_ops tda8290_ops = { 724 + static const struct analog_demod_ops tda8290_ops = { 725 725 .set_params = tda8290_set_params, 726 726 .has_signal = tda8290_has_signal, 727 727 .standby = tda8290_standby, ··· 729 729 .i2c_gate_ctrl = tda8290_i2c_bridge, 730 730 }; 731 731 732 - static struct analog_demod_ops tda8295_ops = { 732 + static const struct analog_demod_ops tda8295_ops = { 733 733 .set_params = tda8295_set_params, 734 734 .has_signal = tda8295_has_signal, 735 735 .standby = tda8295_standby,
+1 -1
drivers/media/tuners/tda9887.c
··· 659 659 fe->analog_demod_priv = NULL; 660 660 } 661 661 662 - static struct analog_demod_ops tda9887_ops = { 662 + static const struct analog_demod_ops tda9887_ops = { 663 663 .info = { 664 664 .name = "tda9887", 665 665 },
+1 -1
drivers/media/usb/dvb-usb-v2/mxl111sf-demod.c
··· 549 549 fe->demodulator_priv = NULL; 550 550 } 551 551 552 - static struct dvb_frontend_ops mxl111sf_demod_ops = { 552 + static const struct dvb_frontend_ops mxl111sf_demod_ops = { 553 553 .delsys = { SYS_DVBT }, 554 554 .info = { 555 555 .name = "MaxLinear MxL111SF DVB-T demodulator",
+2 -2
drivers/media/usb/dvb-usb/af9005-fe.c
··· 1430 1430 kfree(state); 1431 1431 } 1432 1432 1433 - static struct dvb_frontend_ops af9005_fe_ops; 1433 + static const struct dvb_frontend_ops af9005_fe_ops; 1434 1434 1435 1435 struct dvb_frontend *af9005_fe_attach(struct dvb_usb_device *d) 1436 1436 { ··· 1455 1455 return NULL; 1456 1456 } 1457 1457 1458 - static struct dvb_frontend_ops af9005_fe_ops = { 1458 + static const struct dvb_frontend_ops af9005_fe_ops = { 1459 1459 .delsys = { SYS_DVBT }, 1460 1460 .info = { 1461 1461 .name = "AF9005 USB DVB-T",
+2 -2
drivers/media/usb/dvb-usb/cinergyT2-fe.c
··· 278 278 kfree(state); 279 279 } 280 280 281 - static struct dvb_frontend_ops cinergyt2_fe_ops; 281 + static const struct dvb_frontend_ops cinergyt2_fe_ops; 282 282 283 283 struct dvb_frontend *cinergyt2_fe_attach(struct dvb_usb_device *d) 284 284 { ··· 295 295 } 296 296 297 297 298 - static struct dvb_frontend_ops cinergyt2_fe_ops = { 298 + static const struct dvb_frontend_ops cinergyt2_fe_ops = { 299 299 .delsys = { SYS_DVBT }, 300 300 .info = { 301 301 .name = DRIVER_NAME,
+2 -2
drivers/media/usb/dvb-usb/dtt200u-fe.c
··· 202 202 kfree(state); 203 203 } 204 204 205 - static struct dvb_frontend_ops dtt200u_fe_ops; 205 + static const struct dvb_frontend_ops dtt200u_fe_ops; 206 206 207 207 struct dvb_frontend* dtt200u_fe_attach(struct dvb_usb_device *d) 208 208 { ··· 226 226 return NULL; 227 227 } 228 228 229 - static struct dvb_frontend_ops dtt200u_fe_ops = { 229 + static const struct dvb_frontend_ops dtt200u_fe_ops = { 230 230 .delsys = { SYS_DVBT }, 231 231 .info = { 232 232 .name = "WideView USB DVB-T",
+2 -2
drivers/media/usb/dvb-usb/friio-fe.c
··· 401 401 } 402 402 403 403 404 - static struct dvb_frontend_ops jdvbt90502_ops; 404 + static const struct dvb_frontend_ops jdvbt90502_ops; 405 405 406 406 struct dvb_frontend *jdvbt90502_attach(struct dvb_usb_device *d) 407 407 { ··· 432 432 return NULL; 433 433 } 434 434 435 - static struct dvb_frontend_ops jdvbt90502_ops = { 435 + static const struct dvb_frontend_ops jdvbt90502_ops = { 436 436 .delsys = { SYS_ISDBT }, 437 437 .info = { 438 438 .name = "Comtech JDVBT90502 ISDB-T",
+2 -2
drivers/media/usb/dvb-usb/vp702x-fe.c
··· 323 323 kfree(st); 324 324 } 325 325 326 - static struct dvb_frontend_ops vp702x_fe_ops; 326 + static const struct dvb_frontend_ops vp702x_fe_ops; 327 327 328 328 struct dvb_frontend * vp702x_fe_attach(struct dvb_usb_device *d) 329 329 { ··· 345 345 } 346 346 347 347 348 - static struct dvb_frontend_ops vp702x_fe_ops = { 348 + static const struct dvb_frontend_ops vp702x_fe_ops = { 349 349 .delsys = { SYS_DVBS }, 350 350 .info = { 351 351 .name = "Twinhan DST-like frontend (VP7021/VP7020) DVB-S",
+2 -2
drivers/media/usb/dvb-usb/vp7045-fe.c
··· 140 140 kfree(state); 141 141 } 142 142 143 - static struct dvb_frontend_ops vp7045_fe_ops; 143 + static const struct dvb_frontend_ops vp7045_fe_ops; 144 144 145 145 struct dvb_frontend * vp7045_fe_attach(struct dvb_usb_device *d) 146 146 { ··· 158 158 } 159 159 160 160 161 - static struct dvb_frontend_ops vp7045_fe_ops = { 161 + static const struct dvb_frontend_ops vp7045_fe_ops = { 162 162 .delsys = { SYS_DVBT }, 163 163 .info = { 164 164 .name = "Twinhan VP7045/46 USB DVB-T",
+4 -4
drivers/media/usb/ttusb-dec/ttusbdecfe.c
··· 205 205 kfree(state); 206 206 } 207 207 208 - static struct dvb_frontend_ops ttusbdecfe_dvbt_ops; 208 + static const struct dvb_frontend_ops ttusbdecfe_dvbt_ops; 209 209 210 210 struct dvb_frontend* ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config* config) 211 211 { ··· 225 225 return &state->frontend; 226 226 } 227 227 228 - static struct dvb_frontend_ops ttusbdecfe_dvbs_ops; 228 + static const struct dvb_frontend_ops ttusbdecfe_dvbs_ops; 229 229 230 230 struct dvb_frontend* ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config* config) 231 231 { ··· 247 247 return &state->frontend; 248 248 } 249 249 250 - static struct dvb_frontend_ops ttusbdecfe_dvbt_ops = { 250 + static const struct dvb_frontend_ops ttusbdecfe_dvbt_ops = { 251 251 .delsys = { SYS_DVBT }, 252 252 .info = { 253 253 .name = "TechnoTrend/Hauppauge DEC2000-t Frontend", ··· 270 270 .read_status = ttusbdecfe_dvbt_read_status, 271 271 }; 272 272 273 - static struct dvb_frontend_ops ttusbdecfe_dvbs_ops = { 273 + static const struct dvb_frontend_ops ttusbdecfe_dvbs_ops = { 274 274 .delsys = { SYS_DVBS }, 275 275 .info = { 276 276 .name = "TechnoTrend/Hauppauge DEC3000-s Frontend",