aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-17 12:20:52 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:16:50 -0500
commit52b661449aecc47e652a164c0d8078b31e10aca0 (patch)
tree42af14cf5b6df82b841ec4bf38f22da54fc4439b
parent29e3ec19d5c88d534ced219d3962d67243e4d310 (diff)
[media] rc: Rename remote controller type to rc_type instead of ir_type
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,IR_TYPE,RC_TYPE,g <$i >a && mv a $i; done for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_type,rc_type,g <$i >a && mv a $i; done Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.c12
-rw-r--r--drivers/media/dvb/dvb-usb/anysee.c2
-rw-r--r--drivers/media/dvb/dvb-usb/dib0700.h2
-rw-r--r--drivers/media/dvb/dvb-usb/dib0700_core.c12
-rw-r--r--drivers/media/dvb/dvb-usb/dib0700_devices.c86
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb.h2
-rw-r--r--drivers/media/dvb/mantis/mantis_input.c2
-rw-r--r--drivers/media/dvb/siano/smsir.c2
-rw-r--r--drivers/media/rc/ene_ir.c2
-rw-r--r--drivers/media/rc/imon.c38
-rw-r--r--drivers/media/rc/ir-jvc-decoder.c4
-rw-r--r--drivers/media/rc/ir-lirc-codec.c4
-rw-r--r--drivers/media/rc/ir-nec-decoder.c4
-rw-r--r--drivers/media/rc/ir-rc5-decoder.c4
-rw-r--r--drivers/media/rc/ir-rc5-sz-decoder.c4
-rw-r--r--drivers/media/rc/ir-rc6-decoder.c4
-rw-r--r--drivers/media/rc/ir-sony-decoder.c4
-rw-r--r--drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c2
-rw-r--r--drivers/media/rc/keymaps/rc-alink-dtu-m.c2
-rw-r--r--drivers/media/rc/keymaps/rc-anysee.c2
-rw-r--r--drivers/media/rc/keymaps/rc-apac-viewcomp.c2
-rw-r--r--drivers/media/rc/keymaps/rc-asus-pc39.c2
-rw-r--r--drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-a16d.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-cardbus.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-dvbt.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-m135a.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-rm-ks.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia.c2
-rw-r--r--drivers/media/rc/keymaps/rc-avertv-303.c2
-rw-r--r--drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c2
-rw-r--r--drivers/media/rc/keymaps/rc-behold-columbus.c2
-rw-r--r--drivers/media/rc/keymaps/rc-behold.c2
-rw-r--r--drivers/media/rc/keymaps/rc-budget-ci-old.c2
-rw-r--r--drivers/media/rc/keymaps/rc-cinergy-1400.c2
-rw-r--r--drivers/media/rc/keymaps/rc-cinergy.c2
-rw-r--r--drivers/media/rc/keymaps/rc-dib0700-nec.c2
-rw-r--r--drivers/media/rc/keymaps/rc-dib0700-rc5.c2
-rw-r--r--drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c2
-rw-r--r--drivers/media/rc/keymaps/rc-digittrade.c2
-rw-r--r--drivers/media/rc/keymaps/rc-dm1105-nec.c2
-rw-r--r--drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c2
-rw-r--r--drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c2
-rw-r--r--drivers/media/rc/keymaps/rc-em-terratec.c2
-rw-r--r--drivers/media/rc/keymaps/rc-encore-enltv-fm53.c2
-rw-r--r--drivers/media/rc/keymaps/rc-encore-enltv.c2
-rw-r--r--drivers/media/rc/keymaps/rc-encore-enltv2.c2
-rw-r--r--drivers/media/rc/keymaps/rc-evga-indtube.c2
-rw-r--r--drivers/media/rc/keymaps/rc-eztv.c2
-rw-r--r--drivers/media/rc/keymaps/rc-flydvb.c2
-rw-r--r--drivers/media/rc/keymaps/rc-flyvideo.c2
-rw-r--r--drivers/media/rc/keymaps/rc-fusionhdtv-mce.c2
-rw-r--r--drivers/media/rc/keymaps/rc-gadmei-rm008z.c2
-rw-r--r--drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c2
-rw-r--r--drivers/media/rc/keymaps/rc-gotview7135.c2
-rw-r--r--drivers/media/rc/keymaps/rc-hauppauge-new.c2
-rw-r--r--drivers/media/rc/keymaps/rc-imon-mce.c2
-rw-r--r--drivers/media/rc/keymaps/rc-imon-pad.c2
-rw-r--r--drivers/media/rc/keymaps/rc-iodata-bctv7e.c2
-rw-r--r--drivers/media/rc/keymaps/rc-kaiomy.c2
-rw-r--r--drivers/media/rc/keymaps/rc-kworld-315u.c2
-rw-r--r--drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c2
-rw-r--r--drivers/media/rc/keymaps/rc-leadtek-y04g0051.c2
-rw-r--r--drivers/media/rc/keymaps/rc-lirc.c2
-rw-r--r--drivers/media/rc/keymaps/rc-lme2510.c2
-rw-r--r--drivers/media/rc/keymaps/rc-manli.c2
-rw-r--r--drivers/media/rc/keymaps/rc-msi-digivox-ii.c2
-rw-r--r--drivers/media/rc/keymaps/rc-msi-digivox-iii.c2
-rw-r--r--drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c2
-rw-r--r--drivers/media/rc/keymaps/rc-msi-tvanywhere.c2
-rw-r--r--drivers/media/rc/keymaps/rc-nebula.c2
-rw-r--r--drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c2
-rw-r--r--drivers/media/rc/keymaps/rc-norwood.c2
-rw-r--r--drivers/media/rc/keymaps/rc-npgtech.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pctv-sedna.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pinnacle-color.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pinnacle-grey.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview-mk12.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview-new.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview.c2
-rw-r--r--drivers/media/rc/keymaps/rc-powercolor-real-angel.c2
-rw-r--r--drivers/media/rc/keymaps/rc-proteus-2309.c2
-rw-r--r--drivers/media/rc/keymaps/rc-purpletv.c2
-rw-r--r--drivers/media/rc/keymaps/rc-pv951.c2
-rw-r--r--drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c2
-rw-r--r--drivers/media/rc/keymaps/rc-rc5-tv.c2
-rw-r--r--drivers/media/rc/keymaps/rc-rc6-mce.c2
-rw-r--r--drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c2
-rw-r--r--drivers/media/rc/keymaps/rc-streamzap.c2
-rw-r--r--drivers/media/rc/keymaps/rc-tbs-nec.c2
-rw-r--r--drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c2
-rw-r--r--drivers/media/rc/keymaps/rc-terratec-slim.c2
-rw-r--r--drivers/media/rc/keymaps/rc-tevii-nec.c2
-rw-r--r--drivers/media/rc/keymaps/rc-total-media-in-hand.c2
-rw-r--r--drivers/media/rc/keymaps/rc-trekstor.c2
-rw-r--r--drivers/media/rc/keymaps/rc-tt-1500.c2
-rw-r--r--drivers/media/rc/keymaps/rc-twinhan1027.c2
-rw-r--r--drivers/media/rc/keymaps/rc-videomate-s350.c2
-rw-r--r--drivers/media/rc/keymaps/rc-videomate-tv-pvr.c2
-rw-r--r--drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c2
-rw-r--r--drivers/media/rc/keymaps/rc-winfast.c2
-rw-r--r--drivers/media/rc/mceusb.c2
-rw-r--r--drivers/media/rc/nuvoton-cir.c2
-rw-r--r--drivers/media/rc/rc-main.c34
-rw-r--r--drivers/media/rc/streamzap.c2
-rw-r--r--drivers/media/video/cx18/cx18-i2c.c2
-rw-r--r--drivers/media/video/cx231xx/cx231xx-input.c2
-rw-r--r--drivers/media/video/cx23885/cx23885-input.c4
-rw-r--r--drivers/media/video/cx88/cx88-input.c8
-rw-r--r--drivers/media/video/em28xx/em28xx-input.c12
-rw-r--r--drivers/media/video/ir-kbd-i2c.c18
-rw-r--r--drivers/media/video/ivtv/ivtv-i2c.c6
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c2
-rw-r--r--drivers/staging/tm6000/tm6000-input.c12
-rw-r--r--include/media/ir-kbd-i2c.h2
-rw-r--r--include/media/rc-core.h4
-rw-r--r--include/media/rc-map.h26
119 files changed, 249 insertions, 249 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index bc2a6e464cea..8671ca362c81 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -1344,11 +1344,11 @@ static struct dvb_usb_device_properties af9015_properties[] = {
1344 .identify_state = af9015_identify_state, 1344 .identify_state = af9015_identify_state,
1345 1345
1346 .rc.core = { 1346 .rc.core = {
1347 .protocol = IR_TYPE_NEC, 1347 .protocol = RC_TYPE_NEC,
1348 .module_name = "af9015", 1348 .module_name = "af9015",
1349 .rc_query = af9015_rc_query, 1349 .rc_query = af9015_rc_query,
1350 .rc_interval = AF9015_RC_INTERVAL, 1350 .rc_interval = AF9015_RC_INTERVAL,
1351 .allowed_protos = IR_TYPE_NEC, 1351 .allowed_protos = RC_TYPE_NEC,
1352 }, 1352 },
1353 1353
1354 .i2c_algo = &af9015_i2c_algo, 1354 .i2c_algo = &af9015_i2c_algo,
@@ -1472,11 +1472,11 @@ static struct dvb_usb_device_properties af9015_properties[] = {
1472 .identify_state = af9015_identify_state, 1472 .identify_state = af9015_identify_state,
1473 1473
1474 .rc.core = { 1474 .rc.core = {
1475 .protocol = IR_TYPE_NEC, 1475 .protocol = RC_TYPE_NEC,
1476 .module_name = "af9015", 1476 .module_name = "af9015",
1477 .rc_query = af9015_rc_query, 1477 .rc_query = af9015_rc_query,
1478 .rc_interval = AF9015_RC_INTERVAL, 1478 .rc_interval = AF9015_RC_INTERVAL,
1479 .allowed_protos = IR_TYPE_NEC, 1479 .allowed_protos = RC_TYPE_NEC,
1480 }, 1480 },
1481 1481
1482 .i2c_algo = &af9015_i2c_algo, 1482 .i2c_algo = &af9015_i2c_algo,
@@ -1584,11 +1584,11 @@ static struct dvb_usb_device_properties af9015_properties[] = {
1584 .identify_state = af9015_identify_state, 1584 .identify_state = af9015_identify_state,
1585 1585
1586 .rc.core = { 1586 .rc.core = {
1587 .protocol = IR_TYPE_NEC, 1587 .protocol = RC_TYPE_NEC,
1588 .module_name = "af9015", 1588 .module_name = "af9015",
1589 .rc_query = af9015_rc_query, 1589 .rc_query = af9015_rc_query,
1590 .rc_interval = AF9015_RC_INTERVAL, 1590 .rc_interval = AF9015_RC_INTERVAL,
1591 .allowed_protos = IR_TYPE_NEC, 1591 .allowed_protos = RC_TYPE_NEC,
1592 }, 1592 },
1593 1593
1594 .i2c_algo = &af9015_i2c_algo, 1594 .i2c_algo = &af9015_i2c_algo,
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c
index 5e12488f3c76..6b402e943539 100644
--- a/drivers/media/dvb/dvb-usb/anysee.c
+++ b/drivers/media/dvb/dvb-usb/anysee.c
@@ -476,7 +476,7 @@ static struct dvb_usb_device_properties anysee_properties = {
476 476
477 .rc.core = { 477 .rc.core = {
478 .rc_codes = RC_MAP_ANYSEE, 478 .rc_codes = RC_MAP_ANYSEE,
479 .protocol = IR_TYPE_OTHER, 479 .protocol = RC_TYPE_OTHER,
480 .module_name = "anysee", 480 .module_name = "anysee",
481 .rc_query = anysee_rc_query, 481 .rc_query = anysee_rc_query,
482 .rc_interval = 250, /* windows driver uses 500ms */ 482 .rc_interval = 250, /* windows driver uses 500ms */
diff --git a/drivers/media/dvb/dvb-usb/dib0700.h b/drivers/media/dvb/dvb-usb/dib0700.h
index 1e7d780332b5..3537d65c04bc 100644
--- a/drivers/media/dvb/dvb-usb/dib0700.h
+++ b/drivers/media/dvb/dvb-usb/dib0700.h
@@ -60,7 +60,7 @@ extern int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff);
60extern struct i2c_algorithm dib0700_i2c_algo; 60extern struct i2c_algorithm dib0700_i2c_algo;
61extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, 61extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props,
62 struct dvb_usb_device_description **desc, int *cold); 62 struct dvb_usb_device_description **desc, int *cold);
63extern int dib0700_change_protocol(struct rc_dev *dev, u64 ir_type); 63extern int dib0700_change_protocol(struct rc_dev *dev, u64 rc_type);
64 64
65extern int dib0700_device_count; 65extern int dib0700_device_count;
66extern int dvb_usb_dib0700_ir_proto; 66extern int dvb_usb_dib0700_ir_proto;
diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c b/drivers/media/dvb/dvb-usb/dib0700_core.c
index 1dd119e7b676..8ca48f76dfa9 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_core.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_core.c
@@ -471,7 +471,7 @@ int dib0700_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
471 return dib0700_ctrl_wr(adap->dev, b, 4); 471 return dib0700_ctrl_wr(adap->dev, b, 4);
472} 472}
473 473
474int dib0700_change_protocol(struct rc_dev *rc, u64 ir_type) 474int dib0700_change_protocol(struct rc_dev *rc, u64 rc_type)
475{ 475{
476 struct dvb_usb_device *d = rc->priv; 476 struct dvb_usb_device *d = rc->priv;
477 struct dib0700_state *st = d->priv; 477 struct dib0700_state *st = d->priv;
@@ -479,11 +479,11 @@ int dib0700_change_protocol(struct rc_dev *rc, u64 ir_type)
479 int new_proto, ret; 479 int new_proto, ret;
480 480
481 /* Set the IR mode */ 481 /* Set the IR mode */
482 if (ir_type == IR_TYPE_RC5) 482 if (rc_type == RC_TYPE_RC5)
483 new_proto = 1; 483 new_proto = 1;
484 else if (ir_type == IR_TYPE_NEC) 484 else if (rc_type == RC_TYPE_NEC)
485 new_proto = 0; 485 new_proto = 0;
486 else if (ir_type == IR_TYPE_RC6) { 486 else if (rc_type == RC_TYPE_RC6) {
487 if (st->fw_version < 0x10200) 487 if (st->fw_version < 0x10200)
488 return -EINVAL; 488 return -EINVAL;
489 489
@@ -499,7 +499,7 @@ int dib0700_change_protocol(struct rc_dev *rc, u64 ir_type)
499 return ret; 499 return ret;
500 } 500 }
501 501
502 d->props.rc.core.protocol = ir_type; 502 d->props.rc.core.protocol = rc_type;
503 503
504 return ret; 504 return ret;
505} 505}
@@ -562,7 +562,7 @@ static void dib0700_rc_urb_completion(struct urb *purb)
562 purb->actual_length); 562 purb->actual_length);
563 563
564 switch (d->props.rc.core.protocol) { 564 switch (d->props.rc.core.protocol) {
565 case IR_TYPE_NEC: 565 case RC_TYPE_NEC:
566 toggle = 0; 566 toggle = 0;
567 567
568 /* NEC protocol sends repeat code as 0 0 0 FF */ 568 /* NEC protocol sends repeat code as 0 0 0 FF */
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c
index 9ac920d0483e..defd83964ce2 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_devices.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c
@@ -510,7 +510,7 @@ static int dib0700_rc_query_old_firmware(struct dvb_usb_device *d)
510 510
511 d->last_event = 0; 511 d->last_event = 0;
512 switch (d->props.rc.core.protocol) { 512 switch (d->props.rc.core.protocol) {
513 case IR_TYPE_NEC: 513 case RC_TYPE_NEC:
514 /* NEC protocol sends repeat code as 0 0 0 FF */ 514 /* NEC protocol sends repeat code as 0 0 0 FF */
515 if ((key[3-2] == 0x00) && (key[3-3] == 0x00) && 515 if ((key[3-2] == 0x00) && (key[3-3] == 0x00) &&
516 (key[3] == 0xff)) 516 (key[3] == 0xff))
@@ -1924,9 +1924,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
1924 .rc_interval = DEFAULT_RC_INTERVAL, 1924 .rc_interval = DEFAULT_RC_INTERVAL,
1925 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 1925 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
1926 .rc_query = dib0700_rc_query_old_firmware, 1926 .rc_query = dib0700_rc_query_old_firmware,
1927 .allowed_protos = IR_TYPE_RC5 | 1927 .allowed_protos = RC_TYPE_RC5 |
1928 IR_TYPE_RC6 | 1928 RC_TYPE_RC6 |
1929 IR_TYPE_NEC, 1929 RC_TYPE_NEC,
1930 .change_protocol = dib0700_change_protocol, 1930 .change_protocol = dib0700_change_protocol,
1931 }, 1931 },
1932 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 1932 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -1958,9 +1958,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
1958 .rc_interval = DEFAULT_RC_INTERVAL, 1958 .rc_interval = DEFAULT_RC_INTERVAL,
1959 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 1959 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
1960 .rc_query = dib0700_rc_query_old_firmware, 1960 .rc_query = dib0700_rc_query_old_firmware,
1961 .allowed_protos = IR_TYPE_RC5 | 1961 .allowed_protos = RC_TYPE_RC5 |
1962 IR_TYPE_RC6 | 1962 RC_TYPE_RC6 |
1963 IR_TYPE_NEC, 1963 RC_TYPE_NEC,
1964 .change_protocol = dib0700_change_protocol, 1964 .change_protocol = dib0700_change_protocol,
1965 }, 1965 },
1966 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 1966 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2017,9 +2017,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2017 .rc_interval = DEFAULT_RC_INTERVAL, 2017 .rc_interval = DEFAULT_RC_INTERVAL,
2018 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2018 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2019 .rc_query = dib0700_rc_query_old_firmware, 2019 .rc_query = dib0700_rc_query_old_firmware,
2020 .allowed_protos = IR_TYPE_RC5 | 2020 .allowed_protos = RC_TYPE_RC5 |
2021 IR_TYPE_RC6 | 2021 RC_TYPE_RC6 |
2022 IR_TYPE_NEC, 2022 RC_TYPE_NEC,
2023 .change_protocol = dib0700_change_protocol, 2023 .change_protocol = dib0700_change_protocol,
2024 }, 2024 },
2025 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2025 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2059,9 +2059,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2059 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2059 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2060 .module_name = "dib0700", 2060 .module_name = "dib0700",
2061 .rc_query = dib0700_rc_query_old_firmware, 2061 .rc_query = dib0700_rc_query_old_firmware,
2062 .allowed_protos = IR_TYPE_RC5 | 2062 .allowed_protos = RC_TYPE_RC5 |
2063 IR_TYPE_RC6 | 2063 RC_TYPE_RC6 |
2064 IR_TYPE_NEC, 2064 RC_TYPE_NEC,
2065 .change_protocol = dib0700_change_protocol, 2065 .change_protocol = dib0700_change_protocol,
2066 }, 2066 },
2067 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2067 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2135,9 +2135,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2135 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2135 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2136 .module_name = "dib0700", 2136 .module_name = "dib0700",
2137 .rc_query = dib0700_rc_query_old_firmware, 2137 .rc_query = dib0700_rc_query_old_firmware,
2138 .allowed_protos = IR_TYPE_RC5 | 2138 .allowed_protos = RC_TYPE_RC5 |
2139 IR_TYPE_RC6 | 2139 RC_TYPE_RC6 |
2140 IR_TYPE_NEC, 2140 RC_TYPE_NEC,
2141 .change_protocol = dib0700_change_protocol, 2141 .change_protocol = dib0700_change_protocol,
2142 }, 2142 },
2143 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2143 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2179,9 +2179,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2179 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2179 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2180 .module_name = "dib0700", 2180 .module_name = "dib0700",
2181 .rc_query = dib0700_rc_query_old_firmware, 2181 .rc_query = dib0700_rc_query_old_firmware,
2182 .allowed_protos = IR_TYPE_RC5 | 2182 .allowed_protos = RC_TYPE_RC5 |
2183 IR_TYPE_RC6 | 2183 RC_TYPE_RC6 |
2184 IR_TYPE_NEC, 2184 RC_TYPE_NEC,
2185 .change_protocol = dib0700_change_protocol, 2185 .change_protocol = dib0700_change_protocol,
2186 }, 2186 },
2187 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2187 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2247,9 +2247,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2247 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2247 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2248 .module_name = "dib0700", 2248 .module_name = "dib0700",
2249 .rc_query = dib0700_rc_query_old_firmware, 2249 .rc_query = dib0700_rc_query_old_firmware,
2250 .allowed_protos = IR_TYPE_RC5 | 2250 .allowed_protos = RC_TYPE_RC5 |
2251 IR_TYPE_RC6 | 2251 RC_TYPE_RC6 |
2252 IR_TYPE_NEC, 2252 RC_TYPE_NEC,
2253 .change_protocol = dib0700_change_protocol, 2253 .change_protocol = dib0700_change_protocol,
2254 }, 2254 },
2255 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2255 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2294,9 +2294,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2294 .rc_codes = RC_MAP_DIB0700_NEC_TABLE, 2294 .rc_codes = RC_MAP_DIB0700_NEC_TABLE,
2295 .module_name = "dib0700", 2295 .module_name = "dib0700",
2296 .rc_query = dib0700_rc_query_old_firmware, 2296 .rc_query = dib0700_rc_query_old_firmware,
2297 .allowed_protos = IR_TYPE_RC5 | 2297 .allowed_protos = RC_TYPE_RC5 |
2298 IR_TYPE_RC6 | 2298 RC_TYPE_RC6 |
2299 IR_TYPE_NEC, 2299 RC_TYPE_NEC,
2300 .change_protocol = dib0700_change_protocol, 2300 .change_protocol = dib0700_change_protocol,
2301 }, 2301 },
2302 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2302 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2363,9 +2363,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2363 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2363 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2364 .module_name = "dib0700", 2364 .module_name = "dib0700",
2365 .rc_query = dib0700_rc_query_old_firmware, 2365 .rc_query = dib0700_rc_query_old_firmware,
2366 .allowed_protos = IR_TYPE_RC5 | 2366 .allowed_protos = RC_TYPE_RC5 |
2367 IR_TYPE_RC6 | 2367 RC_TYPE_RC6 |
2368 IR_TYPE_NEC, 2368 RC_TYPE_NEC,
2369 .change_protocol = dib0700_change_protocol, 2369 .change_protocol = dib0700_change_protocol,
2370 }, 2370 },
2371 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2371 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2399,9 +2399,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2399 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2399 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2400 .module_name = "dib0700", 2400 .module_name = "dib0700",
2401 .rc_query = dib0700_rc_query_old_firmware, 2401 .rc_query = dib0700_rc_query_old_firmware,
2402 .allowed_protos = IR_TYPE_RC5 | 2402 .allowed_protos = RC_TYPE_RC5 |
2403 IR_TYPE_RC6 | 2403 RC_TYPE_RC6 |
2404 IR_TYPE_NEC, 2404 RC_TYPE_NEC,
2405 .change_protocol = dib0700_change_protocol, 2405 .change_protocol = dib0700_change_protocol,
2406 }, 2406 },
2407 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2407 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2467,9 +2467,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2467 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2467 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2468 .module_name = "dib0700", 2468 .module_name = "dib0700",
2469 .rc_query = dib0700_rc_query_old_firmware, 2469 .rc_query = dib0700_rc_query_old_firmware,
2470 .allowed_protos = IR_TYPE_RC5 | 2470 .allowed_protos = RC_TYPE_RC5 |
2471 IR_TYPE_RC6 | 2471 RC_TYPE_RC6 |
2472 IR_TYPE_NEC, 2472 RC_TYPE_NEC,
2473 .change_protocol = dib0700_change_protocol, 2473 .change_protocol = dib0700_change_protocol,
2474 }, 2474 },
2475 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2475 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2511,9 +2511,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2511 .rc_codes = RC_MAP_DIB0700_NEC_TABLE, 2511 .rc_codes = RC_MAP_DIB0700_NEC_TABLE,
2512 .module_name = "dib0700", 2512 .module_name = "dib0700",
2513 .rc_query = dib0700_rc_query_old_firmware, 2513 .rc_query = dib0700_rc_query_old_firmware,
2514 .allowed_protos = IR_TYPE_RC5 | 2514 .allowed_protos = RC_TYPE_RC5 |
2515 IR_TYPE_RC6 | 2515 RC_TYPE_RC6 |
2516 IR_TYPE_NEC, 2516 RC_TYPE_NEC,
2517 .change_protocol = dib0700_change_protocol, 2517 .change_protocol = dib0700_change_protocol,
2518 }, 2518 },
2519 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2519 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2560,9 +2560,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2560 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2560 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2561 .module_name = "dib0700", 2561 .module_name = "dib0700",
2562 .rc_query = dib0700_rc_query_old_firmware, 2562 .rc_query = dib0700_rc_query_old_firmware,
2563 .allowed_protos = IR_TYPE_RC5 | 2563 .allowed_protos = RC_TYPE_RC5 |
2564 IR_TYPE_RC6 | 2564 RC_TYPE_RC6 |
2565 IR_TYPE_NEC, 2565 RC_TYPE_NEC,
2566 .change_protocol = dib0700_change_protocol, 2566 .change_protocol = dib0700_change_protocol,
2567 }, 2567 },
2568 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, 2568 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
@@ -2597,9 +2597,9 @@ struct dvb_usb_device_properties dib0700_devices[] = {
2597 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 2597 .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
2598 .module_name = "dib0700", 2598 .module_name = "dib0700",
2599 .rc_query = dib0700_rc_query_old_firmware, 2599 .rc_query = dib0700_rc_query_old_firmware,
2600 .allowed_protos = IR_TYPE_RC5 | 2600 .allowed_protos = RC_TYPE_RC5 |
2601 IR_TYPE_RC6 | 2601 RC_TYPE_RC6 |
2602 IR_TYPE_NEC, 2602 RC_TYPE_NEC,
2603 .change_protocol = dib0700_change_protocol, 2603 .change_protocol = dib0700_change_protocol,
2604 }, 2604 },
2605 }, 2605 },
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h
index 18828cb282c4..95b1603d5be8 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb.h
@@ -190,7 +190,7 @@ struct dvb_rc {
190 char *rc_codes; 190 char *rc_codes;
191 u64 protocol; 191 u64 protocol;
192 u64 allowed_protos; 192 u64 allowed_protos;
193 int (*change_protocol)(struct rc_dev *dev, u64 ir_type); 193 int (*change_protocol)(struct rc_dev *dev, u64 rc_type);
194 char *module_name; 194 char *module_name;
195 int (*rc_query) (struct dvb_usb_device *d); 195 int (*rc_query) (struct dvb_usb_device *d);
196 int rc_interval; 196 int rc_interval;
diff --git a/drivers/media/dvb/mantis/mantis_input.c b/drivers/media/dvb/mantis/mantis_input.c
index e030b18ad6d9..cf5f8ca6f685 100644
--- a/drivers/media/dvb/mantis/mantis_input.c
+++ b/drivers/media/dvb/mantis/mantis_input.c
@@ -99,7 +99,7 @@ static struct rc_keymap ir_mantis_map = {
99 .map = { 99 .map = {
100 .scan = mantis_ir_table, 100 .scan = mantis_ir_table,
101 .size = ARRAY_SIZE(mantis_ir_table), 101 .size = ARRAY_SIZE(mantis_ir_table),
102 .ir_type = IR_TYPE_UNKNOWN, 102 .rc_type = RC_TYPE_UNKNOWN,
103 .name = RC_MAP_MANTIS, 103 .name = RC_MAP_MANTIS,
104 } 104 }
105}; 105};
diff --git a/drivers/media/dvb/siano/smsir.c b/drivers/media/dvb/siano/smsir.c
index ebd73059b518..37bc5c4b8ad8 100644
--- a/drivers/media/dvb/siano/smsir.c
+++ b/drivers/media/dvb/siano/smsir.c
@@ -88,7 +88,7 @@ int sms_ir_init(struct smscore_device_t *coredev)
88 88
89 dev->priv = coredev; 89 dev->priv = coredev;
90 dev->driver_type = RC_DRIVER_IR_RAW; 90 dev->driver_type = RC_DRIVER_IR_RAW;
91 dev->allowed_protos = IR_TYPE_ALL; 91 dev->allowed_protos = RC_TYPE_ALL;
92 dev->map_name = sms_get_board(board_id)->rc_codes; 92 dev->map_name = sms_get_board(board_id)->rc_codes;
93 dev->driver_name = MODULE_NAME; 93 dev->driver_name = MODULE_NAME;
94 94
diff --git a/drivers/media/rc/ene_ir.c b/drivers/media/rc/ene_ir.c
index 1ace4581f157..80b3c319f698 100644
--- a/drivers/media/rc/ene_ir.c
+++ b/drivers/media/rc/ene_ir.c
@@ -1052,7 +1052,7 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)
1052 learning_mode_force = false; 1052 learning_mode_force = false;
1053 1053
1054 rdev->driver_type = RC_DRIVER_IR_RAW; 1054 rdev->driver_type = RC_DRIVER_IR_RAW;
1055 rdev->allowed_protos = IR_TYPE_ALL; 1055 rdev->allowed_protos = RC_TYPE_ALL;
1056 rdev->priv = dev; 1056 rdev->priv = dev;
1057 rdev->open = ene_open; 1057 rdev->open = ene_open;
1058 rdev->close = ene_close; 1058 rdev->close = ene_close;
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c
index d67573edb052..de9dc0e202d5 100644
--- a/drivers/media/rc/imon.c
+++ b/drivers/media/rc/imon.c
@@ -131,7 +131,7 @@ struct imon_context {
131 u32 last_keycode; /* last reported input keycode */ 131 u32 last_keycode; /* last reported input keycode */
132 u32 rc_scancode; /* the computed remote scancode */ 132 u32 rc_scancode; /* the computed remote scancode */
133 u8 rc_toggle; /* the computed remote toggle bit */ 133 u8 rc_toggle; /* the computed remote toggle bit */
134 u64 ir_type; /* iMON or MCE (RC6) IR protocol? */ 134 u64 rc_type; /* iMON or MCE (RC6) IR protocol? */
135 bool release_code; /* some keys send a release code */ 135 bool release_code; /* some keys send a release code */
136 136
137 u8 display_type; /* store the display type */ 137 u8 display_type; /* store the display type */
@@ -983,7 +983,7 @@ static void imon_touch_display_timeout(unsigned long data)
983 * really just RC-6), but only one or the other at a time, as the signals 983 * really just RC-6), but only one or the other at a time, as the signals
984 * are decoded onboard the receiver. 984 * are decoded onboard the receiver.
985 */ 985 */
986static int imon_ir_change_protocol(struct rc_dev *rc, u64 ir_type) 986static int imon_ir_change_protocol(struct rc_dev *rc, u64 rc_type)
987{ 987{
988 int retval; 988 int retval;
989 struct imon_context *ictx = rc->priv; 989 struct imon_context *ictx = rc->priv;
@@ -992,18 +992,18 @@ static int imon_ir_change_protocol(struct rc_dev *rc, u64 ir_type)
992 unsigned char ir_proto_packet[] = { 992 unsigned char ir_proto_packet[] = {
993 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86 }; 993 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86 };
994 994
995 if (ir_type && !(ir_type & rc->allowed_protos)) 995 if (rc_type && !(rc_type & rc->allowed_protos))
996 dev_warn(dev, "Looks like you're trying to use an IR protocol " 996 dev_warn(dev, "Looks like you're trying to use an IR protocol "
997 "this device does not support\n"); 997 "this device does not support\n");
998 998
999 switch (ir_type) { 999 switch (rc_type) {
1000 case IR_TYPE_RC6: 1000 case RC_TYPE_RC6:
1001 dev_dbg(dev, "Configuring IR receiver for MCE protocol\n"); 1001 dev_dbg(dev, "Configuring IR receiver for MCE protocol\n");
1002 ir_proto_packet[0] = 0x01; 1002 ir_proto_packet[0] = 0x01;
1003 pad_mouse = false; 1003 pad_mouse = false;
1004 break; 1004 break;
1005 case IR_TYPE_UNKNOWN: 1005 case RC_TYPE_UNKNOWN:
1006 case IR_TYPE_OTHER: 1006 case RC_TYPE_OTHER:
1007 dev_dbg(dev, "Configuring IR receiver for iMON protocol\n"); 1007 dev_dbg(dev, "Configuring IR receiver for iMON protocol\n");
1008 if (pad_stabilize && !nomouse) 1008 if (pad_stabilize && !nomouse)
1009 pad_mouse = true; 1009 pad_mouse = true;
@@ -1012,7 +1012,7 @@ static int imon_ir_change_protocol(struct rc_dev *rc, u64 ir_type)
1012 pad_mouse = false; 1012 pad_mouse = false;
1013 } 1013 }
1014 /* ir_proto_packet[0] = 0x00; // already the default */ 1014 /* ir_proto_packet[0] = 0x00; // already the default */
1015 ir_type = IR_TYPE_OTHER; 1015 rc_type = RC_TYPE_OTHER;
1016 break; 1016 break;
1017 default: 1017 default:
1018 dev_warn(dev, "Unsupported IR protocol specified, overriding " 1018 dev_warn(dev, "Unsupported IR protocol specified, overriding "
@@ -1024,7 +1024,7 @@ static int imon_ir_change_protocol(struct rc_dev *rc, u64 ir_type)
1024 pad_mouse = false; 1024 pad_mouse = false;
1025 } 1025 }
1026 /* ir_proto_packet[0] = 0x00; // already the default */ 1026 /* ir_proto_packet[0] = 0x00; // already the default */
1027 ir_type = IR_TYPE_OTHER; 1027 rc_type = RC_TYPE_OTHER;
1028 break; 1028 break;
1029 } 1029 }
1030 1030
@@ -1034,7 +1034,7 @@ static int imon_ir_change_protocol(struct rc_dev *rc, u64 ir_type)
1034 if (retval) 1034 if (retval)
1035 goto out; 1035 goto out;
1036 1036
1037 ictx->ir_type = ir_type; 1037 ictx->rc_type = rc_type;
1038 ictx->pad_mouse = pad_mouse; 1038 ictx->pad_mouse = pad_mouse;
1039 1039
1040out: 1040out:
@@ -1306,7 +1306,7 @@ static void imon_pad_to_keys(struct imon_context *ictx, unsigned char *buf)
1306 rel_x = buf[2]; 1306 rel_x = buf[2];
1307 rel_y = buf[3]; 1307 rel_y = buf[3];
1308 1308
1309 if (ictx->ir_type == IR_TYPE_OTHER && pad_stabilize) { 1309 if (ictx->rc_type == RC_TYPE_OTHER && pad_stabilize) {
1310 if ((buf[1] == 0) && ((rel_x != 0) || (rel_y != 0))) { 1310 if ((buf[1] == 0) && ((rel_x != 0) || (rel_y != 0))) {
1311 dir = stabilize((int)rel_x, (int)rel_y, 1311 dir = stabilize((int)rel_x, (int)rel_y,
1312 timeout, threshold); 1312 timeout, threshold);
@@ -1373,7 +1373,7 @@ static void imon_pad_to_keys(struct imon_context *ictx, unsigned char *buf)
1373 buf[0] = 0x01; 1373 buf[0] = 0x01;
1374 buf[1] = buf[4] = buf[5] = buf[6] = buf[7] = 0; 1374 buf[1] = buf[4] = buf[5] = buf[6] = buf[7] = 0;
1375 1375
1376 if (ictx->ir_type == IR_TYPE_OTHER && pad_stabilize) { 1376 if (ictx->rc_type == RC_TYPE_OTHER && pad_stabilize) {
1377 dir = stabilize((int)rel_x, (int)rel_y, 1377 dir = stabilize((int)rel_x, (int)rel_y,
1378 timeout, threshold); 1378 timeout, threshold);
1379 if (!dir) { 1379 if (!dir) {
@@ -1495,7 +1495,7 @@ static void imon_incoming_packet(struct imon_context *ictx,
1495 kc = imon_panel_key_lookup(scancode); 1495 kc = imon_panel_key_lookup(scancode);
1496 } else { 1496 } else {
1497 scancode = be32_to_cpu(*((u32 *)buf)); 1497 scancode = be32_to_cpu(*((u32 *)buf));
1498 if (ictx->ir_type == IR_TYPE_RC6) { 1498 if (ictx->rc_type == RC_TYPE_RC6) {
1499 ktype = IMON_KEY_IMON; 1499 ktype = IMON_KEY_IMON;
1500 if (buf[0] == 0x80) 1500 if (buf[0] == 0x80)
1501 ktype = IMON_KEY_MCE; 1501 ktype = IMON_KEY_MCE;
@@ -1709,7 +1709,7 @@ static void imon_get_ffdc_type(struct imon_context *ictx)
1709{ 1709{
1710 u8 ffdc_cfg_byte = ictx->usb_rx_buf[6]; 1710 u8 ffdc_cfg_byte = ictx->usb_rx_buf[6];
1711 u8 detected_display_type = IMON_DISPLAY_TYPE_NONE; 1711 u8 detected_display_type = IMON_DISPLAY_TYPE_NONE;
1712 u64 allowed_protos = IR_TYPE_OTHER; 1712 u64 allowed_protos = RC_TYPE_OTHER;
1713 1713
1714 switch (ffdc_cfg_byte) { 1714 switch (ffdc_cfg_byte) {
1715 /* iMON Knob, no display, iMON IR + vol knob */ 1715 /* iMON Knob, no display, iMON IR + vol knob */
@@ -1738,13 +1738,13 @@ static void imon_get_ffdc_type(struct imon_context *ictx)
1738 case 0x9e: 1738 case 0x9e:
1739 dev_info(ictx->dev, "0xffdc iMON VFD, MCE IR"); 1739 dev_info(ictx->dev, "0xffdc iMON VFD, MCE IR");
1740 detected_display_type = IMON_DISPLAY_TYPE_VFD; 1740 detected_display_type = IMON_DISPLAY_TYPE_VFD;
1741 allowed_protos = IR_TYPE_RC6; 1741 allowed_protos = RC_TYPE_RC6;
1742 break; 1742 break;
1743 /* iMON LCD, MCE IR */ 1743 /* iMON LCD, MCE IR */
1744 case 0x9f: 1744 case 0x9f:
1745 dev_info(ictx->dev, "0xffdc iMON LCD, MCE IR"); 1745 dev_info(ictx->dev, "0xffdc iMON LCD, MCE IR");
1746 detected_display_type = IMON_DISPLAY_TYPE_LCD; 1746 detected_display_type = IMON_DISPLAY_TYPE_LCD;
1747 allowed_protos = IR_TYPE_RC6; 1747 allowed_protos = RC_TYPE_RC6;
1748 break; 1748 break;
1749 default: 1749 default:
1750 dev_info(ictx->dev, "Unknown 0xffdc device, " 1750 dev_info(ictx->dev, "Unknown 0xffdc device, "
@@ -1757,7 +1757,7 @@ static void imon_get_ffdc_type(struct imon_context *ictx)
1757 1757
1758 ictx->display_type = detected_display_type; 1758 ictx->display_type = detected_display_type;
1759 ictx->rdev->allowed_protos = allowed_protos; 1759 ictx->rdev->allowed_protos = allowed_protos;
1760 ictx->ir_type = allowed_protos; 1760 ictx->rc_type = allowed_protos;
1761} 1761}
1762 1762
1763static void imon_set_display_type(struct imon_context *ictx) 1763static void imon_set_display_type(struct imon_context *ictx)
@@ -1836,10 +1836,10 @@ static struct rc_dev *imon_init_rdev(struct imon_context *ictx)
1836 1836
1837 rdev->priv = ictx; 1837 rdev->priv = ictx;
1838 rdev->driver_type = RC_DRIVER_SCANCODE; 1838 rdev->driver_type = RC_DRIVER_SCANCODE;
1839 rdev->allowed_protos = IR_TYPE_OTHER | IR_TYPE_RC6; /* iMON PAD or MCE */ 1839 rdev->allowed_protos = RC_TYPE_OTHER | RC_TYPE_RC6; /* iMON PAD or MCE */
1840 rdev->change_protocol = imon_ir_change_protocol; 1840 rdev->change_protocol = imon_ir_change_protocol;
1841 rdev->driver_name = MOD_NAME; 1841 rdev->driver_name = MOD_NAME;
1842 if (ictx->ir_type == IR_TYPE_RC6) 1842 if (ictx->rc_type == RC_TYPE_RC6)
1843 rdev->map_name = RC_MAP_IMON_MCE; 1843 rdev->map_name = RC_MAP_IMON_MCE;
1844 else 1844 else
1845 rdev->map_name = RC_MAP_IMON_PAD; 1845 rdev->map_name = RC_MAP_IMON_PAD;
diff --git a/drivers/media/rc/ir-jvc-decoder.c b/drivers/media/rc/ir-jvc-decoder.c
index 09c143ff33f3..624449afaa61 100644
--- a/drivers/media/rc/ir-jvc-decoder.c
+++ b/drivers/media/rc/ir-jvc-decoder.c
@@ -46,7 +46,7 @@ static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev)
46{ 46{
47 struct jvc_dec *data = &dev->raw->jvc; 47 struct jvc_dec *data = &dev->raw->jvc;
48 48
49 if (!(dev->raw->enabled_protocols & IR_TYPE_JVC)) 49 if (!(dev->raw->enabled_protocols & RC_TYPE_JVC))
50 return 0; 50 return 0;
51 51
52 if (!is_timing_event(ev)) { 52 if (!is_timing_event(ev)) {
@@ -173,7 +173,7 @@ out:
173} 173}
174 174
175static struct ir_raw_handler jvc_handler = { 175static struct ir_raw_handler jvc_handler = {
176 .protocols = IR_TYPE_JVC, 176 .protocols = RC_TYPE_JVC,
177 .decode = ir_jvc_decode, 177 .decode = ir_jvc_decode,
178}; 178};
179 179
diff --git a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc/ir-lirc-codec.c
index f9086c5ba8b1..1e87ee8e5c99 100644
--- a/drivers/media/rc/ir-lirc-codec.c
+++ b/drivers/media/rc/ir-lirc-codec.c
@@ -34,7 +34,7 @@ static int ir_lirc_decode(struct rc_dev *dev, struct ir_raw_event ev)
34 struct lirc_codec *lirc = &dev->raw->lirc; 34 struct lirc_codec *lirc = &dev->raw->lirc;
35 int sample; 35 int sample;
36 36
37 if (!(dev->raw->enabled_protocols & IR_TYPE_LIRC)) 37 if (!(dev->raw->enabled_protocols & RC_TYPE_LIRC))
38 return 0; 38 return 0;
39 39
40 if (!dev->raw->lirc.drv || !dev->raw->lirc.drv->rbuf) 40 if (!dev->raw->lirc.drv || !dev->raw->lirc.drv->rbuf)
@@ -373,7 +373,7 @@ static int ir_lirc_unregister(struct rc_dev *dev)
373} 373}
374 374
375static struct ir_raw_handler lirc_handler = { 375static struct ir_raw_handler lirc_handler = {
376 .protocols = IR_TYPE_LIRC, 376 .protocols = RC_TYPE_LIRC,
377 .decode = ir_lirc_decode, 377 .decode = ir_lirc_decode,
378 .raw_register = ir_lirc_register, 378 .raw_register = ir_lirc_register,
379 .raw_unregister = ir_lirc_unregister, 379 .raw_unregister = ir_lirc_unregister,
diff --git a/drivers/media/rc/ir-nec-decoder.c b/drivers/media/rc/ir-nec-decoder.c
index 235d774d0ec2..5d15c31288b9 100644
--- a/drivers/media/rc/ir-nec-decoder.c
+++ b/drivers/media/rc/ir-nec-decoder.c
@@ -50,7 +50,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
50 u32 scancode; 50 u32 scancode;
51 u8 address, not_address, command, not_command; 51 u8 address, not_address, command, not_command;
52 52
53 if (!(dev->raw->enabled_protocols & IR_TYPE_NEC)) 53 if (!(dev->raw->enabled_protocols & RC_TYPE_NEC))
54 return 0; 54 return 0;
55 55
56 if (!is_timing_event(ev)) { 56 if (!is_timing_event(ev)) {
@@ -190,7 +190,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
190} 190}
191 191
192static struct ir_raw_handler nec_handler = { 192static struct ir_raw_handler nec_handler = {
193 .protocols = IR_TYPE_NEC, 193 .protocols = RC_TYPE_NEC,
194 .decode = ir_nec_decode, 194 .decode = ir_nec_decode,
195}; 195};
196 196
diff --git a/drivers/media/rc/ir-rc5-decoder.c b/drivers/media/rc/ir-rc5-decoder.c
index 779ab0d0a285..ebdba5539916 100644
--- a/drivers/media/rc/ir-rc5-decoder.c
+++ b/drivers/media/rc/ir-rc5-decoder.c
@@ -51,7 +51,7 @@ static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev)
51 u8 toggle; 51 u8 toggle;
52 u32 scancode; 52 u32 scancode;
53 53
54 if (!(dev->raw->enabled_protocols & IR_TYPE_RC5)) 54 if (!(dev->raw->enabled_protocols & RC_TYPE_RC5))
55 return 0; 55 return 0;
56 56
57 if (!is_timing_event(ev)) { 57 if (!is_timing_event(ev)) {
@@ -163,7 +163,7 @@ out:
163} 163}
164 164
165static struct ir_raw_handler rc5_handler = { 165static struct ir_raw_handler rc5_handler = {
166 .protocols = IR_TYPE_RC5, 166 .protocols = RC_TYPE_RC5,
167 .decode = ir_rc5_decode, 167 .decode = ir_rc5_decode,
168}; 168};
169 169
diff --git a/drivers/media/rc/ir-rc5-sz-decoder.c b/drivers/media/rc/ir-rc5-sz-decoder.c
index 5586bf20c8d7..90aa8868629a 100644
--- a/drivers/media/rc/ir-rc5-sz-decoder.c
+++ b/drivers/media/rc/ir-rc5-sz-decoder.c
@@ -47,7 +47,7 @@ static int ir_rc5_sz_decode(struct rc_dev *dev, struct ir_raw_event ev)
47 u8 toggle, command, system; 47 u8 toggle, command, system;
48 u32 scancode; 48 u32 scancode;
49 49
50 if (!(dev->raw->enabled_protocols & IR_TYPE_RC5_SZ)) 50 if (!(dev->raw->enabled_protocols & RC_TYPE_RC5_SZ))
51 return 0; 51 return 0;
52 52
53 if (!is_timing_event(ev)) { 53 if (!is_timing_event(ev)) {
@@ -127,7 +127,7 @@ out:
127} 127}
128 128
129static struct ir_raw_handler rc5_sz_handler = { 129static struct ir_raw_handler rc5_sz_handler = {
130 .protocols = IR_TYPE_RC5_SZ, 130 .protocols = RC_TYPE_RC5_SZ,
131 .decode = ir_rc5_sz_decode, 131 .decode = ir_rc5_sz_decode,
132}; 132};
133 133
diff --git a/drivers/media/rc/ir-rc6-decoder.c b/drivers/media/rc/ir-rc6-decoder.c
index 88d948728c2f..755dafa3871b 100644
--- a/drivers/media/rc/ir-rc6-decoder.c
+++ b/drivers/media/rc/ir-rc6-decoder.c
@@ -81,7 +81,7 @@ static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev)
81 u32 scancode; 81 u32 scancode;
82 u8 toggle; 82 u8 toggle;
83 83
84 if (!(dev->raw->enabled_protocols & IR_TYPE_RC6)) 84 if (!(dev->raw->enabled_protocols & RC_TYPE_RC6))
85 return 0; 85 return 0;
86 86
87 if (!is_timing_event(ev)) { 87 if (!is_timing_event(ev)) {
@@ -255,7 +255,7 @@ out:
255} 255}
256 256
257static struct ir_raw_handler rc6_handler = { 257static struct ir_raw_handler rc6_handler = {
258 .protocols = IR_TYPE_RC6, 258 .protocols = RC_TYPE_RC6,
259 .decode = ir_rc6_decode, 259 .decode = ir_rc6_decode,
260}; 260};
261 261
diff --git a/drivers/media/rc/ir-sony-decoder.c b/drivers/media/rc/ir-sony-decoder.c
index 5292b89f8de2..a92de80c48db 100644
--- a/drivers/media/rc/ir-sony-decoder.c
+++ b/drivers/media/rc/ir-sony-decoder.c
@@ -44,7 +44,7 @@ static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev)
44 u32 scancode; 44 u32 scancode;
45 u8 device, subdevice, function; 45 u8 device, subdevice, function;
46 46
47 if (!(dev->raw->enabled_protocols & IR_TYPE_SONY)) 47 if (!(dev->raw->enabled_protocols & RC_TYPE_SONY))
48 return 0; 48 return 0;
49 49
50 if (!is_timing_event(ev)) { 50 if (!is_timing_event(ev)) {
@@ -156,7 +156,7 @@ out:
156} 156}
157 157
158static struct ir_raw_handler sony_handler = { 158static struct ir_raw_handler sony_handler = {
159 .protocols = IR_TYPE_SONY, 159 .protocols = RC_TYPE_SONY,
160 .decode = ir_sony_decode, 160 .decode = ir_sony_decode,
161}; 161};
162 162
diff --git a/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c b/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
index b17283176ecd..0ea0aeee6e78 100644
--- a/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
+++ b/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
@@ -67,7 +67,7 @@ static struct rc_keymap adstech_dvb_t_pci_map = {
67 .map = { 67 .map = {
68 .scan = adstech_dvb_t_pci, 68 .scan = adstech_dvb_t_pci,
69 .size = ARRAY_SIZE(adstech_dvb_t_pci), 69 .size = ARRAY_SIZE(adstech_dvb_t_pci),
70 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 70 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
71 .name = RC_MAP_ADSTECH_DVB_T_PCI, 71 .name = RC_MAP_ADSTECH_DVB_T_PCI,
72 } 72 }
73}; 73};
diff --git a/drivers/media/rc/keymaps/rc-alink-dtu-m.c b/drivers/media/rc/keymaps/rc-alink-dtu-m.c
index ddfee7f8093d..b0ec1c81a080 100644
--- a/drivers/media/rc/keymaps/rc-alink-dtu-m.c
+++ b/drivers/media/rc/keymaps/rc-alink-dtu-m.c
@@ -46,7 +46,7 @@ static struct rc_keymap alink_dtu_m_map = {
46 .map = { 46 .map = {
47 .scan = alink_dtu_m, 47 .scan = alink_dtu_m,
48 .size = ARRAY_SIZE(alink_dtu_m), 48 .size = ARRAY_SIZE(alink_dtu_m),
49 .ir_type = IR_TYPE_NEC, 49 .rc_type = RC_TYPE_NEC,
50 .name = RC_MAP_ALINK_DTU_M, 50 .name = RC_MAP_ALINK_DTU_M,
51 } 51 }
52}; 52};
diff --git a/drivers/media/rc/keymaps/rc-anysee.c b/drivers/media/rc/keymaps/rc-anysee.c
index 30d70498cfed..9bfe60e663b4 100644
--- a/drivers/media/rc/keymaps/rc-anysee.c
+++ b/drivers/media/rc/keymaps/rc-anysee.c
@@ -71,7 +71,7 @@ static struct rc_keymap anysee_map = {
71 .map = { 71 .map = {
72 .scan = anysee, 72 .scan = anysee,
73 .size = ARRAY_SIZE(anysee), 73 .size = ARRAY_SIZE(anysee),
74 .ir_type = IR_TYPE_NEC, 74 .rc_type = RC_TYPE_NEC,
75 .name = RC_MAP_ANYSEE, 75 .name = RC_MAP_ANYSEE,
76 } 76 }
77}; 77};
diff --git a/drivers/media/rc/keymaps/rc-apac-viewcomp.c b/drivers/media/rc/keymaps/rc-apac-viewcomp.c
index 0ef2b562baf0..a32840dd4df4 100644
--- a/drivers/media/rc/keymaps/rc-apac-viewcomp.c
+++ b/drivers/media/rc/keymaps/rc-apac-viewcomp.c
@@ -58,7 +58,7 @@ static struct rc_keymap apac_viewcomp_map = {
58 .map = { 58 .map = {
59 .scan = apac_viewcomp, 59 .scan = apac_viewcomp,
60 .size = ARRAY_SIZE(apac_viewcomp), 60 .size = ARRAY_SIZE(apac_viewcomp),
61 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 61 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
62 .name = RC_MAP_APAC_VIEWCOMP, 62 .name = RC_MAP_APAC_VIEWCOMP,
63 } 63 }
64}; 64};
diff --git a/drivers/media/rc/keymaps/rc-asus-pc39.c b/drivers/media/rc/keymaps/rc-asus-pc39.c
index 2996e0a3b8d5..f86bfb7bf271 100644
--- a/drivers/media/rc/keymaps/rc-asus-pc39.c
+++ b/drivers/media/rc/keymaps/rc-asus-pc39.c
@@ -69,7 +69,7 @@ static struct rc_keymap asus_pc39_map = {
69 .map = { 69 .map = {
70 .scan = asus_pc39, 70 .scan = asus_pc39,
71 .size = ARRAY_SIZE(asus_pc39), 71 .size = ARRAY_SIZE(asus_pc39),
72 .ir_type = IR_TYPE_RC5, 72 .rc_type = RC_TYPE_RC5,
73 .name = RC_MAP_ASUS_PC39, 73 .name = RC_MAP_ASUS_PC39,
74 } 74 }
75}; 75};
diff --git a/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c b/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
index 8edfd293d010..0cefe1c5536d 100644
--- a/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
+++ b/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
@@ -47,7 +47,7 @@ static struct rc_keymap ati_tv_wonder_hd_600_map = {
47 .map = { 47 .map = {
48 .scan = ati_tv_wonder_hd_600, 48 .scan = ati_tv_wonder_hd_600,
49 .size = ARRAY_SIZE(ati_tv_wonder_hd_600), 49 .size = ARRAY_SIZE(ati_tv_wonder_hd_600),
50 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 50 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
51 .name = RC_MAP_ATI_TV_WONDER_HD_600, 51 .name = RC_MAP_ATI_TV_WONDER_HD_600,
52 } 52 }
53}; 53};
diff --git a/drivers/media/rc/keymaps/rc-avermedia-a16d.c b/drivers/media/rc/keymaps/rc-avermedia-a16d.c
index 12f043587f2e..43525c8c111a 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-a16d.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-a16d.c
@@ -53,7 +53,7 @@ static struct rc_keymap avermedia_a16d_map = {
53 .map = { 53 .map = {
54 .scan = avermedia_a16d, 54 .scan = avermedia_a16d,
55 .size = ARRAY_SIZE(avermedia_a16d), 55 .size = ARRAY_SIZE(avermedia_a16d),
56 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 56 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
57 .name = RC_MAP_AVERMEDIA_A16D, 57 .name = RC_MAP_AVERMEDIA_A16D,
58 } 58 }
59}; 59};
diff --git a/drivers/media/rc/keymaps/rc-avermedia-cardbus.c b/drivers/media/rc/keymaps/rc-avermedia-cardbus.c
index 2a945b02e8ca..2d528cac2caf 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-cardbus.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-cardbus.c
@@ -75,7 +75,7 @@ static struct rc_keymap avermedia_cardbus_map = {
75 .map = { 75 .map = {
76 .scan = avermedia_cardbus, 76 .scan = avermedia_cardbus,
77 .size = ARRAY_SIZE(avermedia_cardbus), 77 .size = ARRAY_SIZE(avermedia_cardbus),
78 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 78 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
79 .name = RC_MAP_AVERMEDIA_CARDBUS, 79 .name = RC_MAP_AVERMEDIA_CARDBUS,
80 } 80 }
81}; 81};
diff --git a/drivers/media/rc/keymaps/rc-avermedia-dvbt.c b/drivers/media/rc/keymaps/rc-avermedia-dvbt.c
index 39dde6222875..e45b67ffcf3f 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-dvbt.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-dvbt.c
@@ -56,7 +56,7 @@ static struct rc_keymap avermedia_dvbt_map = {
56 .map = { 56 .map = {
57 .scan = avermedia_dvbt, 57 .scan = avermedia_dvbt,
58 .size = ARRAY_SIZE(avermedia_dvbt), 58 .size = ARRAY_SIZE(avermedia_dvbt),
59 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 59 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
60 .name = RC_MAP_AVERMEDIA_DVBT, 60 .name = RC_MAP_AVERMEDIA_DVBT,
61 } 61 }
62}; 62};
diff --git a/drivers/media/rc/keymaps/rc-avermedia-m135a.c b/drivers/media/rc/keymaps/rc-avermedia-m135a.c
index e4471fb2ad1e..d5622c507d5f 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-m135a.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-m135a.c
@@ -125,7 +125,7 @@ static struct rc_keymap avermedia_m135a_map = {
125 .map = { 125 .map = {
126 .scan = avermedia_m135a, 126 .scan = avermedia_m135a,
127 .size = ARRAY_SIZE(avermedia_m135a), 127 .size = ARRAY_SIZE(avermedia_m135a),
128 .ir_type = IR_TYPE_NEC, 128 .rc_type = RC_TYPE_NEC,
129 .name = RC_MAP_AVERMEDIA_M135A, 129 .name = RC_MAP_AVERMEDIA_M135A,
130 } 130 }
131}; 131};
diff --git a/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c b/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
index cf8d45717cb3..b0e10bec82b2 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
@@ -73,7 +73,7 @@ static struct rc_keymap avermedia_m733a_rm_k6_map = {
73 .map = { 73 .map = {
74 .scan = avermedia_m733a_rm_k6, 74 .scan = avermedia_m733a_rm_k6,
75 .size = ARRAY_SIZE(avermedia_m733a_rm_k6), 75 .size = ARRAY_SIZE(avermedia_m733a_rm_k6),
76 .ir_type = IR_TYPE_NEC, 76 .rc_type = RC_TYPE_NEC,
77 .name = RC_MAP_AVERMEDIA_M733A_RM_K6, 77 .name = RC_MAP_AVERMEDIA_M733A_RM_K6,
78 } 78 }
79}; 79};
diff --git a/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c b/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
index 9ee60906c861..334846654a55 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
@@ -57,7 +57,7 @@ static struct rc_keymap avermedia_rm_ks_map = {
57 .map = { 57 .map = {
58 .scan = avermedia_rm_ks, 58 .scan = avermedia_rm_ks,
59 .size = ARRAY_SIZE(avermedia_rm_ks), 59 .size = ARRAY_SIZE(avermedia_rm_ks),
60 .ir_type = IR_TYPE_NEC, 60 .rc_type = RC_TYPE_NEC,
61 .name = RC_MAP_AVERMEDIA_RM_KS, 61 .name = RC_MAP_AVERMEDIA_RM_KS,
62 } 62 }
63}; 63};
diff --git a/drivers/media/rc/keymaps/rc-avermedia.c b/drivers/media/rc/keymaps/rc-avermedia.c
index 21effd5bfb0d..cfde54e15d5c 100644
--- a/drivers/media/rc/keymaps/rc-avermedia.c
+++ b/drivers/media/rc/keymaps/rc-avermedia.c
@@ -64,7 +64,7 @@ static struct rc_keymap avermedia_map = {
64 .map = { 64 .map = {
65 .scan = avermedia, 65 .scan = avermedia,
66 .size = ARRAY_SIZE(avermedia), 66 .size = ARRAY_SIZE(avermedia),
67 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 67 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
68 .name = RC_MAP_AVERMEDIA, 68 .name = RC_MAP_AVERMEDIA,
69 } 69 }
70}; 70};
diff --git a/drivers/media/rc/keymaps/rc-avertv-303.c b/drivers/media/rc/keymaps/rc-avertv-303.c
index 971c59d6f9d6..ae586632b48e 100644
--- a/drivers/media/rc/keymaps/rc-avertv-303.c
+++ b/drivers/media/rc/keymaps/rc-avertv-303.c
@@ -63,7 +63,7 @@ static struct rc_keymap avertv_303_map = {
63 .map = { 63 .map = {
64 .scan = avertv_303, 64 .scan = avertv_303,
65 .size = ARRAY_SIZE(avertv_303), 65 .size = ARRAY_SIZE(avertv_303),
66 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 66 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
67 .name = RC_MAP_AVERTV_303, 67 .name = RC_MAP_AVERTV_303,
68 } 68 }
69}; 69};
diff --git a/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c b/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
index e0876147d471..579fafedd35a 100644
--- a/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
+++ b/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
@@ -80,7 +80,7 @@ static struct rc_keymap azurewave_ad_tu700_map = {
80 .map = { 80 .map = {
81 .scan = azurewave_ad_tu700, 81 .scan = azurewave_ad_tu700,
82 .size = ARRAY_SIZE(azurewave_ad_tu700), 82 .size = ARRAY_SIZE(azurewave_ad_tu700),
83 .ir_type = IR_TYPE_NEC, 83 .rc_type = RC_TYPE_NEC,
84 .name = RC_MAP_AZUREWAVE_AD_TU700, 84 .name = RC_MAP_AZUREWAVE_AD_TU700,
85 } 85 }
86}; 86};
diff --git a/drivers/media/rc/keymaps/rc-behold-columbus.c b/drivers/media/rc/keymaps/rc-behold-columbus.c
index 9f56c98fef5b..6abb712c9e04 100644
--- a/drivers/media/rc/keymaps/rc-behold-columbus.c
+++ b/drivers/media/rc/keymaps/rc-behold-columbus.c
@@ -86,7 +86,7 @@ static struct rc_keymap behold_columbus_map = {
86 .map = { 86 .map = {
87 .scan = behold_columbus, 87 .scan = behold_columbus,
88 .size = ARRAY_SIZE(behold_columbus), 88 .size = ARRAY_SIZE(behold_columbus),
89 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 89 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
90 .name = RC_MAP_BEHOLD_COLUMBUS, 90 .name = RC_MAP_BEHOLD_COLUMBUS,
91 } 91 }
92}; 92};
diff --git a/drivers/media/rc/keymaps/rc-behold.c b/drivers/media/rc/keymaps/rc-behold.c
index abc140b2098b..5694185a869d 100644
--- a/drivers/media/rc/keymaps/rc-behold.c
+++ b/drivers/media/rc/keymaps/rc-behold.c
@@ -119,7 +119,7 @@ static struct rc_keymap behold_map = {
119 .map = { 119 .map = {
120 .scan = behold, 120 .scan = behold,
121 .size = ARRAY_SIZE(behold), 121 .size = ARRAY_SIZE(behold),
122 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 122 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
123 .name = RC_MAP_BEHOLD, 123 .name = RC_MAP_BEHOLD,
124 } 124 }
125}; 125};
diff --git a/drivers/media/rc/keymaps/rc-budget-ci-old.c b/drivers/media/rc/keymaps/rc-budget-ci-old.c
index 64c2ac913338..99f73232c714 100644
--- a/drivers/media/rc/keymaps/rc-budget-ci-old.c
+++ b/drivers/media/rc/keymaps/rc-budget-ci-old.c
@@ -70,7 +70,7 @@ static struct rc_keymap budget_ci_old_map = {
70 .map = { 70 .map = {
71 .scan = budget_ci_old, 71 .scan = budget_ci_old,
72 .size = ARRAY_SIZE(budget_ci_old), 72 .size = ARRAY_SIZE(budget_ci_old),
73 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 73 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
74 .name = RC_MAP_BUDGET_CI_OLD, 74 .name = RC_MAP_BUDGET_CI_OLD,
75 } 75 }
76}; 76};
diff --git a/drivers/media/rc/keymaps/rc-cinergy-1400.c b/drivers/media/rc/keymaps/rc-cinergy-1400.c
index 074f2c2c2c61..b504ddd1a922 100644
--- a/drivers/media/rc/keymaps/rc-cinergy-1400.c
+++ b/drivers/media/rc/keymaps/rc-cinergy-1400.c
@@ -62,7 +62,7 @@ static struct rc_keymap cinergy_1400_map = {
62 .map = { 62 .map = {
63 .scan = cinergy_1400, 63 .scan = cinergy_1400,
64 .size = ARRAY_SIZE(cinergy_1400), 64 .size = ARRAY_SIZE(cinergy_1400),
65 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 65 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
66 .name = RC_MAP_CINERGY_1400, 66 .name = RC_MAP_CINERGY_1400,
67 } 67 }
68}; 68};
diff --git a/drivers/media/rc/keymaps/rc-cinergy.c b/drivers/media/rc/keymaps/rc-cinergy.c
index cf84c3dba742..8bf02f154339 100644
--- a/drivers/media/rc/keymaps/rc-cinergy.c
+++ b/drivers/media/rc/keymaps/rc-cinergy.c
@@ -56,7 +56,7 @@ static struct rc_keymap cinergy_map = {
56 .map = { 56 .map = {
57 .scan = cinergy, 57 .scan = cinergy,
58 .size = ARRAY_SIZE(cinergy), 58 .size = ARRAY_SIZE(cinergy),
59 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 59 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
60 .name = RC_MAP_CINERGY, 60 .name = RC_MAP_CINERGY,
61 } 61 }
62}; 62};
diff --git a/drivers/media/rc/keymaps/rc-dib0700-nec.c b/drivers/media/rc/keymaps/rc-dib0700-nec.c
index ae1832038fbe..47d5476d50e8 100644
--- a/drivers/media/rc/keymaps/rc-dib0700-nec.c
+++ b/drivers/media/rc/keymaps/rc-dib0700-nec.c
@@ -102,7 +102,7 @@ static struct rc_keymap dib0700_nec_map = {
102 .map = { 102 .map = {
103 .scan = dib0700_nec_table, 103 .scan = dib0700_nec_table,
104 .size = ARRAY_SIZE(dib0700_nec_table), 104 .size = ARRAY_SIZE(dib0700_nec_table),
105 .ir_type = IR_TYPE_NEC, 105 .rc_type = RC_TYPE_NEC,
106 .name = RC_MAP_DIB0700_NEC_TABLE, 106 .name = RC_MAP_DIB0700_NEC_TABLE,
107 } 107 }
108}; 108};
diff --git a/drivers/media/rc/keymaps/rc-dib0700-rc5.c b/drivers/media/rc/keymaps/rc-dib0700-rc5.c
index 4a4797cfd77d..1d09921f076f 100644
--- a/drivers/media/rc/keymaps/rc-dib0700-rc5.c
+++ b/drivers/media/rc/keymaps/rc-dib0700-rc5.c
@@ -213,7 +213,7 @@ static struct rc_keymap dib0700_rc5_map = {
213 .map = { 213 .map = {
214 .scan = dib0700_rc5_table, 214 .scan = dib0700_rc5_table,
215 .size = ARRAY_SIZE(dib0700_rc5_table), 215 .size = ARRAY_SIZE(dib0700_rc5_table),
216 .ir_type = IR_TYPE_RC5, 216 .rc_type = RC_TYPE_RC5,
217 .name = RC_MAP_DIB0700_RC5_TABLE, 217 .name = RC_MAP_DIB0700_RC5_TABLE,
218 } 218 }
219}; 219};
diff --git a/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c b/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
index 63e469e2dd21..8ae726b568ed 100644
--- a/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
+++ b/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
@@ -76,7 +76,7 @@ static struct rc_keymap digitalnow_tinytwin_map = {
76 .map = { 76 .map = {
77 .scan = digitalnow_tinytwin, 77 .scan = digitalnow_tinytwin,
78 .size = ARRAY_SIZE(digitalnow_tinytwin), 78 .size = ARRAY_SIZE(digitalnow_tinytwin),
79 .ir_type = IR_TYPE_NEC, 79 .rc_type = RC_TYPE_NEC,
80 .name = RC_MAP_DIGITALNOW_TINYTWIN, 80 .name = RC_MAP_DIGITALNOW_TINYTWIN,
81 } 81 }
82}; 82};
diff --git a/drivers/media/rc/keymaps/rc-digittrade.c b/drivers/media/rc/keymaps/rc-digittrade.c
index 5dece78e19c5..206469fb028e 100644
--- a/drivers/media/rc/keymaps/rc-digittrade.c
+++ b/drivers/media/rc/keymaps/rc-digittrade.c
@@ -60,7 +60,7 @@ static struct rc_keymap digittrade_map = {
60 .map = { 60 .map = {
61 .scan = digittrade, 61 .scan = digittrade,
62 .size = ARRAY_SIZE(digittrade), 62 .size = ARRAY_SIZE(digittrade),
63 .ir_type = IR_TYPE_NEC, 63 .rc_type = RC_TYPE_NEC,
64 .name = RC_MAP_DIGITTRADE, 64 .name = RC_MAP_DIGITTRADE,
65 } 65 }
66}; 66};
diff --git a/drivers/media/rc/keymaps/rc-dm1105-nec.c b/drivers/media/rc/keymaps/rc-dm1105-nec.c
index 90684d0efea3..ba6fb0be9d3c 100644
--- a/drivers/media/rc/keymaps/rc-dm1105-nec.c
+++ b/drivers/media/rc/keymaps/rc-dm1105-nec.c
@@ -54,7 +54,7 @@ static struct rc_keymap dm1105_nec_map = {
54 .map = { 54 .map = {
55 .scan = dm1105_nec, 55 .scan = dm1105_nec,
56 .size = ARRAY_SIZE(dm1105_nec), 56 .size = ARRAY_SIZE(dm1105_nec),
57 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 57 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
58 .name = RC_MAP_DM1105_NEC, 58 .name = RC_MAP_DM1105_NEC,
59 } 59 }
60}; 60};
diff --git a/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c b/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
index 8a4027af964a..b703937f160b 100644
--- a/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
+++ b/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
@@ -56,7 +56,7 @@ static struct rc_keymap dntv_live_dvb_t_map = {
56 .map = { 56 .map = {
57 .scan = dntv_live_dvb_t, 57 .scan = dntv_live_dvb_t,
58 .size = ARRAY_SIZE(dntv_live_dvb_t), 58 .size = ARRAY_SIZE(dntv_live_dvb_t),
59 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 59 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
60 .name = RC_MAP_DNTV_LIVE_DVB_T, 60 .name = RC_MAP_DNTV_LIVE_DVB_T,
61 } 61 }
62}; 62};
diff --git a/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c b/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
index 6f4d60764d59..b0126b2fceab 100644
--- a/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
+++ b/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
@@ -75,7 +75,7 @@ static struct rc_keymap dntv_live_dvbt_pro_map = {
75 .map = { 75 .map = {
76 .scan = dntv_live_dvbt_pro, 76 .scan = dntv_live_dvbt_pro,
77 .size = ARRAY_SIZE(dntv_live_dvbt_pro), 77 .size = ARRAY_SIZE(dntv_live_dvbt_pro),
78 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 78 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
79 .name = RC_MAP_DNTV_LIVE_DVBT_PRO, 79 .name = RC_MAP_DNTV_LIVE_DVBT_PRO,
80 } 80 }
81}; 81};
diff --git a/drivers/media/rc/keymaps/rc-em-terratec.c b/drivers/media/rc/keymaps/rc-em-terratec.c
index 3130c9c29e6b..57bcd556821d 100644
--- a/drivers/media/rc/keymaps/rc-em-terratec.c
+++ b/drivers/media/rc/keymaps/rc-em-terratec.c
@@ -47,7 +47,7 @@ static struct rc_keymap em_terratec_map = {
47 .map = { 47 .map = {
48 .scan = em_terratec, 48 .scan = em_terratec,
49 .size = ARRAY_SIZE(em_terratec), 49 .size = ARRAY_SIZE(em_terratec),
50 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 50 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
51 .name = RC_MAP_EM_TERRATEC, 51 .name = RC_MAP_EM_TERRATEC,
52 } 52 }
53}; 53};
diff --git a/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c b/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
index 4b816967877e..97e01f4cb76a 100644
--- a/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
+++ b/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
@@ -59,7 +59,7 @@ static struct rc_keymap encore_enltv_fm53_map = {
59 .map = { 59 .map = {
60 .scan = encore_enltv_fm53, 60 .scan = encore_enltv_fm53,
61 .size = ARRAY_SIZE(encore_enltv_fm53), 61 .size = ARRAY_SIZE(encore_enltv_fm53),
62 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 62 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_ENCORE_ENLTV_FM53, 63 .name = RC_MAP_ENCORE_ENLTV_FM53,
64 } 64 }
65}; 65};
diff --git a/drivers/media/rc/keymaps/rc-encore-enltv.c b/drivers/media/rc/keymaps/rc-encore-enltv.c
index 9fabffd28cc9..d3030cf74839 100644
--- a/drivers/media/rc/keymaps/rc-encore-enltv.c
+++ b/drivers/media/rc/keymaps/rc-encore-enltv.c
@@ -90,7 +90,7 @@ static struct rc_keymap encore_enltv_map = {
90 .map = { 90 .map = {
91 .scan = encore_enltv, 91 .scan = encore_enltv,
92 .size = ARRAY_SIZE(encore_enltv), 92 .size = ARRAY_SIZE(encore_enltv),
93 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 93 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
94 .name = RC_MAP_ENCORE_ENLTV, 94 .name = RC_MAP_ENCORE_ENLTV,
95 } 95 }
96}; 96};
diff --git a/drivers/media/rc/keymaps/rc-encore-enltv2.c b/drivers/media/rc/keymaps/rc-encore-enltv2.c
index efefd5166618..1871b32efa98 100644
--- a/drivers/media/rc/keymaps/rc-encore-enltv2.c
+++ b/drivers/media/rc/keymaps/rc-encore-enltv2.c
@@ -68,7 +68,7 @@ static struct rc_keymap encore_enltv2_map = {
68 .map = { 68 .map = {
69 .scan = encore_enltv2, 69 .scan = encore_enltv2,
70 .size = ARRAY_SIZE(encore_enltv2), 70 .size = ARRAY_SIZE(encore_enltv2),
71 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 71 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
72 .name = RC_MAP_ENCORE_ENLTV2, 72 .name = RC_MAP_ENCORE_ENLTV2,
73 } 73 }
74}; 74};
diff --git a/drivers/media/rc/keymaps/rc-evga-indtube.c b/drivers/media/rc/keymaps/rc-evga-indtube.c
index 3f3fb13813b3..192d7f8287f4 100644
--- a/drivers/media/rc/keymaps/rc-evga-indtube.c
+++ b/drivers/media/rc/keymaps/rc-evga-indtube.c
@@ -39,7 +39,7 @@ static struct rc_keymap evga_indtube_map = {
39 .map = { 39 .map = {
40 .scan = evga_indtube, 40 .scan = evga_indtube,
41 .size = ARRAY_SIZE(evga_indtube), 41 .size = ARRAY_SIZE(evga_indtube),
42 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 42 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
43 .name = RC_MAP_EVGA_INDTUBE, 43 .name = RC_MAP_EVGA_INDTUBE,
44 } 44 }
45}; 45};
diff --git a/drivers/media/rc/keymaps/rc-eztv.c b/drivers/media/rc/keymaps/rc-eztv.c
index 660907a78db9..fe3ab5e31a7f 100644
--- a/drivers/media/rc/keymaps/rc-eztv.c
+++ b/drivers/media/rc/keymaps/rc-eztv.c
@@ -74,7 +74,7 @@ static struct rc_keymap eztv_map = {
74 .map = { 74 .map = {
75 .scan = eztv, 75 .scan = eztv,
76 .size = ARRAY_SIZE(eztv), 76 .size = ARRAY_SIZE(eztv),
77 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 77 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
78 .name = RC_MAP_EZTV, 78 .name = RC_MAP_EZTV,
79 } 79 }
80}; 80};
diff --git a/drivers/media/rc/keymaps/rc-flydvb.c b/drivers/media/rc/keymaps/rc-flydvb.c
index a173c81035f4..f48249e070f5 100644
--- a/drivers/media/rc/keymaps/rc-flydvb.c
+++ b/drivers/media/rc/keymaps/rc-flydvb.c
@@ -55,7 +55,7 @@ static struct rc_keymap flydvb_map = {
55 .map = { 55 .map = {
56 .scan = flydvb, 56 .scan = flydvb,
57 .size = ARRAY_SIZE(flydvb), 57 .size = ARRAY_SIZE(flydvb),
58 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 58 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
59 .name = RC_MAP_FLYDVB, 59 .name = RC_MAP_FLYDVB,
60 } 60 }
61}; 61};
diff --git a/drivers/media/rc/keymaps/rc-flyvideo.c b/drivers/media/rc/keymaps/rc-flyvideo.c
index 9c73043cbdba..59713fb46820 100644
--- a/drivers/media/rc/keymaps/rc-flyvideo.c
+++ b/drivers/media/rc/keymaps/rc-flyvideo.c
@@ -48,7 +48,7 @@ static struct rc_keymap flyvideo_map = {
48 .map = { 48 .map = {
49 .scan = flyvideo, 49 .scan = flyvideo,
50 .size = ARRAY_SIZE(flyvideo), 50 .size = ARRAY_SIZE(flyvideo),
51 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 51 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
52 .name = RC_MAP_FLYVIDEO, 52 .name = RC_MAP_FLYVIDEO,
53 } 53 }
54}; 54};
diff --git a/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c b/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
index cdb10389b10e..e69458d8eb1b 100644
--- a/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
+++ b/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
@@ -76,7 +76,7 @@ static struct rc_keymap fusionhdtv_mce_map = {
76 .map = { 76 .map = {
77 .scan = fusionhdtv_mce, 77 .scan = fusionhdtv_mce,
78 .size = ARRAY_SIZE(fusionhdtv_mce), 78 .size = ARRAY_SIZE(fusionhdtv_mce),
79 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 79 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
80 .name = RC_MAP_FUSIONHDTV_MCE, 80 .name = RC_MAP_FUSIONHDTV_MCE,
81 } 81 }
82}; 82};
diff --git a/drivers/media/rc/keymaps/rc-gadmei-rm008z.c b/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
index c16c0d1263ac..13587b8d6a4a 100644
--- a/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
+++ b/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
@@ -59,7 +59,7 @@ static struct rc_keymap gadmei_rm008z_map = {
59 .map = { 59 .map = {
60 .scan = gadmei_rm008z, 60 .scan = gadmei_rm008z,
61 .size = ARRAY_SIZE(gadmei_rm008z), 61 .size = ARRAY_SIZE(gadmei_rm008z),
62 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 62 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_GADMEI_RM008Z, 63 .name = RC_MAP_GADMEI_RM008Z,
64 } 64 }
65}; 65};
diff --git a/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c b/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
index 89f8e384e52a..2304bf677b3d 100644
--- a/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
+++ b/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
@@ -62,7 +62,7 @@ static struct rc_keymap genius_tvgo_a11mce_map = {
62 .map = { 62 .map = {
63 .scan = genius_tvgo_a11mce, 63 .scan = genius_tvgo_a11mce,
64 .size = ARRAY_SIZE(genius_tvgo_a11mce), 64 .size = ARRAY_SIZE(genius_tvgo_a11mce),
65 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 65 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
66 .name = RC_MAP_GENIUS_TVGO_A11MCE, 66 .name = RC_MAP_GENIUS_TVGO_A11MCE,
67 } 67 }
68}; 68};
diff --git a/drivers/media/rc/keymaps/rc-gotview7135.c b/drivers/media/rc/keymaps/rc-gotview7135.c
index 52f025bb35f6..b5be7bfbb7f0 100644
--- a/drivers/media/rc/keymaps/rc-gotview7135.c
+++ b/drivers/media/rc/keymaps/rc-gotview7135.c
@@ -57,7 +57,7 @@ static struct rc_keymap gotview7135_map = {
57 .map = { 57 .map = {
58 .scan = gotview7135, 58 .scan = gotview7135,
59 .size = ARRAY_SIZE(gotview7135), 59 .size = ARRAY_SIZE(gotview7135),
60 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 60 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
61 .name = RC_MAP_GOTVIEW7135, 61 .name = RC_MAP_GOTVIEW7135,
62 } 62 }
63}; 63};
diff --git a/drivers/media/rc/keymaps/rc-hauppauge-new.c b/drivers/media/rc/keymaps/rc-hauppauge-new.c
index c6f8cd7c5186..c60f845dd930 100644
--- a/drivers/media/rc/keymaps/rc-hauppauge-new.c
+++ b/drivers/media/rc/keymaps/rc-hauppauge-new.c
@@ -78,7 +78,7 @@ static struct rc_keymap hauppauge_new_map = {
78 .map = { 78 .map = {
79 .scan = hauppauge_new, 79 .scan = hauppauge_new,
80 .size = ARRAY_SIZE(hauppauge_new), 80 .size = ARRAY_SIZE(hauppauge_new),
81 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 81 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
82 .name = RC_MAP_HAUPPAUGE_NEW, 82 .name = RC_MAP_HAUPPAUGE_NEW,
83 } 83 }
84}; 84};
diff --git a/drivers/media/rc/keymaps/rc-imon-mce.c b/drivers/media/rc/keymaps/rc-imon-mce.c
index e49f350e3a0d..4ce902f87701 100644
--- a/drivers/media/rc/keymaps/rc-imon-mce.c
+++ b/drivers/media/rc/keymaps/rc-imon-mce.c
@@ -120,7 +120,7 @@ static struct rc_keymap imon_mce_map = {
120 .scan = imon_mce, 120 .scan = imon_mce,
121 .size = ARRAY_SIZE(imon_mce), 121 .size = ARRAY_SIZE(imon_mce),
122 /* its RC6, but w/a hardware decoder */ 122 /* its RC6, but w/a hardware decoder */
123 .ir_type = IR_TYPE_RC6, 123 .rc_type = RC_TYPE_RC6,
124 .name = RC_MAP_IMON_MCE, 124 .name = RC_MAP_IMON_MCE,
125 } 125 }
126}; 126};
diff --git a/drivers/media/rc/keymaps/rc-imon-pad.c b/drivers/media/rc/keymaps/rc-imon-pad.c
index bc4db72f02e6..6d4633af4393 100644
--- a/drivers/media/rc/keymaps/rc-imon-pad.c
+++ b/drivers/media/rc/keymaps/rc-imon-pad.c
@@ -134,7 +134,7 @@ static struct rc_keymap imon_pad_map = {
134 .scan = imon_pad, 134 .scan = imon_pad,
135 .size = ARRAY_SIZE(imon_pad), 135 .size = ARRAY_SIZE(imon_pad),
136 /* actual protocol details unknown, hardware decoder */ 136 /* actual protocol details unknown, hardware decoder */
137 .ir_type = IR_TYPE_OTHER, 137 .rc_type = RC_TYPE_OTHER,
138 .name = RC_MAP_IMON_PAD, 138 .name = RC_MAP_IMON_PAD,
139 } 139 }
140}; 140};
diff --git a/drivers/media/rc/keymaps/rc-iodata-bctv7e.c b/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
index ef6600259fc0..c5208f10e7c0 100644
--- a/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
+++ b/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
@@ -66,7 +66,7 @@ static struct rc_keymap iodata_bctv7e_map = {
66 .map = { 66 .map = {
67 .scan = iodata_bctv7e, 67 .scan = iodata_bctv7e,
68 .size = ARRAY_SIZE(iodata_bctv7e), 68 .size = ARRAY_SIZE(iodata_bctv7e),
69 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 69 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
70 .name = RC_MAP_IODATA_BCTV7E, 70 .name = RC_MAP_IODATA_BCTV7E,
71 } 71 }
72}; 72};
diff --git a/drivers/media/rc/keymaps/rc-kaiomy.c b/drivers/media/rc/keymaps/rc-kaiomy.c
index 4c7883ba0f15..1b6da7ffb8f1 100644
--- a/drivers/media/rc/keymaps/rc-kaiomy.c
+++ b/drivers/media/rc/keymaps/rc-kaiomy.c
@@ -65,7 +65,7 @@ static struct rc_keymap kaiomy_map = {
65 .map = { 65 .map = {
66 .scan = kaiomy, 66 .scan = kaiomy,
67 .size = ARRAY_SIZE(kaiomy), 67 .size = ARRAY_SIZE(kaiomy),
68 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 68 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
69 .name = RC_MAP_KAIOMY, 69 .name = RC_MAP_KAIOMY,
70 } 70 }
71}; 71};
diff --git a/drivers/media/rc/keymaps/rc-kworld-315u.c b/drivers/media/rc/keymaps/rc-kworld-315u.c
index 618c817374e6..3418e075938c 100644
--- a/drivers/media/rc/keymaps/rc-kworld-315u.c
+++ b/drivers/media/rc/keymaps/rc-kworld-315u.c
@@ -61,7 +61,7 @@ static struct rc_keymap kworld_315u_map = {
61 .map = { 61 .map = {
62 .scan = kworld_315u, 62 .scan = kworld_315u,
63 .size = ARRAY_SIZE(kworld_315u), 63 .size = ARRAY_SIZE(kworld_315u),
64 .ir_type = IR_TYPE_NEC, 64 .rc_type = RC_TYPE_NEC,
65 .name = RC_MAP_KWORLD_315U, 65 .name = RC_MAP_KWORLD_315U,
66 } 66 }
67}; 67};
diff --git a/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c b/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
index 366732f1f7b7..4d681eb7aaf4 100644
--- a/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
+++ b/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
@@ -77,7 +77,7 @@ static struct rc_keymap kworld_plus_tv_analog_map = {
77 .map = { 77 .map = {
78 .scan = kworld_plus_tv_analog, 78 .scan = kworld_plus_tv_analog,
79 .size = ARRAY_SIZE(kworld_plus_tv_analog), 79 .size = ARRAY_SIZE(kworld_plus_tv_analog),
80 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 80 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
81 .name = RC_MAP_KWORLD_PLUS_TV_ANALOG, 81 .name = RC_MAP_KWORLD_PLUS_TV_ANALOG,
82 } 82 }
83}; 83};
diff --git a/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c b/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
index 7521315fd876..ebdd1226bada 100644
--- a/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
+++ b/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
@@ -77,7 +77,7 @@ static struct rc_keymap leadtek_y04g0051_map = {
77 .map = { 77 .map = {
78 .scan = leadtek_y04g0051, 78 .scan = leadtek_y04g0051,
79 .size = ARRAY_SIZE(leadtek_y04g0051), 79 .size = ARRAY_SIZE(leadtek_y04g0051),
80 .ir_type = IR_TYPE_NEC, 80 .rc_type = RC_TYPE_NEC,
81 .name = RC_MAP_LEADTEK_Y04G0051, 81 .name = RC_MAP_LEADTEK_Y04G0051,
82 } 82 }
83}; 83};
diff --git a/drivers/media/rc/keymaps/rc-lirc.c b/drivers/media/rc/keymaps/rc-lirc.c
index 9c8577d6e497..6d8a64170fd9 100644
--- a/drivers/media/rc/keymaps/rc-lirc.c
+++ b/drivers/media/rc/keymaps/rc-lirc.c
@@ -19,7 +19,7 @@ static struct rc_keymap lirc_map = {
19 .map = { 19 .map = {
20 .scan = lirc, 20 .scan = lirc,
21 .size = ARRAY_SIZE(lirc), 21 .size = ARRAY_SIZE(lirc),
22 .ir_type = IR_TYPE_LIRC, 22 .rc_type = RC_TYPE_LIRC,
23 .name = RC_MAP_LIRC, 23 .name = RC_MAP_LIRC,
24 } 24 }
25}; 25};
diff --git a/drivers/media/rc/keymaps/rc-lme2510.c b/drivers/media/rc/keymaps/rc-lme2510.c
index 40dcf0b4e21a..ca7e2acb682a 100644
--- a/drivers/media/rc/keymaps/rc-lme2510.c
+++ b/drivers/media/rc/keymaps/rc-lme2510.c
@@ -46,7 +46,7 @@ static struct rc_keymap lme2510_map = {
46 .map = { 46 .map = {
47 .scan = lme2510_rc, 47 .scan = lme2510_rc,
48 .size = ARRAY_SIZE(lme2510_rc), 48 .size = ARRAY_SIZE(lme2510_rc),
49 .ir_type = IR_TYPE_UNKNOWN, 49 .rc_type = RC_TYPE_UNKNOWN,
50 .name = RC_MAP_LME2510, 50 .name = RC_MAP_LME2510,
51 } 51 }
52}; 52};
diff --git a/drivers/media/rc/keymaps/rc-manli.c b/drivers/media/rc/keymaps/rc-manli.c
index 0f590b3d01c0..056cf52dce60 100644
--- a/drivers/media/rc/keymaps/rc-manli.c
+++ b/drivers/media/rc/keymaps/rc-manli.c
@@ -112,7 +112,7 @@ static struct rc_keymap manli_map = {
112 .map = { 112 .map = {
113 .scan = manli, 113 .scan = manli,
114 .size = ARRAY_SIZE(manli), 114 .size = ARRAY_SIZE(manli),
115 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 115 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
116 .name = RC_MAP_MANLI, 116 .name = RC_MAP_MANLI,
117 } 117 }
118}; 118};
diff --git a/drivers/media/rc/keymaps/rc-msi-digivox-ii.c b/drivers/media/rc/keymaps/rc-msi-digivox-ii.c
index 67237fbf9e4b..3a14d31bec4d 100644
--- a/drivers/media/rc/keymaps/rc-msi-digivox-ii.c
+++ b/drivers/media/rc/keymaps/rc-msi-digivox-ii.c
@@ -45,7 +45,7 @@ static struct rc_keymap msi_digivox_ii_map = {
45 .map = { 45 .map = {
46 .scan = msi_digivox_ii, 46 .scan = msi_digivox_ii,
47 .size = ARRAY_SIZE(msi_digivox_ii), 47 .size = ARRAY_SIZE(msi_digivox_ii),
48 .ir_type = IR_TYPE_NEC, 48 .rc_type = RC_TYPE_NEC,
49 .name = RC_MAP_MSI_DIGIVOX_II, 49 .name = RC_MAP_MSI_DIGIVOX_II,
50 } 50 }
51}; 51};
diff --git a/drivers/media/rc/keymaps/rc-msi-digivox-iii.c b/drivers/media/rc/keymaps/rc-msi-digivox-iii.c
index 882056e52ef9..16c5b0aa8c43 100644
--- a/drivers/media/rc/keymaps/rc-msi-digivox-iii.c
+++ b/drivers/media/rc/keymaps/rc-msi-digivox-iii.c
@@ -63,7 +63,7 @@ static struct rc_keymap msi_digivox_iii_map = {
63 .map = { 63 .map = {
64 .scan = msi_digivox_iii, 64 .scan = msi_digivox_iii,
65 .size = ARRAY_SIZE(msi_digivox_iii), 65 .size = ARRAY_SIZE(msi_digivox_iii),
66 .ir_type = IR_TYPE_NEC, 66 .rc_type = RC_TYPE_NEC,
67 .name = RC_MAP_MSI_DIGIVOX_III, 67 .name = RC_MAP_MSI_DIGIVOX_III,
68 } 68 }
69}; 69};
diff --git a/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c b/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
index eb8e42c18ff9..d4c91020fc07 100644
--- a/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
+++ b/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
@@ -101,7 +101,7 @@ static struct rc_keymap msi_tvanywhere_plus_map = {
101 .map = { 101 .map = {
102 .scan = msi_tvanywhere_plus, 102 .scan = msi_tvanywhere_plus,
103 .size = ARRAY_SIZE(msi_tvanywhere_plus), 103 .size = ARRAY_SIZE(msi_tvanywhere_plus),
104 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 104 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
105 .name = RC_MAP_MSI_TVANYWHERE_PLUS, 105 .name = RC_MAP_MSI_TVANYWHERE_PLUS,
106 } 106 }
107}; 107};
diff --git a/drivers/media/rc/keymaps/rc-msi-tvanywhere.c b/drivers/media/rc/keymaps/rc-msi-tvanywhere.c
index ef411854f067..aec064cb7b15 100644
--- a/drivers/media/rc/keymaps/rc-msi-tvanywhere.c
+++ b/drivers/media/rc/keymaps/rc-msi-tvanywhere.c
@@ -47,7 +47,7 @@ static struct rc_keymap msi_tvanywhere_map = {
47 .map = { 47 .map = {
48 .scan = msi_tvanywhere, 48 .scan = msi_tvanywhere,
49 .size = ARRAY_SIZE(msi_tvanywhere), 49 .size = ARRAY_SIZE(msi_tvanywhere),
50 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 50 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
51 .name = RC_MAP_MSI_TVANYWHERE, 51 .name = RC_MAP_MSI_TVANYWHERE,
52 } 52 }
53}; 53};
diff --git a/drivers/media/rc/keymaps/rc-nebula.c b/drivers/media/rc/keymaps/rc-nebula.c
index ccc50eb402ec..2c44b90d48c9 100644
--- a/drivers/media/rc/keymaps/rc-nebula.c
+++ b/drivers/media/rc/keymaps/rc-nebula.c
@@ -74,7 +74,7 @@ static struct rc_keymap nebula_map = {
74 .map = { 74 .map = {
75 .scan = nebula, 75 .scan = nebula,
76 .size = ARRAY_SIZE(nebula), 76 .size = ARRAY_SIZE(nebula),
77 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 77 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
78 .name = RC_MAP_NEBULA, 78 .name = RC_MAP_NEBULA,
79 } 79 }
80}; 80};
diff --git a/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c b/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
index e1b54d20db60..929084bcaa4d 100644
--- a/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
+++ b/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
@@ -83,7 +83,7 @@ static struct rc_keymap nec_terratec_cinergy_xs_map = {
83 .map = { 83 .map = {
84 .scan = nec_terratec_cinergy_xs, 84 .scan = nec_terratec_cinergy_xs,
85 .size = ARRAY_SIZE(nec_terratec_cinergy_xs), 85 .size = ARRAY_SIZE(nec_terratec_cinergy_xs),
86 .ir_type = IR_TYPE_NEC, 86 .rc_type = RC_TYPE_NEC,
87 .name = RC_MAP_NEC_TERRATEC_CINERGY_XS, 87 .name = RC_MAP_NEC_TERRATEC_CINERGY_XS,
88 } 88 }
89}; 89};
diff --git a/drivers/media/rc/keymaps/rc-norwood.c b/drivers/media/rc/keymaps/rc-norwood.c
index e5849a6b3f05..7fe774628edc 100644
--- a/drivers/media/rc/keymaps/rc-norwood.c
+++ b/drivers/media/rc/keymaps/rc-norwood.c
@@ -63,7 +63,7 @@ static struct rc_keymap norwood_map = {
63 .map = { 63 .map = {
64 .scan = norwood, 64 .scan = norwood,
65 .size = ARRAY_SIZE(norwood), 65 .size = ARRAY_SIZE(norwood),
66 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 66 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
67 .name = RC_MAP_NORWOOD, 67 .name = RC_MAP_NORWOOD,
68 } 68 }
69}; 69};
diff --git a/drivers/media/rc/keymaps/rc-npgtech.c b/drivers/media/rc/keymaps/rc-npgtech.c
index b9ece1e90296..a9cbcde98a30 100644
--- a/drivers/media/rc/keymaps/rc-npgtech.c
+++ b/drivers/media/rc/keymaps/rc-npgtech.c
@@ -58,7 +58,7 @@ static struct rc_keymap npgtech_map = {
58 .map = { 58 .map = {
59 .scan = npgtech, 59 .scan = npgtech,
60 .size = ARRAY_SIZE(npgtech), 60 .size = ARRAY_SIZE(npgtech),
61 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 61 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
62 .name = RC_MAP_NPGTECH, 62 .name = RC_MAP_NPGTECH,
63 } 63 }
64}; 64};
diff --git a/drivers/media/rc/keymaps/rc-pctv-sedna.c b/drivers/media/rc/keymaps/rc-pctv-sedna.c
index 4129bb44a25b..68b33b31f6bf 100644
--- a/drivers/media/rc/keymaps/rc-pctv-sedna.c
+++ b/drivers/media/rc/keymaps/rc-pctv-sedna.c
@@ -58,7 +58,7 @@ static struct rc_keymap pctv_sedna_map = {
58 .map = { 58 .map = {
59 .scan = pctv_sedna, 59 .scan = pctv_sedna,
60 .size = ARRAY_SIZE(pctv_sedna), 60 .size = ARRAY_SIZE(pctv_sedna),
61 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 61 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
62 .name = RC_MAP_PCTV_SEDNA, 62 .name = RC_MAP_PCTV_SEDNA,
63 } 63 }
64}; 64};
diff --git a/drivers/media/rc/keymaps/rc-pinnacle-color.c b/drivers/media/rc/keymaps/rc-pinnacle-color.c
index 326e023ce126..364ccde87a04 100644
--- a/drivers/media/rc/keymaps/rc-pinnacle-color.c
+++ b/drivers/media/rc/keymaps/rc-pinnacle-color.c
@@ -72,7 +72,7 @@ static struct rc_keymap pinnacle_color_map = {
72 .map = { 72 .map = {
73 .scan = pinnacle_color, 73 .scan = pinnacle_color,
74 .size = ARRAY_SIZE(pinnacle_color), 74 .size = ARRAY_SIZE(pinnacle_color),
75 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 75 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
76 .name = RC_MAP_PINNACLE_COLOR, 76 .name = RC_MAP_PINNACLE_COLOR,
77 } 77 }
78}; 78};
diff --git a/drivers/media/rc/keymaps/rc-pinnacle-grey.c b/drivers/media/rc/keymaps/rc-pinnacle-grey.c
index 14cb772515c6..993eff72f233 100644
--- a/drivers/media/rc/keymaps/rc-pinnacle-grey.c
+++ b/drivers/media/rc/keymaps/rc-pinnacle-grey.c
@@ -67,7 +67,7 @@ static struct rc_keymap pinnacle_grey_map = {
67 .map = { 67 .map = {
68 .scan = pinnacle_grey, 68 .scan = pinnacle_grey,
69 .size = ARRAY_SIZE(pinnacle_grey), 69 .size = ARRAY_SIZE(pinnacle_grey),
70 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 70 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
71 .name = RC_MAP_PINNACLE_GREY, 71 .name = RC_MAP_PINNACLE_GREY,
72 } 72 }
73}; 73};
diff --git a/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c b/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
index 835bf4ef8de7..56e6a7e203ec 100644
--- a/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
+++ b/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
@@ -51,7 +51,7 @@ static struct rc_keymap pinnacle_pctv_hd_map = {
51 .map = { 51 .map = {
52 .scan = pinnacle_pctv_hd, 52 .scan = pinnacle_pctv_hd,
53 .size = ARRAY_SIZE(pinnacle_pctv_hd), 53 .size = ARRAY_SIZE(pinnacle_pctv_hd),
54 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 54 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
55 .name = RC_MAP_PINNACLE_PCTV_HD, 55 .name = RC_MAP_PINNACLE_PCTV_HD,
56 } 56 }
57}; 57};
diff --git a/drivers/media/rc/keymaps/rc-pixelview-mk12.c b/drivers/media/rc/keymaps/rc-pixelview-mk12.c
index 5a735d569a8b..84f89ebd8998 100644
--- a/drivers/media/rc/keymaps/rc-pixelview-mk12.c
+++ b/drivers/media/rc/keymaps/rc-pixelview-mk12.c
@@ -61,7 +61,7 @@ static struct rc_keymap pixelview_map = {
61 .map = { 61 .map = {
62 .scan = pixelview_mk12, 62 .scan = pixelview_mk12,
63 .size = ARRAY_SIZE(pixelview_mk12), 63 .size = ARRAY_SIZE(pixelview_mk12),
64 .ir_type = IR_TYPE_NEC, 64 .rc_type = RC_TYPE_NEC,
65 .name = RC_MAP_PIXELVIEW_MK12, 65 .name = RC_MAP_PIXELVIEW_MK12,
66 } 66 }
67}; 67};
diff --git a/drivers/media/rc/keymaps/rc-pixelview-new.c b/drivers/media/rc/keymaps/rc-pixelview-new.c
index 7bbbbf5735e6..703f86bca132 100644
--- a/drivers/media/rc/keymaps/rc-pixelview-new.c
+++ b/drivers/media/rc/keymaps/rc-pixelview-new.c
@@ -61,7 +61,7 @@ static struct rc_keymap pixelview_new_map = {
61 .map = { 61 .map = {
62 .scan = pixelview_new, 62 .scan = pixelview_new,
63 .size = ARRAY_SIZE(pixelview_new), 63 .size = ARRAY_SIZE(pixelview_new),
64 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 64 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
65 .name = RC_MAP_PIXELVIEW_NEW, 65 .name = RC_MAP_PIXELVIEW_NEW,
66 } 66 }
67}; 67};
diff --git a/drivers/media/rc/keymaps/rc-pixelview.c b/drivers/media/rc/keymaps/rc-pixelview.c
index 82ff12e182a0..5a50aa7e411d 100644
--- a/drivers/media/rc/keymaps/rc-pixelview.c
+++ b/drivers/media/rc/keymaps/rc-pixelview.c
@@ -60,7 +60,7 @@ static struct rc_keymap pixelview_map = {
60 .map = { 60 .map = {
61 .scan = pixelview, 61 .scan = pixelview,
62 .size = ARRAY_SIZE(pixelview), 62 .size = ARRAY_SIZE(pixelview),
63 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 63 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
64 .name = RC_MAP_PIXELVIEW, 64 .name = RC_MAP_PIXELVIEW,
65 } 65 }
66}; 66};
diff --git a/drivers/media/rc/keymaps/rc-powercolor-real-angel.c b/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
index 7cef8190a224..4eec4371f7d1 100644
--- a/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
+++ b/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
@@ -59,7 +59,7 @@ static struct rc_keymap powercolor_real_angel_map = {
59 .map = { 59 .map = {
60 .scan = powercolor_real_angel, 60 .scan = powercolor_real_angel,
61 .size = ARRAY_SIZE(powercolor_real_angel), 61 .size = ARRAY_SIZE(powercolor_real_angel),
62 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 62 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_POWERCOLOR_REAL_ANGEL, 63 .name = RC_MAP_POWERCOLOR_REAL_ANGEL,
64 } 64 }
65}; 65};
diff --git a/drivers/media/rc/keymaps/rc-proteus-2309.c b/drivers/media/rc/keymaps/rc-proteus-2309.c
index 22e92d39dee5..802c58a0ae26 100644
--- a/drivers/media/rc/keymaps/rc-proteus-2309.c
+++ b/drivers/media/rc/keymaps/rc-proteus-2309.c
@@ -47,7 +47,7 @@ static struct rc_keymap proteus_2309_map = {
47 .map = { 47 .map = {
48 .scan = proteus_2309, 48 .scan = proteus_2309,
49 .size = ARRAY_SIZE(proteus_2309), 49 .size = ARRAY_SIZE(proteus_2309),
50 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 50 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
51 .name = RC_MAP_PROTEUS_2309, 51 .name = RC_MAP_PROTEUS_2309,
52 } 52 }
53}; 53};
diff --git a/drivers/media/rc/keymaps/rc-purpletv.c b/drivers/media/rc/keymaps/rc-purpletv.c
index 4e20fc2269f7..f3e9709b7c1f 100644
--- a/drivers/media/rc/keymaps/rc-purpletv.c
+++ b/drivers/media/rc/keymaps/rc-purpletv.c
@@ -59,7 +59,7 @@ static struct rc_keymap purpletv_map = {
59 .map = { 59 .map = {
60 .scan = purpletv, 60 .scan = purpletv,
61 .size = ARRAY_SIZE(purpletv), 61 .size = ARRAY_SIZE(purpletv),
62 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 62 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_PURPLETV, 63 .name = RC_MAP_PURPLETV,
64 } 64 }
65}; 65};
diff --git a/drivers/media/rc/keymaps/rc-pv951.c b/drivers/media/rc/keymaps/rc-pv951.c
index 36679e706cf3..e301ff033af1 100644
--- a/drivers/media/rc/keymaps/rc-pv951.c
+++ b/drivers/media/rc/keymaps/rc-pv951.c
@@ -56,7 +56,7 @@ static struct rc_keymap pv951_map = {
56 .map = { 56 .map = {
57 .scan = pv951, 57 .scan = pv951,
58 .size = ARRAY_SIZE(pv951), 58 .size = ARRAY_SIZE(pv951),
59 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 59 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
60 .name = RC_MAP_PV951, 60 .name = RC_MAP_PV951,
61 } 61 }
62}; 62};
diff --git a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
index cc6b8f548747..91bcab8bd266 100644
--- a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
+++ b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
@@ -81,7 +81,7 @@ static struct rc_keymap rc5_hauppauge_new_map = {
81 .map = { 81 .map = {
82 .scan = rc5_hauppauge_new, 82 .scan = rc5_hauppauge_new,
83 .size = ARRAY_SIZE(rc5_hauppauge_new), 83 .size = ARRAY_SIZE(rc5_hauppauge_new),
84 .ir_type = IR_TYPE_RC5, 84 .rc_type = RC_TYPE_RC5,
85 .name = RC_MAP_RC5_HAUPPAUGE_NEW, 85 .name = RC_MAP_RC5_HAUPPAUGE_NEW,
86 } 86 }
87}; 87};
diff --git a/drivers/media/rc/keymaps/rc-rc5-tv.c b/drivers/media/rc/keymaps/rc-rc5-tv.c
index 73cce2f8ddfb..cda2a2fae04d 100644
--- a/drivers/media/rc/keymaps/rc-rc5-tv.c
+++ b/drivers/media/rc/keymaps/rc-rc5-tv.c
@@ -59,7 +59,7 @@ static struct rc_keymap rc5_tv_map = {
59 .map = { 59 .map = {
60 .scan = rc5_tv, 60 .scan = rc5_tv,
61 .size = ARRAY_SIZE(rc5_tv), 61 .size = ARRAY_SIZE(rc5_tv),
62 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 62 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_RC5_TV, 63 .name = RC_MAP_RC5_TV,
64 } 64 }
65}; 65};
diff --git a/drivers/media/rc/keymaps/rc-rc6-mce.c b/drivers/media/rc/keymaps/rc-rc6-mce.c
index 6da955dfef48..f926477a0562 100644
--- a/drivers/media/rc/keymaps/rc-rc6-mce.c
+++ b/drivers/media/rc/keymaps/rc-rc6-mce.c
@@ -91,7 +91,7 @@ static struct rc_keymap rc6_mce_map = {
91 .map = { 91 .map = {
92 .scan = rc6_mce, 92 .scan = rc6_mce,
93 .size = ARRAY_SIZE(rc6_mce), 93 .size = ARRAY_SIZE(rc6_mce),
94 .ir_type = IR_TYPE_RC6, 94 .rc_type = RC_TYPE_RC6,
95 .name = RC_MAP_RC6_MCE, 95 .name = RC_MAP_RC6_MCE,
96 } 96 }
97}; 97};
diff --git a/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c b/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
index ab1a6d2baf72..678142659183 100644
--- a/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
+++ b/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
@@ -56,7 +56,7 @@ static struct rc_keymap real_audio_220_32_keys_map = {
56 .map = { 56 .map = {
57 .scan = real_audio_220_32_keys, 57 .scan = real_audio_220_32_keys,
58 .size = ARRAY_SIZE(real_audio_220_32_keys), 58 .size = ARRAY_SIZE(real_audio_220_32_keys),
59 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 59 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
60 .name = RC_MAP_REAL_AUDIO_220_32_KEYS, 60 .name = RC_MAP_REAL_AUDIO_220_32_KEYS,
61 } 61 }
62}; 62};
diff --git a/drivers/media/rc/keymaps/rc-streamzap.c b/drivers/media/rc/keymaps/rc-streamzap.c
index df32013a321c..bafe5b8f4192 100644
--- a/drivers/media/rc/keymaps/rc-streamzap.c
+++ b/drivers/media/rc/keymaps/rc-streamzap.c
@@ -60,7 +60,7 @@ static struct rc_keymap streamzap_map = {
60 .map = { 60 .map = {
61 .scan = streamzap, 61 .scan = streamzap,
62 .size = ARRAY_SIZE(streamzap), 62 .size = ARRAY_SIZE(streamzap),
63 .ir_type = IR_TYPE_RC5_SZ, 63 .rc_type = RC_TYPE_RC5_SZ,
64 .name = RC_MAP_STREAMZAP, 64 .name = RC_MAP_STREAMZAP,
65 } 65 }
66}; 66};
diff --git a/drivers/media/rc/keymaps/rc-tbs-nec.c b/drivers/media/rc/keymaps/rc-tbs-nec.c
index 3309631e6f80..4ef4f811d011 100644
--- a/drivers/media/rc/keymaps/rc-tbs-nec.c
+++ b/drivers/media/rc/keymaps/rc-tbs-nec.c
@@ -51,7 +51,7 @@ static struct rc_keymap tbs_nec_map = {
51 .map = { 51 .map = {
52 .scan = tbs_nec, 52 .scan = tbs_nec,
53 .size = ARRAY_SIZE(tbs_nec), 53 .size = ARRAY_SIZE(tbs_nec),
54 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 54 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
55 .name = RC_MAP_TBS_NEC, 55 .name = RC_MAP_TBS_NEC,
56 } 56 }
57}; 57};
diff --git a/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c b/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
index 5326a0b444c1..4064a32569e2 100644
--- a/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
+++ b/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
@@ -70,7 +70,7 @@ static struct rc_keymap terratec_cinergy_xs_map = {
70 .map = { 70 .map = {
71 .scan = terratec_cinergy_xs, 71 .scan = terratec_cinergy_xs,
72 .size = ARRAY_SIZE(terratec_cinergy_xs), 72 .size = ARRAY_SIZE(terratec_cinergy_xs),
73 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 73 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
74 .name = RC_MAP_TERRATEC_CINERGY_XS, 74 .name = RC_MAP_TERRATEC_CINERGY_XS,
75 } 75 }
76}; 76};
diff --git a/drivers/media/rc/keymaps/rc-terratec-slim.c b/drivers/media/rc/keymaps/rc-terratec-slim.c
index 10dee4c1deff..c23caf70036b 100644
--- a/drivers/media/rc/keymaps/rc-terratec-slim.c
+++ b/drivers/media/rc/keymaps/rc-terratec-slim.c
@@ -57,7 +57,7 @@ static struct rc_keymap terratec_slim_map = {
57 .map = { 57 .map = {
58 .scan = terratec_slim, 58 .scan = terratec_slim,
59 .size = ARRAY_SIZE(terratec_slim), 59 .size = ARRAY_SIZE(terratec_slim),
60 .ir_type = IR_TYPE_NEC, 60 .rc_type = RC_TYPE_NEC,
61 .name = RC_MAP_TERRATEC_SLIM, 61 .name = RC_MAP_TERRATEC_SLIM,
62 } 62 }
63}; 63};
diff --git a/drivers/media/rc/keymaps/rc-tevii-nec.c b/drivers/media/rc/keymaps/rc-tevii-nec.c
index e30d411c07bb..eabfb70973b5 100644
--- a/drivers/media/rc/keymaps/rc-tevii-nec.c
+++ b/drivers/media/rc/keymaps/rc-tevii-nec.c
@@ -66,7 +66,7 @@ static struct rc_keymap tevii_nec_map = {
66 .map = { 66 .map = {
67 .scan = tevii_nec, 67 .scan = tevii_nec,
68 .size = ARRAY_SIZE(tevii_nec), 68 .size = ARRAY_SIZE(tevii_nec),
69 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 69 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
70 .name = RC_MAP_TEVII_NEC, 70 .name = RC_MAP_TEVII_NEC,
71 } 71 }
72}; 72};
diff --git a/drivers/media/rc/keymaps/rc-total-media-in-hand.c b/drivers/media/rc/keymaps/rc-total-media-in-hand.c
index fd1985763781..cd39b3dbab06 100644
--- a/drivers/media/rc/keymaps/rc-total-media-in-hand.c
+++ b/drivers/media/rc/keymaps/rc-total-media-in-hand.c
@@ -63,7 +63,7 @@ static struct rc_keymap total_media_in_hand_map = {
63 .map = { 63 .map = {
64 .scan = total_media_in_hand, 64 .scan = total_media_in_hand,
65 .size = ARRAY_SIZE(total_media_in_hand), 65 .size = ARRAY_SIZE(total_media_in_hand),
66 .ir_type = IR_TYPE_NEC, 66 .rc_type = RC_TYPE_NEC,
67 .name = RC_MAP_TOTAL_MEDIA_IN_HAND, 67 .name = RC_MAP_TOTAL_MEDIA_IN_HAND,
68 } 68 }
69}; 69};
diff --git a/drivers/media/rc/keymaps/rc-trekstor.c b/drivers/media/rc/keymaps/rc-trekstor.c
index 91092caca452..31d6c6c23642 100644
--- a/drivers/media/rc/keymaps/rc-trekstor.c
+++ b/drivers/media/rc/keymaps/rc-trekstor.c
@@ -58,7 +58,7 @@ static struct rc_keymap trekstor_map = {
58 .map = { 58 .map = {
59 .scan = trekstor, 59 .scan = trekstor,
60 .size = ARRAY_SIZE(trekstor), 60 .size = ARRAY_SIZE(trekstor),
61 .ir_type = IR_TYPE_NEC, 61 .rc_type = RC_TYPE_NEC,
62 .name = RC_MAP_TREKSTOR, 62 .name = RC_MAP_TREKSTOR,
63 } 63 }
64}; 64};
diff --git a/drivers/media/rc/keymaps/rc-tt-1500.c b/drivers/media/rc/keymaps/rc-tt-1500.c
index bc88de011d5d..45a060850e53 100644
--- a/drivers/media/rc/keymaps/rc-tt-1500.c
+++ b/drivers/media/rc/keymaps/rc-tt-1500.c
@@ -60,7 +60,7 @@ static struct rc_keymap tt_1500_map = {
60 .map = { 60 .map = {
61 .scan = tt_1500, 61 .scan = tt_1500,
62 .size = ARRAY_SIZE(tt_1500), 62 .size = ARRAY_SIZE(tt_1500),
63 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 63 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
64 .name = RC_MAP_TT_1500, 64 .name = RC_MAP_TT_1500,
65 } 65 }
66}; 66};
diff --git a/drivers/media/rc/keymaps/rc-twinhan1027.c b/drivers/media/rc/keymaps/rc-twinhan1027.c
index 0b5d356c2d84..b5def5387ded 100644
--- a/drivers/media/rc/keymaps/rc-twinhan1027.c
+++ b/drivers/media/rc/keymaps/rc-twinhan1027.c
@@ -65,7 +65,7 @@ static struct rc_keymap twinhan_vp1027_map = {
65 .map = { 65 .map = {
66 .scan = twinhan_vp1027, 66 .scan = twinhan_vp1027,
67 .size = ARRAY_SIZE(twinhan_vp1027), 67 .size = ARRAY_SIZE(twinhan_vp1027),
68 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 68 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
69 .name = RC_MAP_TWINHAN_VP1027_DVBS, 69 .name = RC_MAP_TWINHAN_VP1027_DVBS,
70 } 70 }
71}; 71};
diff --git a/drivers/media/rc/keymaps/rc-videomate-s350.c b/drivers/media/rc/keymaps/rc-videomate-s350.c
index 4df7fcd1d2fc..7c422b4670fa 100644
--- a/drivers/media/rc/keymaps/rc-videomate-s350.c
+++ b/drivers/media/rc/keymaps/rc-videomate-s350.c
@@ -63,7 +63,7 @@ static struct rc_keymap videomate_s350_map = {
63 .map = { 63 .map = {
64 .scan = videomate_s350, 64 .scan = videomate_s350,
65 .size = ARRAY_SIZE(videomate_s350), 65 .size = ARRAY_SIZE(videomate_s350),
66 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 66 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
67 .name = RC_MAP_VIDEOMATE_S350, 67 .name = RC_MAP_VIDEOMATE_S350,
68 } 68 }
69}; 69};
diff --git a/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c b/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
index 776b0a638d87..4d31b47dfc30 100644
--- a/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
+++ b/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
@@ -65,7 +65,7 @@ static struct rc_keymap videomate_tv_pvr_map = {
65 .map = { 65 .map = {
66 .scan = videomate_tv_pvr, 66 .scan = videomate_tv_pvr,
67 .size = ARRAY_SIZE(videomate_tv_pvr), 67 .size = ARRAY_SIZE(videomate_tv_pvr),
68 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 68 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
69 .name = RC_MAP_VIDEOMATE_TV_PVR, 69 .name = RC_MAP_VIDEOMATE_TV_PVR,
70 } 70 }
71}; 71};
diff --git a/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c b/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
index 9d2d550aaa90..ade3c14c4c0f 100644
--- a/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
+++ b/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
@@ -60,7 +60,7 @@ static struct rc_keymap winfast_usbii_deluxe_map = {
60 .map = { 60 .map = {
61 .scan = winfast_usbii_deluxe, 61 .scan = winfast_usbii_deluxe,
62 .size = ARRAY_SIZE(winfast_usbii_deluxe), 62 .size = ARRAY_SIZE(winfast_usbii_deluxe),
63 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 63 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
64 .name = RC_MAP_WINFAST_USBII_DELUXE, 64 .name = RC_MAP_WINFAST_USBII_DELUXE,
65 } 65 }
66}; 66};
diff --git a/drivers/media/rc/keymaps/rc-winfast.c b/drivers/media/rc/keymaps/rc-winfast.c
index 0e90a3bd9499..502b5f54f84e 100644
--- a/drivers/media/rc/keymaps/rc-winfast.c
+++ b/drivers/media/rc/keymaps/rc-winfast.c
@@ -80,7 +80,7 @@ static struct rc_keymap winfast_map = {
80 .map = { 80 .map = {
81 .scan = winfast, 81 .scan = winfast,
82 .size = ARRAY_SIZE(winfast), 82 .size = ARRAY_SIZE(winfast),
83 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 83 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
84 .name = RC_MAP_WINFAST, 84 .name = RC_MAP_WINFAST,
85 } 85 }
86}; 86};
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c
index db7787ac67a3..c2cb58a0c6ed 100644
--- a/drivers/media/rc/mceusb.c
+++ b/drivers/media/rc/mceusb.c
@@ -1060,7 +1060,7 @@ static struct rc_dev *mceusb_init_rc_dev(struct mceusb_dev *ir)
1060 rc->dev.parent = dev; 1060 rc->dev.parent = dev;
1061 rc->priv = ir; 1061 rc->priv = ir;
1062 rc->driver_type = RC_DRIVER_IR_RAW; 1062 rc->driver_type = RC_DRIVER_IR_RAW;
1063 rc->allowed_protos = IR_TYPE_ALL; 1063 rc->allowed_protos = RC_TYPE_ALL;
1064 rc->timeout = MS_TO_NS(1000); 1064 rc->timeout = MS_TO_NS(1000);
1065 if (!ir->flags.no_tx) { 1065 if (!ir->flags.no_tx) {
1066 rc->s_tx_mask = mceusb_set_tx_mask; 1066 rc->s_tx_mask = mceusb_set_tx_mask;
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c
index bf3f58f7bd7c..7fca6d1549ed 100644
--- a/drivers/media/rc/nuvoton-cir.c
+++ b/drivers/media/rc/nuvoton-cir.c
@@ -1060,7 +1060,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)
1060 /* Set up the rc device */ 1060 /* Set up the rc device */
1061 rdev->priv = nvt; 1061 rdev->priv = nvt;
1062 rdev->driver_type = RC_DRIVER_IR_RAW; 1062 rdev->driver_type = RC_DRIVER_IR_RAW;
1063 rdev->allowed_protos = IR_TYPE_ALL; 1063 rdev->allowed_protos = RC_TYPE_ALL;
1064 rdev->open = nvt_open; 1064 rdev->open = nvt_open;
1065 rdev->close = nvt_close; 1065 rdev->close = nvt_close;
1066 rdev->tx_ir = nvt_tx_ir; 1066 rdev->tx_ir = nvt_tx_ir;
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 11e2703ef1c4..f3244eba66c6 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -102,7 +102,7 @@ static struct rc_keymap empty_map = {
102 .map = { 102 .map = {
103 .scan = empty, 103 .scan = empty,
104 .size = ARRAY_SIZE(empty), 104 .size = ARRAY_SIZE(empty),
105 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ 105 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
106 .name = RC_MAP_EMPTY, 106 .name = RC_MAP_EMPTY,
107 } 107 }
108}; 108};
@@ -111,7 +111,7 @@ static struct rc_keymap empty_map = {
111 * ir_create_table() - initializes a scancode table 111 * ir_create_table() - initializes a scancode table
112 * @rc_tab: the ir_scancode_table to initialize 112 * @rc_tab: the ir_scancode_table to initialize
113 * @name: name to assign to the table 113 * @name: name to assign to the table
114 * @ir_type: ir type to assign to the new table 114 * @rc_type: ir type to assign to the new table
115 * @size: initial size of the table 115 * @size: initial size of the table
116 * @return: zero on success or a negative error code 116 * @return: zero on success or a negative error code
117 * 117 *
@@ -119,10 +119,10 @@ static struct rc_keymap empty_map = {
119 * memory to hold at least the specified number of elements. 119 * memory to hold at least the specified number of elements.
120 */ 120 */
121static int ir_create_table(struct ir_scancode_table *rc_tab, 121static int ir_create_table(struct ir_scancode_table *rc_tab,
122 const char *name, u64 ir_type, size_t size) 122 const char *name, u64 rc_type, size_t size)
123{ 123{
124 rc_tab->name = name; 124 rc_tab->name = name;
125 rc_tab->ir_type = ir_type; 125 rc_tab->rc_type = rc_type;
126 rc_tab->alloc = roundup_pow_of_two(size * sizeof(struct ir_scancode)); 126 rc_tab->alloc = roundup_pow_of_two(size * sizeof(struct ir_scancode));
127 rc_tab->size = rc_tab->alloc / sizeof(struct ir_scancode); 127 rc_tab->size = rc_tab->alloc / sizeof(struct ir_scancode);
128 rc_tab->scan = kmalloc(rc_tab->alloc, GFP_KERNEL); 128 rc_tab->scan = kmalloc(rc_tab->alloc, GFP_KERNEL);
@@ -372,7 +372,7 @@ static int ir_setkeytable(struct rc_dev *dev,
372 int rc; 372 int rc;
373 373
374 rc = ir_create_table(rc_tab, from->name, 374 rc = ir_create_table(rc_tab, from->name,
375 from->ir_type, from->size); 375 from->rc_type, from->size);
376 if (rc) 376 if (rc)
377 return rc; 377 return rc;
378 378
@@ -719,14 +719,14 @@ static struct {
719 u64 type; 719 u64 type;
720 char *name; 720 char *name;
721} proto_names[] = { 721} proto_names[] = {
722 { IR_TYPE_UNKNOWN, "unknown" }, 722 { RC_TYPE_UNKNOWN, "unknown" },
723 { IR_TYPE_RC5, "rc-5" }, 723 { RC_TYPE_RC5, "rc-5" },
724 { IR_TYPE_NEC, "nec" }, 724 { RC_TYPE_NEC, "nec" },
725 { IR_TYPE_RC6, "rc-6" }, 725 { RC_TYPE_RC6, "rc-6" },
726 { IR_TYPE_JVC, "jvc" }, 726 { RC_TYPE_JVC, "jvc" },
727 { IR_TYPE_SONY, "sony" }, 727 { RC_TYPE_SONY, "sony" },
728 { IR_TYPE_RC5_SZ, "rc-5-sz" }, 728 { RC_TYPE_RC5_SZ, "rc-5-sz" },
729 { IR_TYPE_LIRC, "lirc" }, 729 { RC_TYPE_LIRC, "lirc" },
730}; 730};
731 731
732#define PROTO_NONE "none" 732#define PROTO_NONE "none"
@@ -755,7 +755,7 @@ static ssize_t show_protocols(struct device *device,
755 return -EINVAL; 755 return -EINVAL;
756 756
757 if (dev->driver_type == RC_DRIVER_SCANCODE) { 757 if (dev->driver_type == RC_DRIVER_SCANCODE) {
758 enabled = dev->rc_tab.ir_type; 758 enabled = dev->rc_tab.rc_type;
759 allowed = dev->allowed_protos; 759 allowed = dev->allowed_protos;
760 } else { 760 } else {
761 enabled = dev->raw->enabled_protocols; 761 enabled = dev->raw->enabled_protocols;
@@ -813,7 +813,7 @@ static ssize_t store_protocols(struct device *device,
813 return -EINVAL; 813 return -EINVAL;
814 814
815 if (dev->driver_type == RC_DRIVER_SCANCODE) 815 if (dev->driver_type == RC_DRIVER_SCANCODE)
816 type = dev->rc_tab.ir_type; 816 type = dev->rc_tab.rc_type;
817 else if (dev->raw) 817 else if (dev->raw)
818 type = dev->raw->enabled_protocols; 818 type = dev->raw->enabled_protocols;
819 else { 819 else {
@@ -881,7 +881,7 @@ static ssize_t store_protocols(struct device *device,
881 881
882 if (dev->driver_type == RC_DRIVER_SCANCODE) { 882 if (dev->driver_type == RC_DRIVER_SCANCODE) {
883 spin_lock_irqsave(&dev->rc_tab.lock, flags); 883 spin_lock_irqsave(&dev->rc_tab.lock, flags);
884 dev->rc_tab.ir_type = type; 884 dev->rc_tab.rc_type = type;
885 spin_unlock_irqrestore(&dev->rc_tab.lock, flags); 885 spin_unlock_irqrestore(&dev->rc_tab.lock, flags);
886 } else { 886 } else {
887 dev->raw->enabled_protocols = type; 887 dev->raw->enabled_protocols = type;
@@ -1052,7 +1052,7 @@ int rc_register_device(struct rc_dev *dev)
1052 } 1052 }
1053 1053
1054 if (dev->change_protocol) { 1054 if (dev->change_protocol) {
1055 rc = dev->change_protocol(dev, rc_tab->ir_type); 1055 rc = dev->change_protocol(dev, rc_tab->rc_type);
1056 if (rc < 0) 1056 if (rc < 0)
1057 goto out_raw; 1057 goto out_raw;
1058 } 1058 }
diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c
index ea2cb636a193..7814ec709bfc 100644
--- a/drivers/media/rc/streamzap.c
+++ b/drivers/media/rc/streamzap.c
@@ -318,7 +318,7 @@ static struct rc_dev *streamzap_init_rc_dev(struct streamzap_ir *sz)
318 rdev->input_phys = sz->phys; 318 rdev->input_phys = sz->phys;
319 rdev->priv = sz; 319 rdev->priv = sz;
320 rdev->driver_type = RC_DRIVER_IR_RAW; 320 rdev->driver_type = RC_DRIVER_IR_RAW;
321 rdev->allowed_protos = IR_TYPE_ALL; 321 rdev->allowed_protos = RC_TYPE_ALL;
322 rdev->driver_name = DRIVER_NAME; 322 rdev->driver_name = DRIVER_NAME;
323 rdev->map_name = RC_MAP_STREAMZAP; 323 rdev->map_name = RC_MAP_STREAMZAP;
324 324
diff --git a/drivers/media/video/cx18/cx18-i2c.c b/drivers/media/video/cx18/cx18-i2c.c
index e71a026f3419..c330fb917b50 100644
--- a/drivers/media/video/cx18/cx18-i2c.c
+++ b/drivers/media/video/cx18/cx18-i2c.c
@@ -98,7 +98,7 @@ static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw,
98 case CX18_HW_Z8F0811_IR_RX_HAUP: 98 case CX18_HW_Z8F0811_IR_RX_HAUP:
99 init_data->ir_codes = RC_MAP_HAUPPAUGE_NEW; 99 init_data->ir_codes = RC_MAP_HAUPPAUGE_NEW;
100 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 100 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR;
101 init_data->type = IR_TYPE_RC5; 101 init_data->type = RC_TYPE_RC5;
102 init_data->name = cx->card_name; 102 init_data->name = cx->card_name;
103 info.platform_data = init_data; 103 info.platform_data = init_data;
104 break; 104 break;
diff --git a/drivers/media/video/cx231xx/cx231xx-input.c b/drivers/media/video/cx231xx/cx231xx-input.c
index 1d043ed1bc32..c236a4e7e97b 100644
--- a/drivers/media/video/cx231xx/cx231xx-input.c
+++ b/drivers/media/video/cx231xx/cx231xx-input.c
@@ -84,7 +84,7 @@ int cx231xx_ir_init(struct cx231xx *dev)
84 /* The i2c micro-controller only outputs the cmd part of NEC protocol */ 84 /* The i2c micro-controller only outputs the cmd part of NEC protocol */
85 dev->init_data.rc_dev->scanmask = 0xff; 85 dev->init_data.rc_dev->scanmask = 0xff;
86 dev->init_data.rc_dev->driver_name = "cx231xx"; 86 dev->init_data.rc_dev->driver_name = "cx231xx";
87 dev->init_data.type = IR_TYPE_NEC; 87 dev->init_data.type = RC_TYPE_NEC;
88 info.addr = 0x30; 88 info.addr = 0x30;
89 89
90 /* Load and bind ir-kbd-i2c */ 90 /* Load and bind ir-kbd-i2c */
diff --git a/drivers/media/video/cx23885/cx23885-input.c b/drivers/media/video/cx23885/cx23885-input.c
index e824ba63fdde..0b0d0664382a 100644
--- a/drivers/media/video/cx23885/cx23885-input.c
+++ b/drivers/media/video/cx23885/cx23885-input.c
@@ -264,14 +264,14 @@ int cx23885_input_init(struct cx23885_dev *dev)
264 case CX23885_BOARD_HAUPPAUGE_HVR1250: 264 case CX23885_BOARD_HAUPPAUGE_HVR1250:
265 /* Integrated CX2388[58] IR controller */ 265 /* Integrated CX2388[58] IR controller */
266 driver_type = RC_DRIVER_IR_RAW; 266 driver_type = RC_DRIVER_IR_RAW;
267 allowed_protos = IR_TYPE_ALL; 267 allowed_protos = RC_TYPE_ALL;
268 /* The grey Hauppauge RC-5 remote */ 268 /* The grey Hauppauge RC-5 remote */
269 rc_map = RC_MAP_RC5_HAUPPAUGE_NEW; 269 rc_map = RC_MAP_RC5_HAUPPAUGE_NEW;
270 break; 270 break;
271 case CX23885_BOARD_TEVII_S470: 271 case CX23885_BOARD_TEVII_S470:
272 /* Integrated CX23885 IR controller */ 272 /* Integrated CX23885 IR controller */
273 driver_type = RC_DRIVER_IR_RAW; 273 driver_type = RC_DRIVER_IR_RAW;
274 allowed_protos = IR_TYPE_ALL; 274 allowed_protos = RC_TYPE_ALL;
275 /* A guess at the remote */ 275 /* A guess at the remote */
276 rc_map = RC_MAP_TEVII_NEC; 276 rc_map = RC_MAP_TEVII_NEC;
277 break; 277 break;
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c
index cfeba4c08715..4a3bf5476c71 100644
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -241,7 +241,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
241 struct cx88_IR *ir; 241 struct cx88_IR *ir;
242 struct rc_dev *dev; 242 struct rc_dev *dev;
243 char *ir_codes = NULL; 243 char *ir_codes = NULL;
244 u64 ir_type = IR_TYPE_OTHER; 244 u64 rc_type = RC_TYPE_OTHER;
245 int err = -ENOMEM; 245 int err = -ENOMEM;
246 u32 hardware_mask = 0; /* For devices with a hardware mask, when 246 u32 hardware_mask = 0; /* For devices with a hardware mask, when
247 * used with a full-code IR table 247 * used with a full-code IR table
@@ -404,7 +404,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
404 break; 404 break;
405 case CX88_BOARD_TWINHAN_VP1027_DVBS: 405 case CX88_BOARD_TWINHAN_VP1027_DVBS:
406 ir_codes = RC_MAP_TWINHAN_VP1027_DVBS; 406 ir_codes = RC_MAP_TWINHAN_VP1027_DVBS;
407 ir_type = IR_TYPE_NEC; 407 rc_type = RC_TYPE_NEC;
408 ir->sampling = 0xff00; /* address */ 408 ir->sampling = 0xff00; /* address */
409 break; 409 break;
410 } 410 }
@@ -457,7 +457,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
457 dev->timeout = 10 * 1000 * 1000; /* 10 ms */ 457 dev->timeout = 10 * 1000 * 1000; /* 10 ms */
458 } else { 458 } else {
459 dev->driver_type = RC_DRIVER_SCANCODE; 459 dev->driver_type = RC_DRIVER_SCANCODE;
460 dev->allowed_protos = ir_type; 460 dev->allowed_protos = rc_type;
461 } 461 }
462 462
463 ir->core = core; 463 ir->core = core;
@@ -557,7 +557,7 @@ void cx88_i2c_init_ir(struct cx88_core *core)
557 /* Hauppauge XVR */ 557 /* Hauppauge XVR */
558 core->init_data.name = "cx88 Hauppauge XVR remote"; 558 core->init_data.name = "cx88 Hauppauge XVR remote";
559 core->init_data.ir_codes = RC_MAP_HAUPPAUGE_NEW; 559 core->init_data.ir_codes = RC_MAP_HAUPPAUGE_NEW;
560 core->init_data.type = IR_TYPE_RC5; 560 core->init_data.type = RC_TYPE_RC5;
561 core->init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 561 core->init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR;
562 562
563 info.platform_data = &core->init_data; 563 info.platform_data = &core->init_data;
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c
index e32eb38564e6..29cc74441a7d 100644
--- a/drivers/media/video/em28xx/em28xx-input.c
+++ b/drivers/media/video/em28xx/em28xx-input.c
@@ -343,7 +343,7 @@ static void em28xx_ir_stop(struct rc_dev *rc)
343 cancel_delayed_work_sync(&ir->work); 343 cancel_delayed_work_sync(&ir->work);
344} 344}
345 345
346int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 ir_type) 346int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 rc_type)
347{ 347{
348 int rc = 0; 348 int rc = 0;
349 struct em28xx_IR *ir = rc_dev->priv; 349 struct em28xx_IR *ir = rc_dev->priv;
@@ -352,14 +352,14 @@ int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 ir_type)
352 352
353 /* Adjust xclk based o IR table for RC5/NEC tables */ 353 /* Adjust xclk based o IR table for RC5/NEC tables */
354 354
355 if (ir_type == IR_TYPE_RC5) { 355 if (rc_type == RC_TYPE_RC5) {
356 dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; 356 dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE;
357 ir->full_code = 1; 357 ir->full_code = 1;
358 } else if (ir_type == IR_TYPE_NEC) { 358 } else if (rc_type == RC_TYPE_NEC) {
359 dev->board.xclk &= ~EM28XX_XCLK_IR_RC5_MODE; 359 dev->board.xclk &= ~EM28XX_XCLK_IR_RC5_MODE;
360 ir_config = EM2874_IR_NEC; 360 ir_config = EM2874_IR_NEC;
361 ir->full_code = 1; 361 ir->full_code = 1;
362 } else if (ir_type != IR_TYPE_UNKNOWN) 362 } else if (rc_type != RC_TYPE_UNKNOWN)
363 rc = -EINVAL; 363 rc = -EINVAL;
364 364
365 em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk, 365 em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk,
@@ -408,14 +408,14 @@ int em28xx_ir_init(struct em28xx *dev)
408 * em2874 supports more protocols. For now, let's just announce 408 * em2874 supports more protocols. For now, let's just announce
409 * the two protocols that were already tested 409 * the two protocols that were already tested
410 */ 410 */
411 rc->allowed_protos = IR_TYPE_RC5 | IR_TYPE_NEC; 411 rc->allowed_protos = RC_TYPE_RC5 | RC_TYPE_NEC;
412 rc->priv = ir; 412 rc->priv = ir;
413 rc->change_protocol = em28xx_ir_change_protocol; 413 rc->change_protocol = em28xx_ir_change_protocol;
414 rc->open = em28xx_ir_start; 414 rc->open = em28xx_ir_start;
415 rc->close = em28xx_ir_stop; 415 rc->close = em28xx_ir_stop;
416 416
417 /* By default, keep protocol field untouched */ 417 /* By default, keep protocol field untouched */
418 err = em28xx_ir_change_protocol(rc, IR_TYPE_UNKNOWN); 418 err = em28xx_ir_change_protocol(rc, RC_TYPE_UNKNOWN);
419 if (err) 419 if (err)
420 goto err_out_free; 420 goto err_out_free;
421 421
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index c77ea53f50d7..dd54c3dae054 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -269,7 +269,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
269{ 269{
270 char *ir_codes = NULL; 270 char *ir_codes = NULL;
271 const char *name = NULL; 271 const char *name = NULL;
272 u64 ir_type = IR_TYPE_UNKNOWN; 272 u64 rc_type = RC_TYPE_UNKNOWN;
273 struct IR_i2c *ir; 273 struct IR_i2c *ir;
274 struct rc_dev *rc = NULL; 274 struct rc_dev *rc = NULL;
275 struct i2c_adapter *adap = client->adapter; 275 struct i2c_adapter *adap = client->adapter;
@@ -288,7 +288,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
288 case 0x64: 288 case 0x64:
289 name = "Pixelview"; 289 name = "Pixelview";
290 ir->get_key = get_key_pixelview; 290 ir->get_key = get_key_pixelview;
291 ir_type = IR_TYPE_OTHER; 291 rc_type = RC_TYPE_OTHER;
292 ir_codes = RC_MAP_EMPTY; 292 ir_codes = RC_MAP_EMPTY;
293 break; 293 break;
294 case 0x18: 294 case 0x18:
@@ -296,7 +296,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
296 case 0x1a: 296 case 0x1a:
297 name = "Hauppauge"; 297 name = "Hauppauge";
298 ir->get_key = get_key_haup; 298 ir->get_key = get_key_haup;
299 ir_type = IR_TYPE_RC5; 299 rc_type = RC_TYPE_RC5;
300 if (hauppauge == 1) { 300 if (hauppauge == 1) {
301 ir_codes = RC_MAP_HAUPPAUGE_NEW; 301 ir_codes = RC_MAP_HAUPPAUGE_NEW;
302 } else { 302 } else {
@@ -306,19 +306,19 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
306 case 0x30: 306 case 0x30:
307 name = "KNC One"; 307 name = "KNC One";
308 ir->get_key = get_key_knc1; 308 ir->get_key = get_key_knc1;
309 ir_type = IR_TYPE_OTHER; 309 rc_type = RC_TYPE_OTHER;
310 ir_codes = RC_MAP_EMPTY; 310 ir_codes = RC_MAP_EMPTY;
311 break; 311 break;
312 case 0x6b: 312 case 0x6b:
313 name = "FusionHDTV"; 313 name = "FusionHDTV";
314 ir->get_key = get_key_fusionhdtv; 314 ir->get_key = get_key_fusionhdtv;
315 ir_type = IR_TYPE_RC5; 315 rc_type = RC_TYPE_RC5;
316 ir_codes = RC_MAP_FUSIONHDTV_MCE; 316 ir_codes = RC_MAP_FUSIONHDTV_MCE;
317 break; 317 break;
318 case 0x40: 318 case 0x40:
319 name = "AVerMedia Cardbus remote"; 319 name = "AVerMedia Cardbus remote";
320 ir->get_key = get_key_avermedia_cardbus; 320 ir->get_key = get_key_avermedia_cardbus;
321 ir_type = IR_TYPE_OTHER; 321 rc_type = RC_TYPE_OTHER;
322 ir_codes = RC_MAP_AVERMEDIA_CARDBUS; 322 ir_codes = RC_MAP_AVERMEDIA_CARDBUS;
323 break; 323 break;
324 } 324 }
@@ -333,7 +333,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
333 333
334 name = init_data->name; 334 name = init_data->name;
335 if (init_data->type) 335 if (init_data->type)
336 ir_type = init_data->type; 336 rc_type = init_data->type;
337 337
338 if (init_data->polling_interval) 338 if (init_data->polling_interval)
339 ir->polling_interval = init_data->polling_interval; 339 ir->polling_interval = init_data->polling_interval;
@@ -378,7 +378,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
378 ir->rc = rc; 378 ir->rc = rc;
379 379
380 /* Make sure we are all setup before going on */ 380 /* Make sure we are all setup before going on */
381 if (!name || !ir->get_key || !ir_type || !ir_codes) { 381 if (!name || !ir->get_key || !rc_type || !ir_codes) {
382 dprintk(1, ": Unsupported device at address 0x%02x\n", 382 dprintk(1, ": Unsupported device at address 0x%02x\n",
383 addr); 383 addr);
384 err = -ENODEV; 384 err = -ENODEV;
@@ -405,7 +405,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
405 * Initialize the other fields of rc_dev 405 * Initialize the other fields of rc_dev
406 */ 406 */
407 rc->map_name = ir->ir_codes; 407 rc->map_name = ir->ir_codes;
408 rc->allowed_protos = ir_type; 408 rc->allowed_protos = rc_type;
409 if (!rc->driver_name) 409 if (!rc->driver_name)
410 rc->driver_name = MODULE_NAME; 410 rc->driver_name = MODULE_NAME;
411 411
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c
index 665191c9b407..68170924448c 100644
--- a/drivers/media/video/ivtv/ivtv-i2c.c
+++ b/drivers/media/video/ivtv/ivtv-i2c.c
@@ -172,7 +172,7 @@ static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr)
172 init_data->ir_codes = RC_MAP_AVERMEDIA_CARDBUS; 172 init_data->ir_codes = RC_MAP_AVERMEDIA_CARDBUS;
173 init_data->internal_get_key_func = 173 init_data->internal_get_key_func =
174 IR_KBD_GET_KEY_AVERMEDIA_CARDBUS; 174 IR_KBD_GET_KEY_AVERMEDIA_CARDBUS;
175 init_data->type = IR_TYPE_OTHER; 175 init_data->type = RC_TYPE_OTHER;
176 init_data->name = "AVerMedia AVerTV card"; 176 init_data->name = "AVerMedia AVerTV card";
177 break; 177 break;
178 case IVTV_HW_I2C_IR_RX_HAUP_EXT: 178 case IVTV_HW_I2C_IR_RX_HAUP_EXT:
@@ -180,14 +180,14 @@ static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr)
180 /* Default to old black remote */ 180 /* Default to old black remote */
181 init_data->ir_codes = RC_MAP_RC5_TV; 181 init_data->ir_codes = RC_MAP_RC5_TV;
182 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP; 182 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP;
183 init_data->type = IR_TYPE_RC5; 183 init_data->type = RC_TYPE_RC5;
184 init_data->name = itv->card_name; 184 init_data->name = itv->card_name;
185 break; 185 break;
186 case IVTV_HW_Z8F0811_IR_RX_HAUP: 186 case IVTV_HW_Z8F0811_IR_RX_HAUP:
187 /* Default to grey remote */ 187 /* Default to grey remote */
188 init_data->ir_codes = RC_MAP_HAUPPAUGE_NEW; 188 init_data->ir_codes = RC_MAP_HAUPPAUGE_NEW;
189 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 189 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR;
190 init_data->type = IR_TYPE_RC5; 190 init_data->type = RC_TYPE_RC5;
191 init_data->name = itv->card_name; 191 init_data->name = itv->card_name;
192 break; 192 break;
193 } 193 }
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index cd39aea30389..f3f4aff2761e 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -909,7 +909,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
909 dev->init_data.name = "BeholdTV"; 909 dev->init_data.name = "BeholdTV";
910 dev->init_data.get_key = get_key_beholdm6xx; 910 dev->init_data.get_key = get_key_beholdm6xx;
911 dev->init_data.ir_codes = RC_MAP_BEHOLD; 911 dev->init_data.ir_codes = RC_MAP_BEHOLD;
912 dev->init_data.type = IR_TYPE_NEC; 912 dev->init_data.type = RC_TYPE_NEC;
913 info.addr = 0x2d; 913 info.addr = 0x2d;
914 break; 914 break;
915 case SAA7134_BOARD_AVERMEDIA_CARDBUS_501: 915 case SAA7134_BOARD_AVERMEDIA_CARDBUS_501:
diff --git a/drivers/staging/tm6000/tm6000-input.c b/drivers/staging/tm6000/tm6000-input.c
index 02b982978bb8..e02ea6720380 100644
--- a/drivers/staging/tm6000/tm6000-input.c
+++ b/drivers/staging/tm6000/tm6000-input.c
@@ -65,7 +65,7 @@ struct tm6000_IR {
65 int (*get_key) (struct tm6000_IR *, struct tm6000_ir_poll_result *); 65 int (*get_key) (struct tm6000_IR *, struct tm6000_ir_poll_result *);
66 66
67 /* IR device properties */ 67 /* IR device properties */
68 u64 ir_type; 68 u64 rc_type;
69}; 69};
70 70
71 71
@@ -143,7 +143,7 @@ static int default_polling_getkey(struct tm6000_IR *ir,
143 return 0; 143 return 0;
144 144
145 if (&dev->int_in) { 145 if (&dev->int_in) {
146 if (ir->ir_type == IR_TYPE_RC5) 146 if (ir->rc_type == RC_TYPE_RC5)
147 poll_result->rc_data = ir->urb_data[0]; 147 poll_result->rc_data = ir->urb_data[0];
148 else 148 else
149 poll_result->rc_data = ir->urb_data[0] | ir->urb_data[1] << 8; 149 poll_result->rc_data = ir->urb_data[0] | ir->urb_data[1] << 8;
@@ -153,7 +153,7 @@ static int default_polling_getkey(struct tm6000_IR *ir,
153 tm6000_set_reg(dev, REQ_04_EN_DISABLE_MCU_INT, 2, 1); 153 tm6000_set_reg(dev, REQ_04_EN_DISABLE_MCU_INT, 2, 1);
154 msleep(10); 154 msleep(10);
155 155
156 if (ir->ir_type == IR_TYPE_RC5) { 156 if (ir->rc_type == RC_TYPE_RC5) {
157 rc = tm6000_read_write_usb(dev, USB_DIR_IN | 157 rc = tm6000_read_write_usb(dev, USB_DIR_IN |
158 USB_TYPE_VENDOR | USB_RECIP_DEVICE, 158 USB_TYPE_VENDOR | USB_RECIP_DEVICE,
159 REQ_02_GET_IR_CODE, 0, 0, buf, 1); 159 REQ_02_GET_IR_CODE, 0, 0, buf, 1);
@@ -230,7 +230,7 @@ static void tm6000_ir_stop(struct rc_dev *rc)
230 cancel_delayed_work_sync(&ir->work); 230 cancel_delayed_work_sync(&ir->work);
231} 231}
232 232
233int tm6000_ir_change_protocol(struct rc_dev *rc, u64 ir_type) 233int tm6000_ir_change_protocol(struct rc_dev *rc, u64 rc_type)
234{ 234{
235 struct tm6000_IR *ir = rc->priv; 235 struct tm6000_IR *ir = rc->priv;
236 236
@@ -268,7 +268,7 @@ int tm6000_ir_init(struct tm6000_core *dev)
268 ir->rc = rc; 268 ir->rc = rc;
269 269
270 /* input einrichten */ 270 /* input einrichten */
271 rc->allowed_protos = IR_TYPE_RC5 | IR_TYPE_NEC; 271 rc->allowed_protos = RC_TYPE_RC5 | RC_TYPE_NEC;
272 rc->priv = ir; 272 rc->priv = ir;
273 rc->change_protocol = tm6000_ir_change_protocol; 273 rc->change_protocol = tm6000_ir_change_protocol;
274 rc->open = tm6000_ir_start; 274 rc->open = tm6000_ir_start;
@@ -283,7 +283,7 @@ int tm6000_ir_init(struct tm6000_core *dev)
283 usb_make_path(dev->udev, ir->phys, sizeof(ir->phys)); 283 usb_make_path(dev->udev, ir->phys, sizeof(ir->phys));
284 strlcat(ir->phys, "/input0", sizeof(ir->phys)); 284 strlcat(ir->phys, "/input0", sizeof(ir->phys));
285 285
286 tm6000_ir_change_protocol(rc, IR_TYPE_UNKNOWN); 286 tm6000_ir_change_protocol(rc, RC_TYPE_UNKNOWN);
287 287
288 rc->input_name = ir->name; 288 rc->input_name = ir->name;
289 rc->input_phys = ir->phys; 289 rc->input_phys = ir->phys;
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h
index f22b359c37ff..768aa77925cd 100644
--- a/include/media/ir-kbd-i2c.h
+++ b/include/media/ir-kbd-i2c.h
@@ -37,7 +37,7 @@ enum ir_kbd_get_key_fn {
37struct IR_i2c_init_data { 37struct IR_i2c_init_data {
38 char *ir_codes; 38 char *ir_codes;
39 const char *name; 39 const char *name;
40 u64 type; /* IR_TYPE_RC5, etc */ 40 u64 type; /* RC_TYPE_RC5, etc */
41 u32 polling_interval; /* 0 means DEFAULT_POLLING_INTERVAL */ 41 u32 polling_interval; /* 0 means DEFAULT_POLLING_INTERVAL */
42 42
43 /* 43 /*
diff --git a/include/media/rc-core.h b/include/media/rc-core.h
index 170581b4fa84..42543257fa0f 100644
--- a/include/media/rc-core.h
+++ b/include/media/rc-core.h
@@ -45,7 +45,7 @@ enum rc_driver_type {
45 * @input_dev: the input child device used to communicate events to userspace 45 * @input_dev: the input child device used to communicate events to userspace
46 * @driver_type: specifies if protocol decoding is done in hardware or software 46 * @driver_type: specifies if protocol decoding is done in hardware or software
47 * @idle: used to keep track of RX state 47 * @idle: used to keep track of RX state
48 * @allowed_protos: bitmask with the supported IR_TYPE_* protocols 48 * @allowed_protos: bitmask with the supported RC_TYPE_* protocols
49 * @scanmask: some hardware decoders are not capable of providing the full 49 * @scanmask: some hardware decoders are not capable of providing the full
50 * scancode to the application. As this is a hardware limit, we can't do 50 * scancode to the application. As this is a hardware limit, we can't do
51 * anything with it. Yet, as the same keycode table can be used with other 51 * anything with it. Yet, as the same keycode table can be used with other
@@ -107,7 +107,7 @@ struct rc_dev {
107 u32 max_timeout; 107 u32 max_timeout;
108 u32 rx_resolution; 108 u32 rx_resolution;
109 u32 tx_resolution; 109 u32 tx_resolution;
110 int (*change_protocol)(struct rc_dev *dev, u64 ir_type); 110 int (*change_protocol)(struct rc_dev *dev, u64 rc_type);
111 int (*open)(struct rc_dev *dev); 111 int (*open)(struct rc_dev *dev);
112 void (*close)(struct rc_dev *dev); 112 void (*close)(struct rc_dev *dev);
113 int (*s_tx_mask)(struct rc_dev *dev, u32 mask); 113 int (*s_tx_mask)(struct rc_dev *dev, u32 mask);
diff --git a/include/media/rc-map.h b/include/media/rc-map.h
index e0f17edf38ed..c53351e15f50 100644
--- a/include/media/rc-map.h
+++ b/include/media/rc-map.h
@@ -11,19 +11,19 @@
11 11
12#include <linux/input.h> 12#include <linux/input.h>
13 13
14#define IR_TYPE_UNKNOWN 0 14#define RC_TYPE_UNKNOWN 0
15#define IR_TYPE_RC5 (1 << 0) /* Philips RC5 protocol */ 15#define RC_TYPE_RC5 (1 << 0) /* Philips RC5 protocol */
16#define IR_TYPE_NEC (1 << 1) 16#define RC_TYPE_NEC (1 << 1)
17#define IR_TYPE_RC6 (1 << 2) /* Philips RC6 protocol */ 17#define RC_TYPE_RC6 (1 << 2) /* Philips RC6 protocol */
18#define IR_TYPE_JVC (1 << 3) /* JVC protocol */ 18#define RC_TYPE_JVC (1 << 3) /* JVC protocol */
19#define IR_TYPE_SONY (1 << 4) /* Sony12/15/20 protocol */ 19#define RC_TYPE_SONY (1 << 4) /* Sony12/15/20 protocol */
20#define IR_TYPE_RC5_SZ (1 << 5) /* RC5 variant used by Streamzap */ 20#define RC_TYPE_RC5_SZ (1 << 5) /* RC5 variant used by Streamzap */
21#define IR_TYPE_LIRC (1 << 30) /* Pass raw IR to lirc userspace */ 21#define RC_TYPE_LIRC (1 << 30) /* Pass raw IR to lirc userspace */
22#define IR_TYPE_OTHER (1u << 31) 22#define RC_TYPE_OTHER (1u << 31)
23 23
24#define IR_TYPE_ALL (IR_TYPE_RC5 | IR_TYPE_NEC | IR_TYPE_RC6 | \ 24#define RC_TYPE_ALL (RC_TYPE_RC5 | RC_TYPE_NEC | RC_TYPE_RC6 | \
25 IR_TYPE_JVC | IR_TYPE_SONY | IR_TYPE_LIRC | \ 25 RC_TYPE_JVC | RC_TYPE_SONY | RC_TYPE_LIRC | \
26 IR_TYPE_RC5_SZ | IR_TYPE_OTHER) 26 RC_TYPE_RC5_SZ | RC_TYPE_OTHER)
27 27
28struct ir_scancode { 28struct ir_scancode {
29 u32 scancode; 29 u32 scancode;
@@ -35,7 +35,7 @@ struct ir_scancode_table {
35 unsigned int size; /* Max number of entries */ 35 unsigned int size; /* Max number of entries */
36 unsigned int len; /* Used number of entries */ 36 unsigned int len; /* Used number of entries */
37 unsigned int alloc; /* Size of *scan in bytes */ 37 unsigned int alloc; /* Size of *scan in bytes */
38 u64 ir_type; 38 u64 rc_type;
39 const char *name; 39 const char *name;
40 spinlock_t lock; 40 spinlock_t lock;
41}; 41};