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

media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_*

RC_TYPE is confusing and it's just the protocol. So rename it.

Suggested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sean Young <sean@mess.org>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Sean Young and committed by
Mauro Carvalho Chehab
6d741bfe a9a249a2

+1204 -1158
+1 -1
drivers/hid/hid-picolcd_cir.c
··· 113 113 return -ENOMEM; 114 114 115 115 rdev->priv = data; 116 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 116 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 117 117 rdev->open = picolcd_cir_open; 118 118 rdev->close = picolcd_cir_close; 119 119 rdev->device_name = data->hdev->name;
+1 -1
drivers/media/cec/cec-adap.c
··· 1897 1897 } 1898 1898 1899 1899 /* Send key press */ 1900 - rc_keydown(adap->rc, RC_TYPE_CEC, scancode, 0); 1900 + rc_keydown(adap->rc, RC_PROTO_CEC, scancode, 0); 1901 1901 1902 1902 /* When in repeating mode, we're done */ 1903 1903 if (adap->rc_repeating)
+2 -2
drivers/media/cec/cec-core.c
··· 275 275 adap->rc->input_id.product = 0; 276 276 adap->rc->input_id.version = 1; 277 277 adap->rc->driver_name = CEC_NAME; 278 - adap->rc->allowed_protocols = RC_BIT_CEC; 279 - adap->rc->enabled_protocols = RC_BIT_CEC; 278 + adap->rc->allowed_protocols = RC_PROTO_BIT_CEC; 279 + adap->rc->enabled_protocols = RC_PROTO_BIT_CEC; 280 280 adap->rc->priv = adap; 281 281 adap->rc->map_name = RC_MAP_CEC; 282 282 adap->rc->timeout = MS_TO_NS(100);
+1 -1
drivers/media/common/siano/smsir.c
··· 86 86 #endif 87 87 88 88 dev->priv = coredev; 89 - dev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 89 + dev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 90 90 dev->map_name = sms_get_board(board_id)->rc_codes; 91 91 dev->driver_name = MODULE_NAME; 92 92
+29 -28
drivers/media/i2c/ir-kbd-i2c.c
··· 59 59 60 60 /* ----------------------------------------------------------------------- */ 61 61 62 - static int get_key_haup_common(struct IR_i2c *ir, enum rc_type *protocol, 63 - u32 *scancode, u8 *ptoggle, int size) 62 + static int get_key_haup_common(struct IR_i2c *ir, enum rc_proto *protocol, 63 + u32 *scancode, u8 *ptoggle, int size) 64 64 { 65 65 unsigned char buf[6]; 66 66 int start, range, toggle, dev, code, ircode, vendor; ··· 99 99 dprintk(1, "ir hauppauge (rc5): s%d r%d t%d dev=%d code=%d\n", 100 100 start, range, toggle, dev, code); 101 101 102 - *protocol = RC_TYPE_RC5; 102 + *protocol = RC_PROTO_RC5; 103 103 *scancode = RC_SCANCODE_RC5(dev, code); 104 104 *ptoggle = toggle; 105 105 ··· 111 111 112 112 if (vendor == 0x800f) { 113 113 *ptoggle = (dev & 0x80) != 0; 114 - *protocol = RC_TYPE_RC6_MCE; 114 + *protocol = RC_PROTO_RC6_MCE; 115 115 dev &= 0x7f; 116 116 dprintk(1, "ir hauppauge (rc6-mce): t%d vendor=%d dev=%d code=%d\n", 117 117 *ptoggle, vendor, dev, code); 118 118 } else { 119 119 *ptoggle = 0; 120 - *protocol = RC_TYPE_RC6_6A_32; 120 + *protocol = RC_PROTO_RC6_6A_32; 121 121 dprintk(1, "ir hauppauge (rc6-6a-32): vendor=%d dev=%d code=%d\n", 122 122 vendor, dev, code); 123 123 } ··· 130 130 return 0; 131 131 } 132 132 133 - static int get_key_haup(struct IR_i2c *ir, enum rc_type *protocol, 133 + static int get_key_haup(struct IR_i2c *ir, enum rc_proto *protocol, 134 134 u32 *scancode, u8 *toggle) 135 135 { 136 136 return get_key_haup_common(ir, protocol, scancode, toggle, 3); 137 137 } 138 138 139 - static int get_key_haup_xvr(struct IR_i2c *ir, enum rc_type *protocol, 139 + static int get_key_haup_xvr(struct IR_i2c *ir, enum rc_proto *protocol, 140 140 u32 *scancode, u8 *toggle) 141 141 { 142 142 int ret; ··· 155 155 return get_key_haup_common(ir, protocol, scancode, toggle, 6); 156 156 } 157 157 158 - static int get_key_pixelview(struct IR_i2c *ir, enum rc_type *protocol, 158 + static int get_key_pixelview(struct IR_i2c *ir, enum rc_proto *protocol, 159 159 u32 *scancode, u8 *toggle) 160 160 { 161 161 unsigned char b; ··· 166 166 return -EIO; 167 167 } 168 168 169 - *protocol = RC_TYPE_OTHER; 169 + *protocol = RC_PROTO_OTHER; 170 170 *scancode = b; 171 171 *toggle = 0; 172 172 return 1; 173 173 } 174 174 175 - static int get_key_fusionhdtv(struct IR_i2c *ir, enum rc_type *protocol, 175 + static int get_key_fusionhdtv(struct IR_i2c *ir, enum rc_proto *protocol, 176 176 u32 *scancode, u8 *toggle) 177 177 { 178 178 unsigned char buf[4]; ··· 191 191 if(buf[0] != 0x1 || buf[1] != 0xfe) 192 192 return 0; 193 193 194 - *protocol = RC_TYPE_UNKNOWN; 194 + *protocol = RC_PROTO_UNKNOWN; 195 195 *scancode = buf[2]; 196 196 *toggle = 0; 197 197 return 1; 198 198 } 199 199 200 - static int get_key_knc1(struct IR_i2c *ir, enum rc_type *protocol, 200 + static int get_key_knc1(struct IR_i2c *ir, enum rc_proto *protocol, 201 201 u32 *scancode, u8 *toggle) 202 202 { 203 203 unsigned char b; ··· 221 221 /* keep old data */ 222 222 return 1; 223 223 224 - *protocol = RC_TYPE_UNKNOWN; 224 + *protocol = RC_PROTO_UNKNOWN; 225 225 *scancode = b; 226 226 *toggle = 0; 227 227 return 1; 228 228 } 229 229 230 - static int get_key_avermedia_cardbus(struct IR_i2c *ir, enum rc_type *protocol, 230 + static int get_key_avermedia_cardbus(struct IR_i2c *ir, enum rc_proto *protocol, 231 231 u32 *scancode, u8 *toggle) 232 232 { 233 233 unsigned char subaddr, key, keygroup; ··· 262 262 } 263 263 key |= (keygroup & 1) << 6; 264 264 265 - *protocol = RC_TYPE_UNKNOWN; 265 + *protocol = RC_PROTO_UNKNOWN; 266 266 *scancode = key; 267 267 if (ir->c->addr == 0x41) /* AVerMedia EM78P153 */ 268 268 *scancode |= keygroup << 8; ··· 274 274 275 275 static int ir_key_poll(struct IR_i2c *ir) 276 276 { 277 - enum rc_type protocol; 277 + enum rc_proto protocol; 278 278 u32 scancode; 279 279 u8 toggle; 280 280 int rc; ··· 315 315 { 316 316 char *ir_codes = NULL; 317 317 const char *name = NULL; 318 - u64 rc_type = RC_BIT_UNKNOWN; 318 + u64 rc_proto = RC_PROTO_BIT_UNKNOWN; 319 319 struct IR_i2c *ir; 320 320 struct rc_dev *rc = NULL; 321 321 struct i2c_adapter *adap = client->adapter; ··· 334 334 case 0x64: 335 335 name = "Pixelview"; 336 336 ir->get_key = get_key_pixelview; 337 - rc_type = RC_BIT_OTHER; 337 + rc_proto = RC_PROTO_BIT_OTHER; 338 338 ir_codes = RC_MAP_EMPTY; 339 339 break; 340 340 case 0x18: ··· 342 342 case 0x1a: 343 343 name = "Hauppauge"; 344 344 ir->get_key = get_key_haup; 345 - rc_type = RC_BIT_RC5; 345 + rc_proto = RC_PROTO_BIT_RC5; 346 346 ir_codes = RC_MAP_HAUPPAUGE; 347 347 break; 348 348 case 0x30: 349 349 name = "KNC One"; 350 350 ir->get_key = get_key_knc1; 351 - rc_type = RC_BIT_OTHER; 351 + rc_proto = RC_PROTO_BIT_OTHER; 352 352 ir_codes = RC_MAP_EMPTY; 353 353 break; 354 354 case 0x6b: 355 355 name = "FusionHDTV"; 356 356 ir->get_key = get_key_fusionhdtv; 357 - rc_type = RC_BIT_UNKNOWN; 357 + rc_proto = RC_PROTO_BIT_UNKNOWN; 358 358 ir_codes = RC_MAP_FUSIONHDTV_MCE; 359 359 break; 360 360 case 0x40: 361 361 name = "AVerMedia Cardbus remote"; 362 362 ir->get_key = get_key_avermedia_cardbus; 363 - rc_type = RC_BIT_OTHER; 363 + rc_proto = RC_PROTO_BIT_OTHER; 364 364 ir_codes = RC_MAP_AVERMEDIA_CARDBUS; 365 365 break; 366 366 case 0x41: 367 367 name = "AVerMedia EM78P153"; 368 368 ir->get_key = get_key_avermedia_cardbus; 369 - rc_type = RC_BIT_OTHER; 369 + rc_proto = RC_PROTO_BIT_OTHER; 370 370 /* RM-KV remote, seems to be same as RM-K6 */ 371 371 ir_codes = RC_MAP_AVERMEDIA_M733A_RM_K6; 372 372 break; 373 373 case 0x71: 374 374 name = "Hauppauge/Zilog Z8"; 375 375 ir->get_key = get_key_haup_xvr; 376 - rc_type = RC_BIT_RC5 | RC_BIT_RC6_MCE | RC_BIT_RC6_6A_32; 376 + rc_proto = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | 377 + RC_PROTO_BIT_RC6_6A_32; 377 378 ir_codes = RC_MAP_HAUPPAUGE; 378 379 break; 379 380 } ··· 389 388 390 389 name = init_data->name; 391 390 if (init_data->type) 392 - rc_type = init_data->type; 391 + rc_proto = init_data->type; 393 392 394 393 if (init_data->polling_interval) 395 394 ir->polling_interval = init_data->polling_interval; ··· 432 431 ir->rc = rc; 433 432 434 433 /* Make sure we are all setup before going on */ 435 - if (!name || !ir->get_key || !rc_type || !ir_codes) { 434 + if (!name || !ir->get_key || !rc_proto || !ir_codes) { 436 435 dprintk(1, ": Unsupported device at address 0x%02x\n", 437 436 addr); 438 437 err = -ENODEV; ··· 459 458 * Initialize the other fields of rc_dev 460 459 */ 461 460 rc->map_name = ir->ir_codes; 462 - rc->allowed_protocols = rc_type; 463 - rc->enabled_protocols = rc_type; 461 + rc->allowed_protocols = rc_proto; 462 + rc->enabled_protocols = rc_proto; 464 463 if (!rc->driver_name) 465 464 rc->driver_name = MODULE_NAME; 466 465
+9 -7
drivers/media/pci/bt8xx/bttv-input.c
··· 69 69 70 70 if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || 71 71 (ir->mask_keyup && !(gpio & ir->mask_keyup))) { 72 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 72 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 0); 73 73 } else { 74 74 /* HACK: Probably, ir->mask_keydown is missing 75 75 for this board */ 76 76 if (btv->c.type == BTTV_BOARD_WINFAST2000) 77 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 77 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 78 + 0); 78 79 79 80 rc_keyup(ir->dev); 80 81 } ··· 100 99 gpio, data, 101 100 (gpio & ir->mask_keyup) ? " up" : "up/down"); 102 101 103 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 102 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 0); 104 103 if (keyup) 105 104 rc_keyup(ir->dev); 106 105 } else { ··· 114 113 if (keyup) 115 114 rc_keyup(ir->dev); 116 115 else 117 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 116 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 117 + 0); 118 118 } 119 119 120 120 ir->last_gpio = data | keyup; ··· 237 235 } 238 236 239 237 scancode = RC_SCANCODE_RC5(system, command); 240 - rc_keydown(ir->dev, RC_TYPE_RC5, scancode, toggle); 238 + rc_keydown(ir->dev, RC_PROTO_RC5, scancode, toggle); 241 239 dprintk("scancode %x, toggle %x\n", scancode, toggle); 242 240 } 243 241 ··· 329 327 * Get_key functions used by I2C remotes 330 328 */ 331 329 332 - static int get_key_pv951(struct IR_i2c *ir, enum rc_type *protocol, 330 + static int get_key_pv951(struct IR_i2c *ir, enum rc_proto *protocol, 333 331 u32 *scancode, u8 *toggle) 334 332 { 335 333 unsigned char b; ··· 357 355 * the device is bound to the vendor-provided RC. 358 356 */ 359 357 360 - *protocol = RC_TYPE_UNKNOWN; 358 + *protocol = RC_PROTO_UNKNOWN; 361 359 *scancode = b; 362 360 *toggle = 0; 363 361 return 1;
+2 -2
drivers/media/pci/cx18/cx18-i2c.c
··· 93 93 case CX18_HW_Z8F0811_IR_RX_HAUP: 94 94 init_data->ir_codes = RC_MAP_HAUPPAUGE; 95 95 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 96 - init_data->type = RC_BIT_RC5 | RC_BIT_RC6_MCE | 97 - RC_BIT_RC6_6A_32; 96 + init_data->type = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | 97 + RC_PROTO_BIT_RC6_6A_32; 98 98 init_data->name = cx->card_name; 99 99 info.platform_data = init_data; 100 100 break;
+7 -7
drivers/media/pci/cx23885/cx23885-input.c
··· 284 284 case CX23885_BOARD_HAUPPAUGE_HVR1290: 285 285 case CX23885_BOARD_HAUPPAUGE_HVR1250: 286 286 /* Integrated CX2388[58] IR controller */ 287 - allowed_protos = RC_BIT_ALL_IR_DECODER; 287 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 288 288 /* The grey Hauppauge RC-5 remote */ 289 289 rc_map = RC_MAP_HAUPPAUGE; 290 290 break; 291 291 case CX23885_BOARD_TERRATEC_CINERGY_T_PCIE_DUAL: 292 292 /* Integrated CX23885 IR controller */ 293 - allowed_protos = RC_BIT_ALL_IR_DECODER; 293 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 294 294 /* The grey Terratec remote with orange buttons */ 295 295 rc_map = RC_MAP_NEC_TERRATEC_CINERGY_XS; 296 296 break; 297 297 case CX23885_BOARD_TEVII_S470: 298 298 /* Integrated CX23885 IR controller */ 299 - allowed_protos = RC_BIT_ALL_IR_DECODER; 299 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 300 300 /* A guess at the remote */ 301 301 rc_map = RC_MAP_TEVII_NEC; 302 302 break; 303 303 case CX23885_BOARD_MYGICA_X8507: 304 304 /* Integrated CX23885 IR controller */ 305 - allowed_protos = RC_BIT_ALL_IR_DECODER; 305 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 306 306 /* A guess at the remote */ 307 307 rc_map = RC_MAP_TOTAL_MEDIA_IN_HAND_02; 308 308 break; 309 309 case CX23885_BOARD_TBS_6980: 310 310 case CX23885_BOARD_TBS_6981: 311 311 /* Integrated CX23885 IR controller */ 312 - allowed_protos = RC_BIT_ALL_IR_DECODER; 312 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 313 313 /* A guess at the remote */ 314 314 rc_map = RC_MAP_TBS_NEC; 315 315 break; ··· 320 320 case CX23885_BOARD_DVBSKY_S952: 321 321 case CX23885_BOARD_DVBSKY_T982: 322 322 /* Integrated CX23885 IR controller */ 323 - allowed_protos = RC_BIT_ALL_IR_DECODER; 323 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 324 324 rc_map = RC_MAP_DVBSKY; 325 325 break; 326 326 case CX23885_BOARD_TT_CT2_4500_CI: 327 327 /* Integrated CX23885 IR controller */ 328 - allowed_protos = RC_BIT_ALL_IR_DECODER; 328 + allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 329 329 rc_map = RC_MAP_TT_1500; 330 330 break; 331 331 default:
+15 -13
drivers/media/pci/cx88/cx88-input.c
··· 132 132 133 133 data = (data << 4) | ((gpio_key & 0xf0) >> 4); 134 134 135 - rc_keydown(ir->dev, RC_TYPE_UNKNOWN, data, 0); 135 + rc_keydown(ir->dev, RC_PROTO_UNKNOWN, data, 0); 136 136 137 137 } else if (ir->core->boardnr == CX88_BOARD_PROLINK_PLAYTVPVR || 138 138 ir->core->boardnr == CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO) { ··· 146 146 scancode = RC_SCANCODE_NECX(addr, cmd); 147 147 148 148 if (0 == (gpio & ir->mask_keyup)) 149 - rc_keydown_notimeout(ir->dev, RC_TYPE_NECX, scancode, 149 + rc_keydown_notimeout(ir->dev, RC_PROTO_NECX, scancode, 150 150 0); 151 151 else 152 152 rc_keyup(ir->dev); ··· 154 154 } else if (ir->mask_keydown) { 155 155 /* bit set on keydown */ 156 156 if (gpio & ir->mask_keydown) 157 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 157 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 158 + 0); 158 159 else 159 160 rc_keyup(ir->dev); 160 161 161 162 } else if (ir->mask_keyup) { 162 163 /* bit cleared on keydown */ 163 164 if (0 == (gpio & ir->mask_keyup)) 164 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 165 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 166 + 0); 165 167 else 166 168 rc_keyup(ir->dev); 167 169 168 170 } else { 169 171 /* can't distinguish keydown/up :-/ */ 170 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 172 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 0); 171 173 rc_keyup(ir->dev); 172 174 } 173 175 } ··· 269 267 struct cx88_IR *ir; 270 268 struct rc_dev *dev; 271 269 char *ir_codes = NULL; 272 - u64 rc_type = RC_BIT_OTHER; 270 + u64 rc_proto = RC_PROTO_BIT_OTHER; 273 271 int err = -ENOMEM; 274 272 u32 hardware_mask = 0; /* For devices with a hardware mask, when 275 273 * used with a full-code IR table ··· 350 348 * 002-T mini RC, provided with newer PV hardware 351 349 */ 352 350 ir_codes = RC_MAP_PIXELVIEW_MK12; 353 - rc_type = RC_BIT_NECX; 351 + rc_proto = RC_PROTO_BIT_NECX; 354 352 ir->gpio_addr = MO_GP1_IO; 355 353 ir->mask_keyup = 0x80; 356 354 ir->polling = 10; /* ms */ ··· 489 487 dev->timeout = 10 * 1000 * 1000; /* 10 ms */ 490 488 } else { 491 489 dev->driver_type = RC_DRIVER_SCANCODE; 492 - dev->allowed_protocols = rc_type; 490 + dev->allowed_protocols = rc_proto; 493 491 } 494 492 495 493 ir->core = core; ··· 559 557 ir_raw_event_handle(ir->dev); 560 558 } 561 559 562 - static int get_key_pvr2000(struct IR_i2c *ir, enum rc_type *protocol, 560 + static int get_key_pvr2000(struct IR_i2c *ir, enum rc_proto *protocol, 563 561 u32 *scancode, u8 *toggle) 564 562 { 565 563 int flags, code; ··· 584 582 dprintk("IR Key/Flags: (0x%02x/0x%02x)\n", 585 583 code & 0xff, flags & 0xff); 586 584 587 - *protocol = RC_TYPE_UNKNOWN; 585 + *protocol = RC_PROTO_UNKNOWN; 588 586 *scancode = code & 0xff; 589 587 *toggle = 0; 590 588 return 1; ··· 614 612 case CX88_BOARD_LEADTEK_PVR2000: 615 613 addr_list = pvr2000_addr_list; 616 614 core->init_data.name = "cx88 Leadtek PVR 2000 remote"; 617 - core->init_data.type = RC_BIT_UNKNOWN; 615 + core->init_data.type = RC_PROTO_BIT_UNKNOWN; 618 616 core->init_data.get_key = get_key_pvr2000; 619 617 core->init_data.ir_codes = RC_MAP_EMPTY; 620 618 break; ··· 635 633 /* Hauppauge XVR */ 636 634 core->init_data.name = "cx88 Hauppauge XVR remote"; 637 635 core->init_data.ir_codes = RC_MAP_HAUPPAUGE; 638 - core->init_data.type = RC_BIT_RC5 | RC_BIT_RC6_MCE | 639 - RC_BIT_RC6_6A_32; 636 + core->init_data.type = RC_PROTO_BIT_RC5 | 637 + RC_PROTO_BIT_RC6_MCE | RC_PROTO_BIT_RC6_6A_32; 640 638 core->init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 641 639 642 640 info.platform_data = &core->init_data;
+1 -1
drivers/media/pci/dm1105/dm1105.c
··· 675 675 data = (ircom >> 8) & 0x7f; 676 676 677 677 /* FIXME: UNKNOWN because we don't generate a full NEC scancode (yet?) */ 678 - rc_keydown(ir->dev, RC_TYPE_UNKNOWN, data, 0); 678 + rc_keydown(ir->dev, RC_PROTO_UNKNOWN, data, 0); 679 679 } 680 680 681 681 /* work handler */
+7 -7
drivers/media/pci/ivtv/ivtv-i2c.c
··· 148 148 "ir_video", /* IVTV_HW_I2C_IR_RX_ADAPTEC */ 149 149 }; 150 150 151 - static int get_key_adaptec(struct IR_i2c *ir, enum rc_type *protocol, 151 + static int get_key_adaptec(struct IR_i2c *ir, enum rc_proto *protocol, 152 152 u32 *scancode, u8 *toggle) 153 153 { 154 154 unsigned char keybuf[4]; ··· 168 168 keybuf[2] &= 0x7f; 169 169 keybuf[3] |= 0x80; 170 170 171 - *protocol = RC_TYPE_UNKNOWN; 171 + *protocol = RC_PROTO_UNKNOWN; 172 172 *scancode = keybuf[3] | keybuf[2] << 8 | keybuf[1] << 16 |keybuf[0] << 24; 173 173 *toggle = 0; 174 174 return 1; ··· 201 201 init_data->ir_codes = RC_MAP_AVERMEDIA_CARDBUS; 202 202 init_data->internal_get_key_func = 203 203 IR_KBD_GET_KEY_AVERMEDIA_CARDBUS; 204 - init_data->type = RC_BIT_OTHER; 204 + init_data->type = RC_PROTO_BIT_OTHER; 205 205 init_data->name = "AVerMedia AVerTV card"; 206 206 break; 207 207 case IVTV_HW_I2C_IR_RX_HAUP_EXT: 208 208 case IVTV_HW_I2C_IR_RX_HAUP_INT: 209 209 init_data->ir_codes = RC_MAP_HAUPPAUGE; 210 210 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP; 211 - init_data->type = RC_BIT_RC5; 211 + init_data->type = RC_PROTO_BIT_RC5; 212 212 init_data->name = itv->card_name; 213 213 break; 214 214 case IVTV_HW_Z8F0811_IR_RX_HAUP: 215 215 /* Default to grey remote */ 216 216 init_data->ir_codes = RC_MAP_HAUPPAUGE; 217 217 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 218 - init_data->type = RC_BIT_RC5 | RC_BIT_RC6_MCE | 219 - RC_BIT_RC6_6A_32; 218 + init_data->type = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | 219 + RC_PROTO_BIT_RC6_6A_32; 220 220 init_data->name = itv->card_name; 221 221 break; 222 222 case IVTV_HW_I2C_IR_RX_ADAPTEC: ··· 224 224 init_data->name = itv->card_name; 225 225 /* FIXME: The protocol and RC_MAP needs to be corrected */ 226 226 init_data->ir_codes = RC_MAP_EMPTY; 227 - init_data->type = RC_BIT_UNKNOWN; 227 + init_data->type = RC_PROTO_BIT_UNKNOWN; 228 228 break; 229 229 } 230 230
+1 -1
drivers/media/pci/mantis/mantis_input.c
··· 31 31 void mantis_input_process(struct mantis_pci *mantis, int scancode) 32 32 { 33 33 if (mantis->rc) 34 - rc_keydown(mantis->rc, RC_TYPE_UNKNOWN, scancode, 0); 34 + rc_keydown(mantis->rc, RC_PROTO_UNKNOWN, scancode, 0); 35 35 } 36 36 37 37 int mantis_input_init(struct mantis_pci *mantis)
+25 -21
drivers/media/pci/saa7134/saa7134-input.c
··· 83 83 if (data == ir->mask_keycode) 84 84 rc_keyup(ir->dev); 85 85 else 86 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 86 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 87 + 0); 87 88 return 0; 88 89 } 89 90 90 91 if (ir->polling) { 91 92 if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || 92 93 (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { 93 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 94 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 95 + 0); 94 96 } else { 95 97 rc_keyup(ir->dev); 96 98 } ··· 100 98 else { /* IRQ driven mode - handle key press and release in one go */ 101 99 if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || 102 100 (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { 103 - rc_keydown_notimeout(ir->dev, RC_TYPE_UNKNOWN, data, 0); 101 + rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 102 + 0); 104 103 rc_keyup(ir->dev); 105 104 } 106 105 } ··· 111 108 112 109 /* --------------------- Chip specific I2C key builders ----------------- */ 113 110 114 - static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol, 111 + static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_proto *protocol, 115 112 u32 *scancode, u8 *toggle) 116 113 { 117 114 int gpio; ··· 157 154 return -EIO; 158 155 } 159 156 160 - *protocol = RC_TYPE_UNKNOWN; 157 + *protocol = RC_PROTO_UNKNOWN; 161 158 *scancode = b; 162 159 *toggle = 0; 163 160 return 1; 164 161 } 165 162 166 - static int get_key_msi_tvanywhere_plus(struct IR_i2c *ir, enum rc_type *protocol, 163 + static int get_key_msi_tvanywhere_plus(struct IR_i2c *ir, 164 + enum rc_proto *protocol, 167 165 u32 *scancode, u8 *toggle) 168 166 { 169 167 unsigned char b; ··· 205 201 /* Button pressed */ 206 202 207 203 input_dbg("get_key_msi_tvanywhere_plus: Key = 0x%02X\n", b); 208 - *protocol = RC_TYPE_UNKNOWN; 204 + *protocol = RC_PROTO_UNKNOWN; 209 205 *scancode = b; 210 206 *toggle = 0; 211 207 return 1; 212 208 } 213 209 214 210 /* copied and modified from get_key_msi_tvanywhere_plus() */ 215 - static int get_key_kworld_pc150u(struct IR_i2c *ir, enum rc_type *protocol, 211 + static int get_key_kworld_pc150u(struct IR_i2c *ir, enum rc_proto *protocol, 216 212 u32 *scancode, u8 *toggle) 217 213 { 218 214 unsigned char b; ··· 253 249 /* Button pressed */ 254 250 255 251 input_dbg("get_key_kworld_pc150u: Key = 0x%02X\n", b); 256 - *protocol = RC_TYPE_UNKNOWN; 252 + *protocol = RC_PROTO_UNKNOWN; 257 253 *scancode = b; 258 254 *toggle = 0; 259 255 return 1; 260 256 } 261 257 262 - static int get_key_purpletv(struct IR_i2c *ir, enum rc_type *protocol, 258 + static int get_key_purpletv(struct IR_i2c *ir, enum rc_proto *protocol, 263 259 u32 *scancode, u8 *toggle) 264 260 { 265 261 unsigned char b; ··· 278 274 if (b & 0x80) 279 275 return 1; 280 276 281 - *protocol = RC_TYPE_UNKNOWN; 277 + *protocol = RC_PROTO_UNKNOWN; 282 278 *scancode = b; 283 279 *toggle = 0; 284 280 return 1; 285 281 } 286 282 287 - static int get_key_hvr1110(struct IR_i2c *ir, enum rc_type *protocol, 283 + static int get_key_hvr1110(struct IR_i2c *ir, enum rc_proto *protocol, 288 284 u32 *scancode, u8 *toggle) 289 285 { 290 286 unsigned char buf[5]; ··· 308 304 * 309 305 * FIXME: start bits could maybe be used...? 310 306 */ 311 - *protocol = RC_TYPE_RC5; 307 + *protocol = RC_PROTO_RC5; 312 308 *scancode = RC_SCANCODE_RC5(buf[3] & 0x1f, buf[4] >> 2); 313 309 *toggle = !!(buf[3] & 0x40); 314 310 return 1; 315 311 } 316 312 317 313 318 - static int get_key_beholdm6xx(struct IR_i2c *ir, enum rc_type *protocol, 314 + static int get_key_beholdm6xx(struct IR_i2c *ir, enum rc_proto *protocol, 319 315 u32 *scancode, u8 *toggle) 320 316 { 321 317 unsigned char data[12]; ··· 342 338 if (data[9] != (unsigned char)(~data[8])) 343 339 return 0; 344 340 345 - *protocol = RC_TYPE_NECX; 341 + *protocol = RC_PROTO_NECX; 346 342 *scancode = RC_SCANCODE_NECX(data[11] << 8 | data[10], data[9]); 347 343 *toggle = 0; 348 344 return 1; ··· 351 347 /* Common (grey or coloured) pinnacle PCTV remote handling 352 348 * 353 349 */ 354 - static int get_key_pinnacle(struct IR_i2c *ir, enum rc_type *protocol, 350 + static int get_key_pinnacle(struct IR_i2c *ir, enum rc_proto *protocol, 355 351 u32 *scancode, u8 *toggle, int parity_offset, 356 352 int marker, int code_modulo) 357 353 { ··· 388 384 389 385 code %= code_modulo; 390 386 391 - *protocol = RC_TYPE_UNKNOWN; 387 + *protocol = RC_PROTO_UNKNOWN; 392 388 *scancode = code; 393 389 *toggle = 0; 394 390 ··· 405 401 * 406 402 * Sylvain Pasche <sylvain.pasche@gmail.com> 407 403 */ 408 - static int get_key_pinnacle_grey(struct IR_i2c *ir, enum rc_type *protocol, 404 + static int get_key_pinnacle_grey(struct IR_i2c *ir, enum rc_proto *protocol, 409 405 u32 *scancode, u8 *toggle) 410 406 { 411 407 ··· 417 413 * 418 414 * Ricardo Cerqueira <v4l@cerqueira.org> 419 415 */ 420 - static int get_key_pinnacle_color(struct IR_i2c *ir, enum rc_type *protocol, 416 + static int get_key_pinnacle_color(struct IR_i2c *ir, enum rc_proto *protocol, 421 417 u32 *scancode, u8 *toggle) 422 418 { 423 419 /* code_modulo parameter (0x88) is used to reduce code value to fit inside IR_KEYTAB_SIZE ··· 862 858 rc->close = saa7134_ir_close; 863 859 if (raw_decode) { 864 860 rc->driver_type = RC_DRIVER_IR_RAW; 865 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 861 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 866 862 } 867 863 868 864 rc->device_name = ir->name; ··· 1026 1022 dev->init_data.name = "BeholdTV"; 1027 1023 dev->init_data.get_key = get_key_beholdm6xx; 1028 1024 dev->init_data.ir_codes = RC_MAP_BEHOLD; 1029 - dev->init_data.type = RC_BIT_NECX; 1025 + dev->init_data.type = RC_PROTO_BIT_NECX; 1030 1026 info.addr = 0x2d; 1031 1027 break; 1032 1028 case SAA7134_BOARD_AVERMEDIA_CARDBUS_501:
+1 -1
drivers/media/pci/smipcie/smipcie-ir.c
··· 144 144 rc5_system = (dwIRCode & 0x7C0) >> 6; 145 145 toggle = (dwIRCode & 0x800) ? 1 : 0; 146 146 scancode = rc5_system << 8 | rc5_command; 147 - rc_keydown(rc_dev, RC_TYPE_RC5, scancode, toggle); 147 + rc_keydown(rc_dev, RC_PROTO_RC5, scancode, toggle); 148 148 } 149 149 } 150 150 end_ir_decode:
+3 -2
drivers/media/pci/ttpci/budget-ci.c
··· 158 158 return; 159 159 160 160 if (budget_ci->ir.full_rc5) { 161 - rc_keydown(dev, RC_TYPE_RC5, 161 + rc_keydown(dev, RC_PROTO_RC5, 162 162 RC_SCANCODE_RC5(budget_ci->ir.rc5_device, budget_ci->ir.ir_key), 163 163 !!(command & 0x20)); 164 164 return; 165 165 } 166 166 167 167 /* FIXME: We should generate complete scancodes for all devices */ 168 - rc_keydown(dev, RC_TYPE_UNKNOWN, budget_ci->ir.ir_key, !!(command & 0x20)); 168 + rc_keydown(dev, RC_PROTO_UNKNOWN, budget_ci->ir.ir_key, 169 + !!(command & 0x20)); 169 170 } 170 171 171 172 static int msp430_ir_init(struct budget_ci *budget_ci)
+3 -2
drivers/media/rc/ati_remote.c
··· 622 622 * it would cause ghost repeats which would be a 623 623 * regression for this driver. 624 624 */ 625 - rc_keydown_notimeout(ati_remote->rdev, RC_TYPE_OTHER, 625 + rc_keydown_notimeout(ati_remote->rdev, 626 + RC_PROTO_OTHER, 626 627 scancode, data[2]); 627 628 rc_keyup(ati_remote->rdev); 628 629 } ··· 761 760 struct rc_dev *rdev = ati_remote->rdev; 762 761 763 762 rdev->priv = ati_remote; 764 - rdev->allowed_protocols = RC_BIT_OTHER; 763 + rdev->allowed_protocols = RC_PROTO_BIT_OTHER; 765 764 rdev->driver_name = "ati_remote"; 766 765 767 766 rdev->open = ati_remote_rc_open;
+1 -1
drivers/media/rc/ene_ir.c
··· 1053 1053 if (!dev->hw_learning_and_tx_capable) 1054 1054 learning_mode_force = false; 1055 1055 1056 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 1056 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 1057 1057 rdev->priv = dev; 1058 1058 rdev->open = ene_open; 1059 1059 rdev->close = ene_close;
+1 -1
drivers/media/rc/fintek-cir.c
··· 529 529 530 530 /* Set up the rc device */ 531 531 rdev->priv = fintek; 532 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 532 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 533 533 rdev->open = fintek_open; 534 534 rdev->close = fintek_close; 535 535 rdev->device_name = FINTEK_DESCRIPTION;
+1 -1
drivers/media/rc/gpio-ir-recv.c
··· 143 143 if (pdata->allowed_protos) 144 144 rcdev->allowed_protocols = pdata->allowed_protos; 145 145 else 146 - rcdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 146 + rcdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 147 147 rcdev->map_name = pdata->map_name ?: RC_MAP_EMPTY; 148 148 149 149 gpio_dev->rcdev = rcdev;
+5 -4
drivers/media/rc/igorplugusb.c
··· 202 202 * This device can only store 36 pulses + spaces, which is not enough 203 203 * for the NEC protocol and many others. 204 204 */ 205 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER & ~(RC_BIT_NEC | 206 - RC_BIT_NECX | RC_BIT_NEC32 | RC_BIT_RC6_6A_20 | 207 - RC_BIT_RC6_6A_24 | RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE | 208 - RC_BIT_SONY20 | RC_BIT_SANYO); 205 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER & 206 + ~(RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32 | 207 + RC_PROTO_BIT_RC6_6A_20 | RC_PROTO_BIT_RC6_6A_24 | 208 + RC_PROTO_BIT_RC6_6A_32 | RC_PROTO_BIT_RC6_MCE | 209 + RC_PROTO_BIT_SONY20 | RC_PROTO_BIT_SANYO); 209 210 210 211 rc->priv = ir; 211 212 rc->driver_name = DRIVER_NAME;
+1 -1
drivers/media/rc/iguanair.c
··· 491 491 rc->input_phys = ir->phys; 492 492 usb_to_input_id(ir->udev, &rc->input_id); 493 493 rc->dev.parent = &intf->dev; 494 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 494 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 495 495 rc->priv = ir; 496 496 rc->open = iguanair_open; 497 497 rc->close = iguanair_close;
+2 -2
drivers/media/rc/img-ir/img-ir-hw.c
··· 589 589 /* clear the wakeup scancode filter */ 590 590 rdev->scancode_wakeup_filter.data = 0; 591 591 rdev->scancode_wakeup_filter.mask = 0; 592 - rdev->wakeup_protocol = RC_TYPE_UNKNOWN; 592 + rdev->wakeup_protocol = RC_PROTO_UNKNOWN; 593 593 594 594 /* clear raw filters */ 595 595 _img_ir_set_filter(priv, NULL); ··· 823 823 int ret = IMG_IR_SCANCODE; 824 824 struct img_ir_scancode_req request; 825 825 826 - request.protocol = RC_TYPE_UNKNOWN; 826 + request.protocol = RC_PROTO_UNKNOWN; 827 827 request.toggle = 0; 828 828 829 829 if (dec->scancode)
+2 -2
drivers/media/rc/img-ir/img-ir-hw.h
··· 135 135 /** 136 136 * struct img_ir_scancode_req - Scancode request data. 137 137 * @protocol: Protocol code of received message (defaults to 138 - * RC_TYPE_UNKNOWN). 138 + * RC_PROTO_UNKNOWN). 139 139 * @scancode: Scan code of received message (must be written by 140 140 * handler if IMG_IR_SCANCODE is returned). 141 141 * @toggle: Toggle bit (defaults to 0). 142 142 */ 143 143 struct img_ir_scancode_req { 144 - enum rc_type protocol; 144 + enum rc_proto protocol; 145 145 u32 scancode; 146 146 u8 toggle; 147 147 };
+2 -2
drivers/media/rc/img-ir/img-ir-jvc.c
··· 23 23 cust = (raw >> 0) & 0xff; 24 24 data = (raw >> 8) & 0xff; 25 25 26 - request->protocol = RC_TYPE_JVC; 26 + request->protocol = RC_PROTO_JVC; 27 27 request->scancode = cust << 8 | data; 28 28 return IMG_IR_SCANCODE; 29 29 } ··· 52 52 * http://support.jvc.com/consumer/support/documents/RemoteCodes.pdf 53 53 */ 54 54 struct img_ir_decoder img_ir_jvc = { 55 - .type = RC_BIT_JVC, 55 + .type = RC_PROTO_BIT_JVC, 56 56 .control = { 57 57 .decoden = 1, 58 58 .code_type = IMG_IR_CODETYPE_PULSEDIST,
+10 -10
drivers/media/rc/img-ir/img-ir-nec.c
··· 35 35 bitrev8(addr_inv) << 16 | 36 36 bitrev8(data) << 8 | 37 37 bitrev8(data_inv); 38 - request->protocol = RC_TYPE_NEC32; 38 + request->protocol = RC_PROTO_NEC32; 39 39 } else if ((addr_inv ^ addr) != 0xff) { 40 40 /* Extended NEC */ 41 41 /* scan encoding: AAaaDD */ 42 42 request->scancode = addr << 16 | 43 43 addr_inv << 8 | 44 44 data; 45 - request->protocol = RC_TYPE_NECX; 45 + request->protocol = RC_PROTO_NECX; 46 46 } else { 47 47 /* Normal NEC */ 48 48 /* scan encoding: AADD */ 49 49 request->scancode = addr << 8 | 50 50 data; 51 - request->protocol = RC_TYPE_NEC; 51 + request->protocol = RC_PROTO_NEC; 52 52 } 53 53 return IMG_IR_SCANCODE; 54 54 } ··· 63 63 data = in->data & 0xff; 64 64 data_m = in->mask & 0xff; 65 65 66 - protocols &= RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32; 66 + protocols &= RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32; 67 67 68 68 /* 69 69 * If only one bit is set, we were requested to do an exact ··· 72 72 */ 73 73 if (!is_power_of_2(protocols)) { 74 74 if ((in->data | in->mask) & 0xff000000) 75 - protocols = RC_BIT_NEC32; 75 + protocols = RC_PROTO_BIT_NEC32; 76 76 else if ((in->data | in->mask) & 0x00ff0000) 77 - protocols = RC_BIT_NECX; 77 + protocols = RC_PROTO_BIT_NECX; 78 78 else 79 - protocols = RC_BIT_NEC; 79 + protocols = RC_PROTO_BIT_NEC; 80 80 } 81 81 82 - if (protocols == RC_BIT_NEC32) { 82 + if (protocols == RC_PROTO_BIT_NEC32) { 83 83 /* 32-bit NEC (used by Apple and TiVo remotes) */ 84 84 /* scan encoding: as transmitted, MSBit = first received bit */ 85 85 addr = bitrev8(in->data >> 24); ··· 90 90 data_m = bitrev8(in->mask >> 8); 91 91 data_inv = bitrev8(in->data >> 0); 92 92 data_inv_m = bitrev8(in->mask >> 0); 93 - } else if (protocols == RC_BIT_NECX) { 93 + } else if (protocols == RC_PROTO_BIT_NECX) { 94 94 /* Extended NEC */ 95 95 /* scan encoding AAaaDD */ 96 96 addr = (in->data >> 16) & 0xff; ··· 128 128 * http://wiki.altium.com/display/ADOH/NEC+Infrared+Transmission+Protocol 129 129 */ 130 130 struct img_ir_decoder img_ir_nec = { 131 - .type = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32, 131 + .type = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32, 132 132 .control = { 133 133 .decoden = 1, 134 134 .code_type = IMG_IR_CODETYPE_PULSEDIST,
+2 -2
drivers/media/rc/img-ir/img-ir-rc5.c
··· 33 33 if (!start) 34 34 return -EINVAL; 35 35 36 - request->protocol = RC_TYPE_RC5; 36 + request->protocol = RC_PROTO_RC5; 37 37 request->scancode = addr << 8 | cmd; 38 38 request->toggle = tgl; 39 39 return IMG_IR_SCANCODE; ··· 52 52 * see http://www.sbprojects.com/knowledge/ir/rc5.php 53 53 */ 54 54 struct img_ir_decoder img_ir_rc5 = { 55 - .type = RC_BIT_RC5, 55 + .type = RC_PROTO_BIT_RC5, 56 56 .control = { 57 57 .bitoriend2 = 1, 58 58 .code_type = IMG_IR_CODETYPE_BIPHASE,
+2 -2
drivers/media/rc/img-ir/img-ir-rc6.c
··· 54 54 if (mode) 55 55 return -EINVAL; 56 56 57 - request->protocol = RC_TYPE_RC6_0; 57 + request->protocol = RC_PROTO_RC6_0; 58 58 request->scancode = addr << 8 | cmd; 59 59 request->toggle = trl2; 60 60 return IMG_IR_SCANCODE; ··· 73 73 * see http://www.sbprojects.com/knowledge/ir/rc6.php 74 74 */ 75 75 struct img_ir_decoder img_ir_rc6 = { 76 - .type = RC_BIT_RC6_0, 76 + .type = RC_PROTO_BIT_RC6_0, 77 77 .control = { 78 78 .bitorien = 1, 79 79 .code_type = IMG_IR_CODETYPE_BIPHASE,
+2 -2
drivers/media/rc/img-ir/img-ir-sanyo.c
··· 44 44 return -EINVAL; 45 45 46 46 /* Normal Sanyo */ 47 - request->protocol = RC_TYPE_SANYO; 47 + request->protocol = RC_PROTO_SANYO; 48 48 request->scancode = addr << 8 | data; 49 49 return IMG_IR_SCANCODE; 50 50 } ··· 80 80 81 81 /* Sanyo decoder */ 82 82 struct img_ir_decoder img_ir_sanyo = { 83 - .type = RC_BIT_SANYO, 83 + .type = RC_PROTO_BIT_SANYO, 84 84 .control = { 85 85 .decoden = 1, 86 86 .code_type = IMG_IR_CODETYPE_PULSEDIST,
+2 -2
drivers/media/rc/img-ir/img-ir-sharp.c
··· 32 32 /* probably the second half of the message */ 33 33 return -EINVAL; 34 34 35 - request->protocol = RC_TYPE_SHARP; 35 + request->protocol = RC_PROTO_SHARP; 36 36 request->scancode = addr << 8 | cmd; 37 37 return IMG_IR_SCANCODE; 38 38 } ··· 73 73 * See also http://www.sbprojects.com/knowledge/ir/sharp.php 74 74 */ 75 75 struct img_ir_decoder img_ir_sharp = { 76 - .type = RC_BIT_SHARP, 76 + .type = RC_PROTO_BIT_SHARP, 77 77 .control = { 78 78 .decoden = 0, 79 79 .decodend2 = 1,
+14 -13
drivers/media/rc/img-ir/img-ir-sony.c
··· 19 19 20 20 switch (len) { 21 21 case 12: 22 - if (!(enabled_protocols & RC_BIT_SONY12)) 22 + if (!(enabled_protocols & RC_PROTO_BIT_SONY12)) 23 23 return -EINVAL; 24 24 func = raw & 0x7f; /* first 7 bits */ 25 25 raw >>= 7; 26 26 dev = raw & 0x1f; /* next 5 bits */ 27 27 subdev = 0; 28 - request->protocol = RC_TYPE_SONY12; 28 + request->protocol = RC_PROTO_SONY12; 29 29 break; 30 30 case 15: 31 - if (!(enabled_protocols & RC_BIT_SONY15)) 31 + if (!(enabled_protocols & RC_PROTO_BIT_SONY15)) 32 32 return -EINVAL; 33 33 func = raw & 0x7f; /* first 7 bits */ 34 34 raw >>= 7; 35 35 dev = raw & 0xff; /* next 8 bits */ 36 36 subdev = 0; 37 - request->protocol = RC_TYPE_SONY15; 37 + request->protocol = RC_PROTO_SONY15; 38 38 break; 39 39 case 20: 40 - if (!(enabled_protocols & RC_BIT_SONY20)) 40 + if (!(enabled_protocols & RC_PROTO_BIT_SONY20)) 41 41 return -EINVAL; 42 42 func = raw & 0x7f; /* first 7 bits */ 43 43 raw >>= 7; 44 44 dev = raw & 0x1f; /* next 5 bits */ 45 45 raw >>= 5; 46 46 subdev = raw & 0xff; /* next 8 bits */ 47 - request->protocol = RC_TYPE_SONY20; 47 + request->protocol = RC_PROTO_SONY20; 48 48 break; 49 49 default: 50 50 return -EINVAL; ··· 68 68 func = (in->data >> 0) & 0x7f; 69 69 func_m = (in->mask >> 0) & 0x7f; 70 70 71 - protocols &= RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20; 71 + protocols &= RC_PROTO_BIT_SONY12 | RC_PROTO_BIT_SONY15 | 72 + RC_PROTO_BIT_SONY20; 72 73 73 74 /* 74 75 * If only one bit is set, we were requested to do an exact ··· 78 77 */ 79 78 if (!is_power_of_2(protocols)) { 80 79 if (subdev & subdev_m) 81 - protocols = RC_BIT_SONY20; 80 + protocols = RC_PROTO_BIT_SONY20; 82 81 else if (dev & dev_m & 0xe0) 83 - protocols = RC_BIT_SONY15; 82 + protocols = RC_PROTO_BIT_SONY15; 84 83 else 85 - protocols = RC_BIT_SONY12; 84 + protocols = RC_PROTO_BIT_SONY12; 86 85 } 87 86 88 - if (protocols == RC_BIT_SONY20) { 87 + if (protocols == RC_PROTO_BIT_SONY20) { 89 88 /* can't encode subdev and higher device bits */ 90 89 if (dev & dev_m & 0xe0) 91 90 return -EINVAL; 92 91 len = 20; 93 92 dev_m &= 0x1f; 94 - } else if (protocols == RC_BIT_SONY15) { 93 + } else if (protocols == RC_PROTO_BIT_SONY15) { 95 94 len = 15; 96 95 subdev_m = 0; 97 96 } else { ··· 129 128 * http://picprojects.org.uk/projects/sirc/sonysirc.pdf 130 129 */ 131 130 struct img_ir_decoder img_ir_sony = { 132 - .type = RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20, 131 + .type = RC_PROTO_BIT_SONY12 | RC_PROTO_BIT_SONY15 | RC_PROTO_BIT_SONY20, 133 132 .control = { 134 133 .decoden = 1, 135 134 .code_type = IMG_IR_CODETYPE_PULSELEN,
+25 -24
drivers/media/rc/imon.c
··· 148 148 u32 last_keycode; /* last reported input keycode */ 149 149 u32 rc_scancode; /* the computed remote scancode */ 150 150 u8 rc_toggle; /* the computed remote toggle bit */ 151 - u64 rc_type; /* iMON or MCE (RC6) IR protocol? */ 151 + u64 rc_proto; /* iMON or MCE (RC6) IR protocol? */ 152 152 bool release_code; /* some keys send a release code */ 153 153 154 154 u8 display_type; /* store the display type */ ··· 1118 1118 * it is not, so we must acquire it prior to calling send_packet, which 1119 1119 * requires that the lock is held. 1120 1120 */ 1121 - static int imon_ir_change_protocol(struct rc_dev *rc, u64 *rc_type) 1121 + static int imon_ir_change_protocol(struct rc_dev *rc, u64 *rc_proto) 1122 1122 { 1123 1123 int retval; 1124 1124 struct imon_context *ictx = rc->priv; ··· 1127 1127 unsigned char ir_proto_packet[] = { 1128 1128 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86 }; 1129 1129 1130 - if (*rc_type && !(*rc_type & rc->allowed_protocols)) 1130 + if (*rc_proto && !(*rc_proto & rc->allowed_protocols)) 1131 1131 dev_warn(dev, "Looks like you're trying to use an IR protocol this device does not support\n"); 1132 1132 1133 - if (*rc_type & RC_BIT_RC6_MCE) { 1133 + if (*rc_proto & RC_PROTO_BIT_RC6_MCE) { 1134 1134 dev_dbg(dev, "Configuring IR receiver for MCE protocol\n"); 1135 1135 ir_proto_packet[0] = 0x01; 1136 - *rc_type = RC_BIT_RC6_MCE; 1137 - } else if (*rc_type & RC_BIT_OTHER) { 1136 + *rc_proto = RC_PROTO_BIT_RC6_MCE; 1137 + } else if (*rc_proto & RC_PROTO_BIT_OTHER) { 1138 1138 dev_dbg(dev, "Configuring IR receiver for iMON protocol\n"); 1139 1139 if (!pad_stabilize) 1140 1140 dev_dbg(dev, "PAD stabilize functionality disabled\n"); 1141 1141 /* ir_proto_packet[0] = 0x00; // already the default */ 1142 - *rc_type = RC_BIT_OTHER; 1142 + *rc_proto = RC_PROTO_BIT_OTHER; 1143 1143 } else { 1144 1144 dev_warn(dev, "Unsupported IR protocol specified, overriding to iMON IR protocol\n"); 1145 1145 if (!pad_stabilize) 1146 1146 dev_dbg(dev, "PAD stabilize functionality disabled\n"); 1147 1147 /* ir_proto_packet[0] = 0x00; // already the default */ 1148 - *rc_type = RC_BIT_OTHER; 1148 + *rc_proto = RC_PROTO_BIT_OTHER; 1149 1149 } 1150 1150 1151 1151 memcpy(ictx->usb_tx_buf, &ir_proto_packet, sizeof(ir_proto_packet)); ··· 1159 1159 if (retval) 1160 1160 goto out; 1161 1161 1162 - ictx->rc_type = *rc_type; 1162 + ictx->rc_proto = *rc_proto; 1163 1163 ictx->pad_mouse = false; 1164 1164 1165 1165 out: ··· 1435 1435 rel_x = buf[2]; 1436 1436 rel_y = buf[3]; 1437 1437 1438 - if (ictx->rc_type == RC_BIT_OTHER && pad_stabilize) { 1438 + if (ictx->rc_proto == RC_PROTO_BIT_OTHER && pad_stabilize) { 1439 1439 if ((buf[1] == 0) && ((rel_x != 0) || (rel_y != 0))) { 1440 1440 dir = stabilize((int)rel_x, (int)rel_y, 1441 1441 timeout, threshold); ··· 1502 1502 buf[0] = 0x01; 1503 1503 buf[1] = buf[4] = buf[5] = buf[6] = buf[7] = 0; 1504 1504 1505 - if (ictx->rc_type == RC_BIT_OTHER && pad_stabilize) { 1505 + if (ictx->rc_proto == RC_PROTO_BIT_OTHER && pad_stabilize) { 1506 1506 dir = stabilize((int)rel_x, (int)rel_y, 1507 1507 timeout, threshold); 1508 1508 if (!dir) { ··· 1706 1706 ictx->release_code = false; 1707 1707 } else { 1708 1708 scancode = be32_to_cpu(*((__be32 *)buf)); 1709 - if (ictx->rc_type == RC_BIT_RC6_MCE) { 1709 + if (ictx->rc_proto == RC_PROTO_BIT_RC6_MCE) { 1710 1710 ktype = IMON_KEY_IMON; 1711 1711 if (buf[0] == 0x80) 1712 1712 ktype = IMON_KEY_MCE; ··· 1769 1769 if (press_type == 0) 1770 1770 rc_keyup(ictx->rdev); 1771 1771 else { 1772 - if (ictx->rc_type == RC_BIT_RC6_MCE || 1773 - ictx->rc_type == RC_BIT_OTHER) 1772 + if (ictx->rc_proto == RC_PROTO_BIT_RC6_MCE || 1773 + ictx->rc_proto == RC_PROTO_BIT_OTHER) 1774 1774 rc_keydown(ictx->rdev, 1775 - ictx->rc_type == RC_BIT_RC6_MCE ? RC_TYPE_RC6_MCE : RC_TYPE_OTHER, 1775 + ictx->rc_proto == RC_PROTO_BIT_RC6_MCE ? RC_PROTO_RC6_MCE : RC_PROTO_OTHER, 1776 1776 ictx->rc_scancode, ictx->rc_toggle); 1777 1777 spin_lock_irqsave(&ictx->kc_lock, flags); 1778 1778 ictx->last_keycode = ictx->kc; ··· 1936 1936 { 1937 1937 u8 ffdc_cfg_byte = ictx->usb_rx_buf[6]; 1938 1938 u8 detected_display_type = IMON_DISPLAY_TYPE_NONE; 1939 - u64 allowed_protos = RC_BIT_OTHER; 1939 + u64 allowed_protos = RC_PROTO_BIT_OTHER; 1940 1940 1941 1941 switch (ffdc_cfg_byte) { 1942 1942 /* iMON Knob, no display, iMON IR + vol knob */ ··· 1967 1967 case 0x9e: 1968 1968 dev_info(ictx->dev, "0xffdc iMON VFD, MCE IR"); 1969 1969 detected_display_type = IMON_DISPLAY_TYPE_VFD; 1970 - allowed_protos = RC_BIT_RC6_MCE; 1970 + allowed_protos = RC_PROTO_BIT_RC6_MCE; 1971 1971 break; 1972 1972 /* iMON LCD, MCE IR */ 1973 1973 case 0x9f: 1974 1974 dev_info(ictx->dev, "0xffdc iMON LCD, MCE IR"); 1975 1975 detected_display_type = IMON_DISPLAY_TYPE_LCD; 1976 - allowed_protos = RC_BIT_RC6_MCE; 1976 + allowed_protos = RC_PROTO_BIT_RC6_MCE; 1977 1977 break; 1978 1978 default: 1979 1979 dev_info(ictx->dev, "Unknown 0xffdc device, defaulting to VFD and iMON IR"); 1980 1980 detected_display_type = IMON_DISPLAY_TYPE_VFD; 1981 1981 /* We don't know which one it is, allow user to set the 1982 1982 * RC6 one from userspace if OTHER wasn't correct. */ 1983 - allowed_protos |= RC_BIT_RC6_MCE; 1983 + allowed_protos |= RC_PROTO_BIT_RC6_MCE; 1984 1984 break; 1985 1985 } 1986 1986 1987 1987 printk(KERN_CONT " (id 0x%02x)\n", ffdc_cfg_byte); 1988 1988 1989 1989 ictx->display_type = detected_display_type; 1990 - ictx->rc_type = allowed_protos; 1990 + ictx->rc_proto = allowed_protos; 1991 1991 } 1992 1992 1993 1993 static void imon_set_display_type(struct imon_context *ictx) ··· 2070 2070 2071 2071 rdev->priv = ictx; 2072 2072 if (ictx->dev_descr->flags & IMON_IR_RAW) 2073 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 2073 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 2074 2074 else 2075 2075 /* iMON PAD or MCE */ 2076 - rdev->allowed_protocols = RC_BIT_OTHER | RC_BIT_RC6_MCE; 2076 + rdev->allowed_protocols = RC_PROTO_BIT_OTHER | 2077 + RC_PROTO_BIT_RC6_MCE; 2077 2078 rdev->change_protocol = imon_ir_change_protocol; 2078 2079 rdev->driver_name = MOD_NAME; 2079 2080 ··· 2087 2086 2088 2087 if (ictx->product == 0xffdc) { 2089 2088 imon_get_ffdc_type(ictx); 2090 - rdev->allowed_protocols = ictx->rc_type; 2089 + rdev->allowed_protocols = ictx->rc_proto; 2091 2090 } 2092 2091 2093 2092 imon_set_display_type(ictx); 2094 2093 2095 - if (ictx->rc_type == RC_BIT_RC6_MCE || 2094 + if (ictx->rc_proto == RC_PROTO_BIT_RC6_MCE || 2096 2095 ictx->dev_descr->flags & IMON_IR_RAW) 2097 2096 rdev->map_name = RC_MAP_IMON_MCE; 2098 2097 else
+1 -1
drivers/media/rc/ir-hix5hd2.c
··· 242 242 clk_prepare_enable(priv->clock); 243 243 priv->rate = clk_get_rate(priv->clock); 244 244 245 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 245 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 246 246 rdev->priv = priv; 247 247 rdev->open = hix5hd2_ir_open; 248 248 rdev->close = hix5hd2_ir_close;
+3 -3
drivers/media/rc/ir-jvc-decoder.c
··· 137 137 scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | 138 138 (bitrev8((data->bits >> 0) & 0xff) << 0); 139 139 IR_dprintk(1, "JVC scancode 0x%04x\n", scancode); 140 - rc_keydown(dev, RC_TYPE_JVC, scancode, data->toggle); 140 + rc_keydown(dev, RC_PROTO_JVC, scancode, data->toggle); 141 141 data->first = false; 142 142 data->old_bits = data->bits; 143 143 } else if (data->bits == data->old_bits) { ··· 193 193 * -ENOBUFS if there isn't enough space in the array to fit the 194 194 * encoding. In this case all @max events will have been written. 195 195 */ 196 - static int ir_jvc_encode(enum rc_type protocol, u32 scancode, 196 + static int ir_jvc_encode(enum rc_proto protocol, u32 scancode, 197 197 struct ir_raw_event *events, unsigned int max) 198 198 { 199 199 struct ir_raw_event *e = events; ··· 209 209 } 210 210 211 211 static struct ir_raw_handler jvc_handler = { 212 - .protocols = RC_BIT_JVC, 212 + .protocols = RC_PROTO_BIT_JVC, 213 213 .decode = ir_jvc_decode, 214 214 .encode = ir_jvc_encode, 215 215 };
+3 -3
drivers/media/rc/ir-mce_kbd-decoder.c
··· 444 444 * -ENOBUFS if there isn't enough space in the array to fit the 445 445 * encoding. In this case all @max events will have been written. 446 446 */ 447 - static int ir_mce_kbd_encode(enum rc_type protocol, u32 scancode, 447 + static int ir_mce_kbd_encode(enum rc_proto protocol, u32 scancode, 448 448 struct ir_raw_event *events, unsigned int max) 449 449 { 450 450 struct ir_raw_event *e = events; 451 451 int len, ret; 452 452 u64 raw; 453 453 454 - if (protocol == RC_TYPE_MCIR2_KBD) { 454 + if (protocol == RC_PROTO_MCIR2_KBD) { 455 455 raw = scancode | 456 456 ((u64)MCIR2_KEYBOARD_HEADER << MCIR2_KEYBOARD_NBITS); 457 457 len = MCIR2_KEYBOARD_NBITS + MCIR2_HEADER_NBITS + 1; ··· 469 469 } 470 470 471 471 static struct ir_raw_handler mce_kbd_handler = { 472 - .protocols = RC_BIT_MCIR2_KBD | RC_BIT_MCIR2_MSE, 472 + .protocols = RC_PROTO_BIT_MCIR2_KBD | RC_PROTO_BIT_MCIR2_MSE, 473 473 .decode = ir_mce_kbd_decode, 474 474 .encode = ir_mce_kbd_encode, 475 475 .raw_register = ir_mce_kbd_register,
+9 -8
drivers/media/rc/ir-nec-decoder.c
··· 49 49 { 50 50 struct nec_dec *data = &dev->raw->nec; 51 51 u32 scancode; 52 - enum rc_type rc_type; 52 + enum rc_proto rc_proto; 53 53 u8 address, not_address, command, not_command; 54 54 55 55 if (!is_timing_event(ev)) { ··· 158 158 159 159 scancode = ir_nec_bytes_to_scancode(address, not_address, 160 160 command, not_command, 161 - &rc_type); 161 + &rc_proto); 162 162 163 163 if (data->is_nec_x) 164 164 data->necx_repeat = true; 165 165 166 - rc_keydown(dev, rc_type, scancode, 0); 166 + rc_keydown(dev, rc_proto, scancode, 0); 167 167 data->state = STATE_INACTIVE; 168 168 return 0; 169 169 } ··· 180 180 * @scancode: a single NEC scancode. 181 181 * @raw: raw data to be modulated. 182 182 */ 183 - static u32 ir_nec_scancode_to_raw(enum rc_type protocol, u32 scancode) 183 + static u32 ir_nec_scancode_to_raw(enum rc_proto protocol, u32 scancode) 184 184 { 185 185 unsigned int addr, addr_inv, data, data_inv; 186 186 187 187 data = scancode & 0xff; 188 188 189 - if (protocol == RC_TYPE_NEC32) { 189 + if (protocol == RC_PROTO_NEC32) { 190 190 /* 32-bit NEC (used by Apple and TiVo remotes) */ 191 191 /* scan encoding: aaAAddDD */ 192 192 addr_inv = (scancode >> 24) & 0xff; 193 193 addr = (scancode >> 16) & 0xff; 194 194 data_inv = (scancode >> 8) & 0xff; 195 - } else if (protocol == RC_TYPE_NECX) { 195 + } else if (protocol == RC_PROTO_NECX) { 196 196 /* Extended NEC */ 197 197 /* scan encoding AAaaDD */ 198 198 addr = (scancode >> 16) & 0xff; ··· 236 236 * -ENOBUFS if there isn't enough space in the array to fit the 237 237 * encoding. In this case all @max events will have been written. 238 238 */ 239 - static int ir_nec_encode(enum rc_type protocol, u32 scancode, 239 + static int ir_nec_encode(enum rc_proto protocol, u32 scancode, 240 240 struct ir_raw_event *events, unsigned int max) 241 241 { 242 242 struct ir_raw_event *e = events; ··· 255 255 } 256 256 257 257 static struct ir_raw_handler nec_handler = { 258 - .protocols = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32, 258 + .protocols = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 259 + RC_PROTO_BIT_NEC32, 259 260 .decode = ir_nec_decode, 260 261 .encode = ir_nec_encode, 261 262 };
+13 -12
drivers/media/rc/ir-rc5-decoder.c
··· 51 51 struct rc5_dec *data = &dev->raw->rc5; 52 52 u8 toggle; 53 53 u32 scancode; 54 - enum rc_type protocol; 54 + enum rc_proto protocol; 55 55 56 56 if (!is_timing_event(ev)) { 57 57 if (ev.reset) ··· 124 124 if (data->is_rc5x && data->count == RC5X_NBITS) { 125 125 /* RC5X */ 126 126 u8 xdata, command, system; 127 - if (!(dev->enabled_protocols & RC_BIT_RC5X_20)) { 127 + if (!(dev->enabled_protocols & RC_PROTO_BIT_RC5X_20)) { 128 128 data->state = STATE_INACTIVE; 129 129 return 0; 130 130 } ··· 134 134 toggle = (data->bits & 0x20000) ? 1 : 0; 135 135 command += (data->bits & 0x40000) ? 0 : 0x40; 136 136 scancode = system << 16 | command << 8 | xdata; 137 - protocol = RC_TYPE_RC5X_20; 137 + protocol = RC_PROTO_RC5X_20; 138 138 139 139 } else if (!data->is_rc5x && data->count == RC5_NBITS) { 140 140 /* RC5 */ 141 141 u8 command, system; 142 - if (!(dev->enabled_protocols & RC_BIT_RC5)) { 142 + if (!(dev->enabled_protocols & RC_PROTO_BIT_RC5)) { 143 143 data->state = STATE_INACTIVE; 144 144 return 0; 145 145 } ··· 148 148 toggle = (data->bits & 0x00800) ? 1 : 0; 149 149 command += (data->bits & 0x01000) ? 0 : 0x40; 150 150 scancode = system << 8 | command; 151 - protocol = RC_TYPE_RC5; 151 + protocol = RC_PROTO_RC5; 152 152 153 153 } else if (!data->is_rc5x && data->count == RC5_SZ_NBITS) { 154 154 /* RC5 StreamZap */ 155 155 u8 command, system; 156 - if (!(dev->enabled_protocols & RC_BIT_RC5_SZ)) { 156 + if (!(dev->enabled_protocols & RC_PROTO_BIT_RC5_SZ)) { 157 157 data->state = STATE_INACTIVE; 158 158 return 0; 159 159 } ··· 161 161 system = (data->bits & 0x02FC0) >> 6; 162 162 toggle = (data->bits & 0x01000) ? 1 : 0; 163 163 scancode = system << 6 | command; 164 - protocol = RC_TYPE_RC5_SZ; 164 + protocol = RC_PROTO_RC5_SZ; 165 165 166 166 } else 167 167 break; ··· 221 221 * encoding. In this case all @max events will have been written. 222 222 * -EINVAL if the scancode is ambiguous or invalid. 223 223 */ 224 - static int ir_rc5_encode(enum rc_type protocol, u32 scancode, 224 + static int ir_rc5_encode(enum rc_proto protocol, u32 scancode, 225 225 struct ir_raw_event *events, unsigned int max) 226 226 { 227 227 int ret; ··· 229 229 unsigned int data, xdata, command, commandx, system, pre_space_data; 230 230 231 231 /* Detect protocol and convert scancode to raw data */ 232 - if (protocol == RC_TYPE_RC5) { 232 + if (protocol == RC_PROTO_RC5) { 233 233 /* decode scancode */ 234 234 command = (scancode & 0x003f) >> 0; 235 235 commandx = (scancode & 0x0040) >> 6; ··· 242 242 RC5_NBITS, data); 243 243 if (ret < 0) 244 244 return ret; 245 - } else if (protocol == RC_TYPE_RC5X_20) { 245 + } else if (protocol == RC_PROTO_RC5X_20) { 246 246 /* decode scancode */ 247 247 xdata = (scancode & 0x00003f) >> 0; 248 248 command = (scancode & 0x003f00) >> 8; ··· 264 264 data); 265 265 if (ret < 0) 266 266 return ret; 267 - } else if (protocol == RC_TYPE_RC5_SZ) { 267 + } else if (protocol == RC_PROTO_RC5_SZ) { 268 268 /* RC5-SZ scancode is raw enough for Manchester as it is */ 269 269 ret = ir_raw_gen_manchester(&e, max, &ir_rc5_sz_timings, 270 270 RC5_SZ_NBITS, scancode & 0x2fff); ··· 278 278 } 279 279 280 280 static struct ir_raw_handler rc5_handler = { 281 - .protocols = RC_BIT_RC5 | RC_BIT_RC5X_20 | RC_BIT_RC5_SZ, 281 + .protocols = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC5X_20 | 282 + RC_PROTO_BIT_RC5_SZ, 282 283 .decode = ir_rc5_decode, 283 284 .encode = ir_rc5_encode, 284 285 };
+15 -15
drivers/media/rc/ir-rc6-decoder.c
··· 88 88 struct rc6_dec *data = &dev->raw->rc6; 89 89 u32 scancode; 90 90 u8 toggle; 91 - enum rc_type protocol; 91 + enum rc_proto protocol; 92 92 93 93 if (!is_timing_event(ev)) { 94 94 if (ev.reset) ··· 229 229 case RC6_MODE_0: 230 230 scancode = data->body; 231 231 toggle = data->toggle; 232 - protocol = RC_TYPE_RC6_0; 232 + protocol = RC_PROTO_RC6_0; 233 233 IR_dprintk(1, "RC6(0) scancode 0x%04x (toggle: %u)\n", 234 234 scancode, toggle); 235 235 break; ··· 244 244 scancode = data->body; 245 245 switch (data->count) { 246 246 case 20: 247 - protocol = RC_TYPE_RC6_6A_20; 247 + protocol = RC_PROTO_RC6_6A_20; 248 248 toggle = 0; 249 249 break; 250 250 case 24: 251 - protocol = RC_TYPE_RC6_6A_24; 251 + protocol = RC_PROTO_RC6_6A_24; 252 252 toggle = 0; 253 253 break; 254 254 case 32: 255 255 if ((scancode & RC6_6A_LCC_MASK) == RC6_6A_MCE_CC) { 256 - protocol = RC_TYPE_RC6_MCE; 256 + protocol = RC_PROTO_RC6_MCE; 257 257 toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); 258 258 scancode &= ~RC6_6A_MCE_TOGGLE_MASK; 259 259 } else { 260 - protocol = RC_TYPE_RC6_6A_32; 260 + protocol = RC_PROTO_RC6_6A_32; 261 261 toggle = 0; 262 262 } 263 263 break; ··· 322 322 * encoding. In this case all @max events will have been written. 323 323 * -EINVAL if the scancode is ambiguous or invalid. 324 324 */ 325 - static int ir_rc6_encode(enum rc_type protocol, u32 scancode, 325 + static int ir_rc6_encode(enum rc_proto protocol, u32 scancode, 326 326 struct ir_raw_event *events, unsigned int max) 327 327 { 328 328 int ret; 329 329 struct ir_raw_event *e = events; 330 330 331 - if (protocol == RC_TYPE_RC6_0) { 331 + if (protocol == RC_PROTO_RC6_0) { 332 332 /* Modulate the preamble */ 333 333 ret = ir_raw_gen_manchester(&e, max, &ir_rc6_timings[0], 0, 0); 334 334 if (ret < 0) ··· 358 358 int bits; 359 359 360 360 switch (protocol) { 361 - case RC_TYPE_RC6_MCE: 362 - case RC_TYPE_RC6_6A_32: 361 + case RC_PROTO_RC6_MCE: 362 + case RC_PROTO_RC6_6A_32: 363 363 bits = 32; 364 364 break; 365 - case RC_TYPE_RC6_6A_24: 365 + case RC_PROTO_RC6_6A_24: 366 366 bits = 24; 367 367 break; 368 - case RC_TYPE_RC6_6A_20: 368 + case RC_PROTO_RC6_6A_20: 369 369 bits = 20; 370 370 break; 371 371 default: ··· 403 403 } 404 404 405 405 static struct ir_raw_handler rc6_handler = { 406 - .protocols = RC_BIT_RC6_0 | RC_BIT_RC6_6A_20 | 407 - RC_BIT_RC6_6A_24 | RC_BIT_RC6_6A_32 | 408 - RC_BIT_RC6_MCE, 406 + .protocols = RC_PROTO_BIT_RC6_0 | RC_PROTO_BIT_RC6_6A_20 | 407 + RC_PROTO_BIT_RC6_6A_24 | RC_PROTO_BIT_RC6_6A_32 | 408 + RC_PROTO_BIT_RC6_MCE, 409 409 .decode = ir_rc6_decode, 410 410 .encode = ir_rc6_encode, 411 411 };
+3 -3
drivers/media/rc/ir-sanyo-decoder.c
··· 161 161 162 162 scancode = address << 8 | command; 163 163 IR_dprintk(1, "SANYO scancode: 0x%06x\n", scancode); 164 - rc_keydown(dev, RC_TYPE_SANYO, scancode, 0); 164 + rc_keydown(dev, RC_PROTO_SANYO, scancode, 0); 165 165 data->state = STATE_INACTIVE; 166 166 return 0; 167 167 } ··· 195 195 * -ENOBUFS if there isn't enough space in the array to fit the 196 196 * encoding. In this case all @max events will have been written. 197 197 */ 198 - static int ir_sanyo_encode(enum rc_type protocol, u32 scancode, 198 + static int ir_sanyo_encode(enum rc_proto protocol, u32 scancode, 199 199 struct ir_raw_event *events, unsigned int max) 200 200 { 201 201 struct ir_raw_event *e = events; ··· 215 215 } 216 216 217 217 static struct ir_raw_handler sanyo_handler = { 218 - .protocols = RC_BIT_SANYO, 218 + .protocols = RC_PROTO_BIT_SANYO, 219 219 .decode = ir_sanyo_decode, 220 220 .encode = ir_sanyo_encode, 221 221 };
+3 -3
drivers/media/rc/ir-sharp-decoder.c
··· 161 161 scancode = address << 8 | command; 162 162 IR_dprintk(1, "Sharp scancode 0x%04x\n", scancode); 163 163 164 - rc_keydown(dev, RC_TYPE_SHARP, scancode, 0); 164 + rc_keydown(dev, RC_PROTO_SHARP, scancode, 0); 165 165 data->state = STATE_INACTIVE; 166 166 return 0; 167 167 } ··· 196 196 * -ENOBUFS if there isn't enough space in the array to fit the 197 197 * encoding. In this case all @max events will have been written. 198 198 */ 199 - static int ir_sharp_encode(enum rc_type protocol, u32 scancode, 199 + static int ir_sharp_encode(enum rc_proto protocol, u32 scancode, 200 200 struct ir_raw_event *events, unsigned int max) 201 201 { 202 202 struct ir_raw_event *e = events; ··· 223 223 } 224 224 225 225 static struct ir_raw_handler sharp_handler = { 226 - .protocols = RC_BIT_SHARP, 226 + .protocols = RC_PROTO_BIT_SHARP, 227 227 .decode = ir_sharp_decode, 228 228 .encode = ir_sharp_encode, 229 229 };
+12 -11
drivers/media/rc/ir-sony-decoder.c
··· 42 42 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) 43 43 { 44 44 struct sony_dec *data = &dev->raw->sony; 45 - enum rc_type protocol; 45 + enum rc_proto protocol; 46 46 u32 scancode; 47 47 u8 device, subdevice, function; 48 48 ··· 121 121 122 122 switch (data->count) { 123 123 case 12: 124 - if (!(dev->enabled_protocols & RC_BIT_SONY12)) 124 + if (!(dev->enabled_protocols & RC_PROTO_BIT_SONY12)) 125 125 goto finish_state_machine; 126 126 127 127 device = bitrev8((data->bits << 3) & 0xF8); 128 128 subdevice = 0; 129 129 function = bitrev8((data->bits >> 4) & 0xFE); 130 - protocol = RC_TYPE_SONY12; 130 + protocol = RC_PROTO_SONY12; 131 131 break; 132 132 case 15: 133 - if (!(dev->enabled_protocols & RC_BIT_SONY15)) 133 + if (!(dev->enabled_protocols & RC_PROTO_BIT_SONY15)) 134 134 goto finish_state_machine; 135 135 136 136 device = bitrev8((data->bits >> 0) & 0xFF); 137 137 subdevice = 0; 138 138 function = bitrev8((data->bits >> 7) & 0xFE); 139 - protocol = RC_TYPE_SONY15; 139 + protocol = RC_PROTO_SONY15; 140 140 break; 141 141 case 20: 142 - if (!(dev->enabled_protocols & RC_BIT_SONY20)) 142 + if (!(dev->enabled_protocols & RC_PROTO_BIT_SONY20)) 143 143 goto finish_state_machine; 144 144 145 145 device = bitrev8((data->bits >> 5) & 0xF8); 146 146 subdevice = bitrev8((data->bits >> 0) & 0xFF); 147 147 function = bitrev8((data->bits >> 12) & 0xFE); 148 - protocol = RC_TYPE_SONY20; 148 + protocol = RC_PROTO_SONY20; 149 149 break; 150 150 default: 151 151 IR_dprintk(1, "Sony invalid bitcount %u\n", data->count); ··· 190 190 * -ENOBUFS if there isn't enough space in the array to fit the 191 191 * encoding. In this case all @max events will have been written. 192 192 */ 193 - static int ir_sony_encode(enum rc_type protocol, u32 scancode, 193 + static int ir_sony_encode(enum rc_proto protocol, u32 scancode, 194 194 struct ir_raw_event *events, unsigned int max) 195 195 { 196 196 struct ir_raw_event *e = events; 197 197 u32 raw, len; 198 198 int ret; 199 199 200 - if (protocol == RC_TYPE_SONY12) { 200 + if (protocol == RC_PROTO_SONY12) { 201 201 raw = (scancode & 0x7f) | ((scancode & 0x1f0000) >> 9); 202 202 len = 12; 203 - } else if (protocol == RC_TYPE_SONY15) { 203 + } else if (protocol == RC_PROTO_SONY15) { 204 204 raw = (scancode & 0x7f) | ((scancode & 0xff0000) >> 9); 205 205 len = 15; 206 206 } else { ··· 217 217 } 218 218 219 219 static struct ir_raw_handler sony_handler = { 220 - .protocols = RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20, 220 + .protocols = RC_PROTO_BIT_SONY12 | RC_PROTO_BIT_SONY15 | 221 + RC_PROTO_BIT_SONY20, 221 222 .decode = ir_sony_decode, 222 223 .encode = ir_sony_encode, 223 224 };
+2 -2
drivers/media/rc/ir-xmp-decoder.c
··· 141 141 IR_dprintk(1, "XMP scancode 0x%06x\n", scancode); 142 142 143 143 if (toggle == 0) { 144 - rc_keydown(dev, RC_TYPE_XMP, scancode, 0); 144 + rc_keydown(dev, RC_PROTO_XMP, scancode, 0); 145 145 } else { 146 146 rc_repeat(dev); 147 147 IR_dprintk(1, "Repeat last key\n"); ··· 196 196 } 197 197 198 198 static struct ir_raw_handler xmp_handler = { 199 - .protocols = RC_BIT_XMP, 199 + .protocols = RC_PROTO_BIT_XMP, 200 200 .decode = ir_xmp_decode, 201 201 }; 202 202
+1 -1
drivers/media/rc/ite-cir.c
··· 1556 1556 1557 1557 /* set up ir-core props */ 1558 1558 rdev->priv = itdev; 1559 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 1559 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 1560 1560 rdev->open = ite_open; 1561 1561 rdev->close = ite_close; 1562 1562 rdev->s_idle = ite_s_idle;
+4 -4
drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
··· 66 66 67 67 static struct rc_map_list adstech_dvb_t_pci_map = { 68 68 .map = { 69 - .scan = adstech_dvb_t_pci, 70 - .size = ARRAY_SIZE(adstech_dvb_t_pci), 71 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 72 - .name = RC_MAP_ADSTECH_DVB_T_PCI, 69 + .scan = adstech_dvb_t_pci, 70 + .size = ARRAY_SIZE(adstech_dvb_t_pci), 71 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 72 + .name = RC_MAP_ADSTECH_DVB_T_PCI, 73 73 } 74 74 }; 75 75
+4 -4
drivers/media/rc/keymaps/rc-anysee.c
··· 70 70 71 71 static struct rc_map_list anysee_map = { 72 72 .map = { 73 - .scan = anysee, 74 - .size = ARRAY_SIZE(anysee), 75 - .rc_type = RC_TYPE_NEC, 76 - .name = RC_MAP_ANYSEE, 73 + .scan = anysee, 74 + .size = ARRAY_SIZE(anysee), 75 + .rc_proto = RC_PROTO_NEC, 76 + .name = RC_MAP_ANYSEE, 77 77 } 78 78 }; 79 79
+4 -4
drivers/media/rc/keymaps/rc-apac-viewcomp.c
··· 57 57 58 58 static struct rc_map_list apac_viewcomp_map = { 59 59 .map = { 60 - .scan = apac_viewcomp, 61 - .size = ARRAY_SIZE(apac_viewcomp), 62 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 63 - .name = RC_MAP_APAC_VIEWCOMP, 60 + .scan = apac_viewcomp, 61 + .size = ARRAY_SIZE(apac_viewcomp), 62 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 63 + .name = RC_MAP_APAC_VIEWCOMP, 64 64 } 65 65 }; 66 66
+4 -4
drivers/media/rc/keymaps/rc-asus-pc39.c
··· 68 68 69 69 static struct rc_map_list asus_pc39_map = { 70 70 .map = { 71 - .scan = asus_pc39, 72 - .size = ARRAY_SIZE(asus_pc39), 73 - .rc_type = RC_TYPE_RC5, 74 - .name = RC_MAP_ASUS_PC39, 71 + .scan = asus_pc39, 72 + .size = ARRAY_SIZE(asus_pc39), 73 + .rc_proto = RC_PROTO_RC5, 74 + .name = RC_MAP_ASUS_PC39, 75 75 } 76 76 }; 77 77
+4 -4
drivers/media/rc/keymaps/rc-asus-ps3-100.c
··· 67 67 68 68 static struct rc_map_list asus_ps3_100_map = { 69 69 .map = { 70 - .scan = asus_ps3_100, 71 - .size = ARRAY_SIZE(asus_ps3_100), 72 - .rc_type = RC_TYPE_RC5, 73 - .name = RC_MAP_ASUS_PS3_100, 70 + .scan = asus_ps3_100, 71 + .size = ARRAY_SIZE(asus_ps3_100), 72 + .rc_proto = RC_PROTO_RC5, 73 + .name = RC_MAP_ASUS_PS3_100, 74 74 } 75 75 }; 76 76
+4 -4
drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
··· 46 46 47 47 static struct rc_map_list ati_tv_wonder_hd_600_map = { 48 48 .map = { 49 - .scan = ati_tv_wonder_hd_600, 50 - .size = ARRAY_SIZE(ati_tv_wonder_hd_600), 51 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 52 - .name = RC_MAP_ATI_TV_WONDER_HD_600, 49 + .scan = ati_tv_wonder_hd_600, 50 + .size = ARRAY_SIZE(ati_tv_wonder_hd_600), 51 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 52 + .name = RC_MAP_ATI_TV_WONDER_HD_600, 53 53 } 54 54 }; 55 55
+4 -4
drivers/media/rc/keymaps/rc-ati-x10.c
··· 114 114 115 115 static struct rc_map_list ati_x10_map = { 116 116 .map = { 117 - .scan = ati_x10, 118 - .size = ARRAY_SIZE(ati_x10), 119 - .rc_type = RC_TYPE_OTHER, 120 - .name = RC_MAP_ATI_X10, 117 + .scan = ati_x10, 118 + .size = ARRAY_SIZE(ati_x10), 119 + .rc_proto = RC_PROTO_OTHER, 120 + .name = RC_MAP_ATI_X10, 121 121 } 122 122 }; 123 123
+4 -4
drivers/media/rc/keymaps/rc-avermedia-a16d.c
··· 52 52 53 53 static struct rc_map_list avermedia_a16d_map = { 54 54 .map = { 55 - .scan = avermedia_a16d, 56 - .size = ARRAY_SIZE(avermedia_a16d), 57 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 58 - .name = RC_MAP_AVERMEDIA_A16D, 55 + .scan = avermedia_a16d, 56 + .size = ARRAY_SIZE(avermedia_a16d), 57 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 58 + .name = RC_MAP_AVERMEDIA_A16D, 59 59 } 60 60 }; 61 61
+4 -4
drivers/media/rc/keymaps/rc-avermedia-cardbus.c
··· 74 74 75 75 static struct rc_map_list avermedia_cardbus_map = { 76 76 .map = { 77 - .scan = avermedia_cardbus, 78 - .size = ARRAY_SIZE(avermedia_cardbus), 79 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 80 - .name = RC_MAP_AVERMEDIA_CARDBUS, 77 + .scan = avermedia_cardbus, 78 + .size = ARRAY_SIZE(avermedia_cardbus), 79 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 80 + .name = RC_MAP_AVERMEDIA_CARDBUS, 81 81 } 82 82 }; 83 83
+4 -4
drivers/media/rc/keymaps/rc-avermedia-dvbt.c
··· 55 55 56 56 static struct rc_map_list avermedia_dvbt_map = { 57 57 .map = { 58 - .scan = avermedia_dvbt, 59 - .size = ARRAY_SIZE(avermedia_dvbt), 60 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 61 - .name = RC_MAP_AVERMEDIA_DVBT, 58 + .scan = avermedia_dvbt, 59 + .size = ARRAY_SIZE(avermedia_dvbt), 60 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 61 + .name = RC_MAP_AVERMEDIA_DVBT, 62 62 } 63 63 }; 64 64
+4 -4
drivers/media/rc/keymaps/rc-avermedia-m135a.c
··· 124 124 125 125 static struct rc_map_list avermedia_m135a_map = { 126 126 .map = { 127 - .scan = avermedia_m135a, 128 - .size = ARRAY_SIZE(avermedia_m135a), 129 - .rc_type = RC_TYPE_NEC, 130 - .name = RC_MAP_AVERMEDIA_M135A, 127 + .scan = avermedia_m135a, 128 + .size = ARRAY_SIZE(avermedia_m135a), 129 + .rc_proto = RC_PROTO_NEC, 130 + .name = RC_MAP_AVERMEDIA_M135A, 131 131 } 132 132 }; 133 133
+4 -4
drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
··· 72 72 73 73 static struct rc_map_list avermedia_m733a_rm_k6_map = { 74 74 .map = { 75 - .scan = avermedia_m733a_rm_k6, 76 - .size = ARRAY_SIZE(avermedia_m733a_rm_k6), 77 - .rc_type = RC_TYPE_NEC, 78 - .name = RC_MAP_AVERMEDIA_M733A_RM_K6, 75 + .scan = avermedia_m733a_rm_k6, 76 + .size = ARRAY_SIZE(avermedia_m733a_rm_k6), 77 + .rc_proto = RC_PROTO_NEC, 78 + .name = RC_MAP_AVERMEDIA_M733A_RM_K6, 79 79 } 80 80 }; 81 81
+4 -4
drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
··· 56 56 57 57 static struct rc_map_list avermedia_rm_ks_map = { 58 58 .map = { 59 - .scan = avermedia_rm_ks, 60 - .size = ARRAY_SIZE(avermedia_rm_ks), 61 - .rc_type = RC_TYPE_NEC, 62 - .name = RC_MAP_AVERMEDIA_RM_KS, 59 + .scan = avermedia_rm_ks, 60 + .size = ARRAY_SIZE(avermedia_rm_ks), 61 + .rc_proto = RC_PROTO_NEC, 62 + .name = RC_MAP_AVERMEDIA_RM_KS, 63 63 } 64 64 }; 65 65
+4 -4
drivers/media/rc/keymaps/rc-avermedia.c
··· 63 63 64 64 static struct rc_map_list avermedia_map = { 65 65 .map = { 66 - .scan = avermedia, 67 - .size = ARRAY_SIZE(avermedia), 68 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 69 - .name = RC_MAP_AVERMEDIA, 66 + .scan = avermedia, 67 + .size = ARRAY_SIZE(avermedia), 68 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 69 + .name = RC_MAP_AVERMEDIA, 70 70 } 71 71 }; 72 72
+4 -4
drivers/media/rc/keymaps/rc-avertv-303.c
··· 62 62 63 63 static struct rc_map_list avertv_303_map = { 64 64 .map = { 65 - .scan = avertv_303, 66 - .size = ARRAY_SIZE(avertv_303), 67 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 68 - .name = RC_MAP_AVERTV_303, 65 + .scan = avertv_303, 66 + .size = ARRAY_SIZE(avertv_303), 67 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 68 + .name = RC_MAP_AVERTV_303, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
··· 79 79 80 80 static struct rc_map_list azurewave_ad_tu700_map = { 81 81 .map = { 82 - .scan = azurewave_ad_tu700, 83 - .size = ARRAY_SIZE(azurewave_ad_tu700), 84 - .rc_type = RC_TYPE_NEC, 85 - .name = RC_MAP_AZUREWAVE_AD_TU700, 82 + .scan = azurewave_ad_tu700, 83 + .size = ARRAY_SIZE(azurewave_ad_tu700), 84 + .rc_proto = RC_PROTO_NEC, 85 + .name = RC_MAP_AZUREWAVE_AD_TU700, 86 86 } 87 87 }; 88 88
+4 -4
drivers/media/rc/keymaps/rc-behold-columbus.c
··· 85 85 86 86 static struct rc_map_list behold_columbus_map = { 87 87 .map = { 88 - .scan = behold_columbus, 89 - .size = ARRAY_SIZE(behold_columbus), 90 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 91 - .name = RC_MAP_BEHOLD_COLUMBUS, 88 + .scan = behold_columbus, 89 + .size = ARRAY_SIZE(behold_columbus), 90 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 91 + .name = RC_MAP_BEHOLD_COLUMBUS, 92 92 } 93 93 }; 94 94
+4 -4
drivers/media/rc/keymaps/rc-behold.c
··· 118 118 119 119 static struct rc_map_list behold_map = { 120 120 .map = { 121 - .scan = behold, 122 - .size = ARRAY_SIZE(behold), 123 - .rc_type = RC_TYPE_NEC, 124 - .name = RC_MAP_BEHOLD, 121 + .scan = behold, 122 + .size = ARRAY_SIZE(behold), 123 + .rc_proto = RC_PROTO_NEC, 124 + .name = RC_MAP_BEHOLD, 125 125 } 126 126 }; 127 127
+4 -4
drivers/media/rc/keymaps/rc-budget-ci-old.c
··· 70 70 71 71 static struct rc_map_list budget_ci_old_map = { 72 72 .map = { 73 - .scan = budget_ci_old, 74 - .size = ARRAY_SIZE(budget_ci_old), 75 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 76 - .name = RC_MAP_BUDGET_CI_OLD, 73 + .scan = budget_ci_old, 74 + .size = ARRAY_SIZE(budget_ci_old), 75 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 76 + .name = RC_MAP_BUDGET_CI_OLD, 77 77 } 78 78 }; 79 79
+1 -1
drivers/media/rc/keymaps/rc-cec.c
··· 160 160 .map = { 161 161 .scan = cec, 162 162 .size = ARRAY_SIZE(cec), 163 - .rc_type = RC_TYPE_CEC, 163 + .rc_proto = RC_PROTO_CEC, 164 164 .name = RC_MAP_CEC, 165 165 } 166 166 };
+4 -4
drivers/media/rc/keymaps/rc-cinergy-1400.c
··· 61 61 62 62 static struct rc_map_list cinergy_1400_map = { 63 63 .map = { 64 - .scan = cinergy_1400, 65 - .size = ARRAY_SIZE(cinergy_1400), 66 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 67 - .name = RC_MAP_CINERGY_1400, 64 + .scan = cinergy_1400, 65 + .size = ARRAY_SIZE(cinergy_1400), 66 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 67 + .name = RC_MAP_CINERGY_1400, 68 68 } 69 69 }; 70 70
+4 -4
drivers/media/rc/keymaps/rc-cinergy.c
··· 55 55 56 56 static struct rc_map_list cinergy_map = { 57 57 .map = { 58 - .scan = cinergy, 59 - .size = ARRAY_SIZE(cinergy), 60 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 61 - .name = RC_MAP_CINERGY, 58 + .scan = cinergy, 59 + .size = ARRAY_SIZE(cinergy), 60 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 61 + .name = RC_MAP_CINERGY, 62 62 } 63 63 }; 64 64
+4 -4
drivers/media/rc/keymaps/rc-d680-dmb.c
··· 51 51 52 52 static struct rc_map_list d680_dmb_map = { 53 53 .map = { 54 - .scan = rc_map_d680_dmb_table, 55 - .size = ARRAY_SIZE(rc_map_d680_dmb_table), 56 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 57 - .name = RC_MAP_D680_DMB, 54 + .scan = rc_map_d680_dmb_table, 55 + .size = ARRAY_SIZE(rc_map_d680_dmb_table), 56 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 57 + .name = RC_MAP_D680_DMB, 58 58 } 59 59 }; 60 60
+4 -4
drivers/media/rc/keymaps/rc-delock-61959.c
··· 58 58 59 59 static struct rc_map_list delock_61959_map = { 60 60 .map = { 61 - .scan = delock_61959, 62 - .size = ARRAY_SIZE(delock_61959), 63 - .rc_type = RC_TYPE_NEC, 64 - .name = RC_MAP_DELOCK_61959, 61 + .scan = delock_61959, 62 + .size = ARRAY_SIZE(delock_61959), 63 + .rc_proto = RC_PROTO_NEC, 64 + .name = RC_MAP_DELOCK_61959, 65 65 } 66 66 }; 67 67
+4 -4
drivers/media/rc/keymaps/rc-dib0700-nec.c
··· 101 101 102 102 static struct rc_map_list dib0700_nec_map = { 103 103 .map = { 104 - .scan = dib0700_nec_table, 105 - .size = ARRAY_SIZE(dib0700_nec_table), 106 - .rc_type = RC_TYPE_NEC, 107 - .name = RC_MAP_DIB0700_NEC_TABLE, 104 + .scan = dib0700_nec_table, 105 + .size = ARRAY_SIZE(dib0700_nec_table), 106 + .rc_proto = RC_PROTO_NEC, 107 + .name = RC_MAP_DIB0700_NEC_TABLE, 108 108 } 109 109 }; 110 110
+4 -4
drivers/media/rc/keymaps/rc-dib0700-rc5.c
··· 212 212 213 213 static struct rc_map_list dib0700_rc5_map = { 214 214 .map = { 215 - .scan = dib0700_rc5_table, 216 - .size = ARRAY_SIZE(dib0700_rc5_table), 217 - .rc_type = RC_TYPE_RC5, 218 - .name = RC_MAP_DIB0700_RC5_TABLE, 215 + .scan = dib0700_rc5_table, 216 + .size = ARRAY_SIZE(dib0700_rc5_table), 217 + .rc_proto = RC_PROTO_RC5, 218 + .name = RC_MAP_DIB0700_RC5_TABLE, 219 219 } 220 220 }; 221 221
+4 -4
drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
··· 75 75 76 76 static struct rc_map_list digitalnow_tinytwin_map = { 77 77 .map = { 78 - .scan = digitalnow_tinytwin, 79 - .size = ARRAY_SIZE(digitalnow_tinytwin), 80 - .rc_type = RC_TYPE_NEC, 81 - .name = RC_MAP_DIGITALNOW_TINYTWIN, 78 + .scan = digitalnow_tinytwin, 79 + .size = ARRAY_SIZE(digitalnow_tinytwin), 80 + .rc_proto = RC_PROTO_NEC, 81 + .name = RC_MAP_DIGITALNOW_TINYTWIN, 82 82 } 83 83 }; 84 84
+4 -4
drivers/media/rc/keymaps/rc-digittrade.c
··· 59 59 60 60 static struct rc_map_list digittrade_map = { 61 61 .map = { 62 - .scan = digittrade, 63 - .size = ARRAY_SIZE(digittrade), 64 - .rc_type = RC_TYPE_NEC, 65 - .name = RC_MAP_DIGITTRADE, 62 + .scan = digittrade, 63 + .size = ARRAY_SIZE(digittrade), 64 + .rc_proto = RC_PROTO_NEC, 65 + .name = RC_MAP_DIGITTRADE, 66 66 } 67 67 }; 68 68
+4 -4
drivers/media/rc/keymaps/rc-dm1105-nec.c
··· 53 53 54 54 static struct rc_map_list dm1105_nec_map = { 55 55 .map = { 56 - .scan = dm1105_nec, 57 - .size = ARRAY_SIZE(dm1105_nec), 58 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 59 - .name = RC_MAP_DM1105_NEC, 56 + .scan = dm1105_nec, 57 + .size = ARRAY_SIZE(dm1105_nec), 58 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 59 + .name = RC_MAP_DM1105_NEC, 60 60 } 61 61 }; 62 62
+4 -4
drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
··· 55 55 56 56 static struct rc_map_list dntv_live_dvb_t_map = { 57 57 .map = { 58 - .scan = dntv_live_dvb_t, 59 - .size = ARRAY_SIZE(dntv_live_dvb_t), 60 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 61 - .name = RC_MAP_DNTV_LIVE_DVB_T, 58 + .scan = dntv_live_dvb_t, 59 + .size = ARRAY_SIZE(dntv_live_dvb_t), 60 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 61 + .name = RC_MAP_DNTV_LIVE_DVB_T, 62 62 } 63 63 }; 64 64
+4 -4
drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
··· 74 74 75 75 static struct rc_map_list dntv_live_dvbt_pro_map = { 76 76 .map = { 77 - .scan = dntv_live_dvbt_pro, 78 - .size = ARRAY_SIZE(dntv_live_dvbt_pro), 79 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 80 - .name = RC_MAP_DNTV_LIVE_DVBT_PRO, 77 + .scan = dntv_live_dvbt_pro, 78 + .size = ARRAY_SIZE(dntv_live_dvbt_pro), 79 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 80 + .name = RC_MAP_DNTV_LIVE_DVBT_PRO, 81 81 } 82 82 }; 83 83
+4 -4
drivers/media/rc/keymaps/rc-dtt200u.c
··· 35 35 36 36 static struct rc_map_list dtt200u_map = { 37 37 .map = { 38 - .scan = dtt200u_table, 39 - .size = ARRAY_SIZE(dtt200u_table), 40 - .rc_type = RC_TYPE_NEC, 41 - .name = RC_MAP_DTT200U, 38 + .scan = dtt200u_table, 39 + .size = ARRAY_SIZE(dtt200u_table), 40 + .rc_proto = RC_PROTO_NEC, 41 + .name = RC_MAP_DTT200U, 42 42 } 43 43 }; 44 44
+4 -4
drivers/media/rc/keymaps/rc-dvbsky.c
··· 54 54 55 55 static struct rc_map_list rc5_dvbsky_map = { 56 56 .map = { 57 - .scan = rc5_dvbsky, 58 - .size = ARRAY_SIZE(rc5_dvbsky), 59 - .rc_type = RC_TYPE_RC5, 60 - .name = RC_MAP_DVBSKY, 57 + .scan = rc5_dvbsky, 58 + .size = ARRAY_SIZE(rc5_dvbsky), 59 + .rc_proto = RC_PROTO_RC5, 60 + .name = RC_MAP_DVBSKY, 61 61 } 62 62 }; 63 63
+4 -4
drivers/media/rc/keymaps/rc-dvico-mce.c
··· 61 61 62 62 static struct rc_map_list dvico_mce_map = { 63 63 .map = { 64 - .scan = rc_map_dvico_mce_table, 65 - .size = ARRAY_SIZE(rc_map_dvico_mce_table), 66 - .rc_type = RC_TYPE_NEC, 67 - .name = RC_MAP_DVICO_MCE, 64 + .scan = rc_map_dvico_mce_table, 65 + .size = ARRAY_SIZE(rc_map_dvico_mce_table), 66 + .rc_proto = RC_PROTO_NEC, 67 + .name = RC_MAP_DVICO_MCE, 68 68 } 69 69 }; 70 70
+4 -4
drivers/media/rc/keymaps/rc-dvico-portable.c
··· 52 52 53 53 static struct rc_map_list dvico_portable_map = { 54 54 .map = { 55 - .scan = rc_map_dvico_portable_table, 56 - .size = ARRAY_SIZE(rc_map_dvico_portable_table), 57 - .rc_type = RC_TYPE_NEC, 58 - .name = RC_MAP_DVICO_PORTABLE, 55 + .scan = rc_map_dvico_portable_table, 56 + .size = ARRAY_SIZE(rc_map_dvico_portable_table), 57 + .rc_proto = RC_PROTO_NEC, 58 + .name = RC_MAP_DVICO_PORTABLE, 59 59 } 60 60 }; 61 61
+4 -4
drivers/media/rc/keymaps/rc-em-terratec.c
··· 46 46 47 47 static struct rc_map_list em_terratec_map = { 48 48 .map = { 49 - .scan = em_terratec, 50 - .size = ARRAY_SIZE(em_terratec), 51 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 52 - .name = RC_MAP_EM_TERRATEC, 49 + .scan = em_terratec, 50 + .size = ARRAY_SIZE(em_terratec), 51 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 52 + .name = RC_MAP_EM_TERRATEC, 53 53 } 54 54 }; 55 55
+4 -4
drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
··· 58 58 59 59 static struct rc_map_list encore_enltv_fm53_map = { 60 60 .map = { 61 - .scan = encore_enltv_fm53, 62 - .size = ARRAY_SIZE(encore_enltv_fm53), 63 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 64 - .name = RC_MAP_ENCORE_ENLTV_FM53, 61 + .scan = encore_enltv_fm53, 62 + .size = ARRAY_SIZE(encore_enltv_fm53), 63 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 64 + .name = RC_MAP_ENCORE_ENLTV_FM53, 65 65 } 66 66 }; 67 67
+4 -4
drivers/media/rc/keymaps/rc-encore-enltv.c
··· 89 89 90 90 static struct rc_map_list encore_enltv_map = { 91 91 .map = { 92 - .scan = encore_enltv, 93 - .size = ARRAY_SIZE(encore_enltv), 94 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 95 - .name = RC_MAP_ENCORE_ENLTV, 92 + .scan = encore_enltv, 93 + .size = ARRAY_SIZE(encore_enltv), 94 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 95 + .name = RC_MAP_ENCORE_ENLTV, 96 96 } 97 97 }; 98 98
+4 -4
drivers/media/rc/keymaps/rc-encore-enltv2.c
··· 67 67 68 68 static struct rc_map_list encore_enltv2_map = { 69 69 .map = { 70 - .scan = encore_enltv2, 71 - .size = ARRAY_SIZE(encore_enltv2), 72 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 73 - .name = RC_MAP_ENCORE_ENLTV2, 70 + .scan = encore_enltv2, 71 + .size = ARRAY_SIZE(encore_enltv2), 72 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 73 + .name = RC_MAP_ENCORE_ENLTV2, 74 74 } 75 75 }; 76 76
+4 -4
drivers/media/rc/keymaps/rc-evga-indtube.c
··· 38 38 39 39 static struct rc_map_list evga_indtube_map = { 40 40 .map = { 41 - .scan = evga_indtube, 42 - .size = ARRAY_SIZE(evga_indtube), 43 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 44 - .name = RC_MAP_EVGA_INDTUBE, 41 + .scan = evga_indtube, 42 + .size = ARRAY_SIZE(evga_indtube), 43 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 44 + .name = RC_MAP_EVGA_INDTUBE, 45 45 } 46 46 }; 47 47
+4 -4
drivers/media/rc/keymaps/rc-eztv.c
··· 73 73 74 74 static struct rc_map_list eztv_map = { 75 75 .map = { 76 - .scan = eztv, 77 - .size = ARRAY_SIZE(eztv), 78 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 79 - .name = RC_MAP_EZTV, 76 + .scan = eztv, 77 + .size = ARRAY_SIZE(eztv), 78 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 79 + .name = RC_MAP_EZTV, 80 80 } 81 81 }; 82 82
+4 -4
drivers/media/rc/keymaps/rc-flydvb.c
··· 54 54 55 55 static struct rc_map_list flydvb_map = { 56 56 .map = { 57 - .scan = flydvb, 58 - .size = ARRAY_SIZE(flydvb), 59 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 60 - .name = RC_MAP_FLYDVB, 57 + .scan = flydvb, 58 + .size = ARRAY_SIZE(flydvb), 59 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 60 + .name = RC_MAP_FLYDVB, 61 61 } 62 62 }; 63 63
+4 -4
drivers/media/rc/keymaps/rc-flyvideo.c
··· 47 47 48 48 static struct rc_map_list flyvideo_map = { 49 49 .map = { 50 - .scan = flyvideo, 51 - .size = ARRAY_SIZE(flyvideo), 52 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 53 - .name = RC_MAP_FLYVIDEO, 50 + .scan = flyvideo, 51 + .size = ARRAY_SIZE(flyvideo), 52 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 53 + .name = RC_MAP_FLYVIDEO, 54 54 } 55 55 }; 56 56
+4 -4
drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
··· 75 75 76 76 static struct rc_map_list fusionhdtv_mce_map = { 77 77 .map = { 78 - .scan = fusionhdtv_mce, 79 - .size = ARRAY_SIZE(fusionhdtv_mce), 80 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 81 - .name = RC_MAP_FUSIONHDTV_MCE, 78 + .scan = fusionhdtv_mce, 79 + .size = ARRAY_SIZE(fusionhdtv_mce), 80 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 81 + .name = RC_MAP_FUSIONHDTV_MCE, 82 82 } 83 83 }; 84 84
+4 -4
drivers/media/rc/keymaps/rc-gadmei-rm008z.c
··· 58 58 59 59 static struct rc_map_list gadmei_rm008z_map = { 60 60 .map = { 61 - .scan = gadmei_rm008z, 62 - .size = ARRAY_SIZE(gadmei_rm008z), 63 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 64 - .name = RC_MAP_GADMEI_RM008Z, 61 + .scan = gadmei_rm008z, 62 + .size = ARRAY_SIZE(gadmei_rm008z), 63 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 64 + .name = RC_MAP_GADMEI_RM008Z, 65 65 } 66 66 }; 67 67
+4 -4
drivers/media/rc/keymaps/rc-geekbox.c
··· 31 31 32 32 static struct rc_map_list geekbox_map = { 33 33 .map = { 34 - .scan = geekbox, 35 - .size = ARRAY_SIZE(geekbox), 36 - .rc_type = RC_TYPE_NEC, 37 - .name = RC_MAP_GEEKBOX, 34 + .scan = geekbox, 35 + .size = ARRAY_SIZE(geekbox), 36 + .rc_proto = RC_PROTO_NEC, 37 + .name = RC_MAP_GEEKBOX, 38 38 } 39 39 }; 40 40
+4 -4
drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
··· 61 61 62 62 static struct rc_map_list genius_tvgo_a11mce_map = { 63 63 .map = { 64 - .scan = genius_tvgo_a11mce, 65 - .size = ARRAY_SIZE(genius_tvgo_a11mce), 66 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 67 - .name = RC_MAP_GENIUS_TVGO_A11MCE, 64 + .scan = genius_tvgo_a11mce, 65 + .size = ARRAY_SIZE(genius_tvgo_a11mce), 66 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 67 + .name = RC_MAP_GENIUS_TVGO_A11MCE, 68 68 } 69 69 }; 70 70
+4 -4
drivers/media/rc/keymaps/rc-gotview7135.c
··· 56 56 57 57 static struct rc_map_list gotview7135_map = { 58 58 .map = { 59 - .scan = gotview7135, 60 - .size = ARRAY_SIZE(gotview7135), 61 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 62 - .name = RC_MAP_GOTVIEW7135, 59 + .scan = gotview7135, 60 + .size = ARRAY_SIZE(gotview7135), 61 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 62 + .name = RC_MAP_GOTVIEW7135, 63 63 } 64 64 }; 65 65
+4 -4
drivers/media/rc/keymaps/rc-hauppauge.c
··· 269 269 270 270 static struct rc_map_list rc5_hauppauge_new_map = { 271 271 .map = { 272 - .scan = rc5_hauppauge_new, 273 - .size = ARRAY_SIZE(rc5_hauppauge_new), 274 - .rc_type = RC_TYPE_RC5, 275 - .name = RC_MAP_HAUPPAUGE, 272 + .scan = rc5_hauppauge_new, 273 + .size = ARRAY_SIZE(rc5_hauppauge_new), 274 + .rc_proto = RC_PROTO_RC5, 275 + .name = RC_MAP_HAUPPAUGE, 276 276 } 277 277 }; 278 278
+4 -4
drivers/media/rc/keymaps/rc-imon-mce.c
··· 118 118 119 119 static struct rc_map_list imon_mce_map = { 120 120 .map = { 121 - .scan = imon_mce, 122 - .size = ARRAY_SIZE(imon_mce), 121 + .scan = imon_mce, 122 + .size = ARRAY_SIZE(imon_mce), 123 123 /* its RC6, but w/a hardware decoder */ 124 - .rc_type = RC_TYPE_RC6_MCE, 125 - .name = RC_MAP_IMON_MCE, 124 + .rc_proto = RC_PROTO_RC6_MCE, 125 + .name = RC_MAP_IMON_MCE, 126 126 } 127 127 }; 128 128
+4 -4
drivers/media/rc/keymaps/rc-imon-pad.c
··· 132 132 133 133 static struct rc_map_list imon_pad_map = { 134 134 .map = { 135 - .scan = imon_pad, 136 - .size = ARRAY_SIZE(imon_pad), 135 + .scan = imon_pad, 136 + .size = ARRAY_SIZE(imon_pad), 137 137 /* actual protocol details unknown, hardware decoder */ 138 - .rc_type = RC_TYPE_OTHER, 139 - .name = RC_MAP_IMON_PAD, 138 + .rc_proto = RC_PROTO_OTHER, 139 + .name = RC_MAP_IMON_PAD, 140 140 } 141 141 }; 142 142
+4 -4
drivers/media/rc/keymaps/rc-iodata-bctv7e.c
··· 65 65 66 66 static struct rc_map_list iodata_bctv7e_map = { 67 67 .map = { 68 - .scan = iodata_bctv7e, 69 - .size = ARRAY_SIZE(iodata_bctv7e), 70 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 71 - .name = RC_MAP_IODATA_BCTV7E, 68 + .scan = iodata_bctv7e, 69 + .size = ARRAY_SIZE(iodata_bctv7e), 70 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 71 + .name = RC_MAP_IODATA_BCTV7E, 72 72 } 73 73 }; 74 74
+4 -4
drivers/media/rc/keymaps/rc-it913x-v1.c
··· 71 71 72 72 static struct rc_map_list it913x_v1_map = { 73 73 .map = { 74 - .scan = it913x_v1_rc, 75 - .size = ARRAY_SIZE(it913x_v1_rc), 76 - .rc_type = RC_TYPE_NEC, 77 - .name = RC_MAP_IT913X_V1, 74 + .scan = it913x_v1_rc, 75 + .size = ARRAY_SIZE(it913x_v1_rc), 76 + .rc_proto = RC_PROTO_NEC, 77 + .name = RC_MAP_IT913X_V1, 78 78 } 79 79 }; 80 80
+4 -4
drivers/media/rc/keymaps/rc-it913x-v2.c
··· 70 70 71 71 static struct rc_map_list it913x_v2_map = { 72 72 .map = { 73 - .scan = it913x_v2_rc, 74 - .size = ARRAY_SIZE(it913x_v2_rc), 75 - .rc_type = RC_TYPE_NEC, 76 - .name = RC_MAP_IT913X_V2, 73 + .scan = it913x_v2_rc, 74 + .size = ARRAY_SIZE(it913x_v2_rc), 75 + .rc_proto = RC_PROTO_NEC, 76 + .name = RC_MAP_IT913X_V2, 77 77 } 78 78 }; 79 79
+4 -4
drivers/media/rc/keymaps/rc-kaiomy.c
··· 64 64 65 65 static struct rc_map_list kaiomy_map = { 66 66 .map = { 67 - .scan = kaiomy, 68 - .size = ARRAY_SIZE(kaiomy), 69 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 70 - .name = RC_MAP_KAIOMY, 67 + .scan = kaiomy, 68 + .size = ARRAY_SIZE(kaiomy), 69 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 70 + .name = RC_MAP_KAIOMY, 71 71 } 72 72 }; 73 73
+4 -4
drivers/media/rc/keymaps/rc-kworld-315u.c
··· 60 60 61 61 static struct rc_map_list kworld_315u_map = { 62 62 .map = { 63 - .scan = kworld_315u, 64 - .size = ARRAY_SIZE(kworld_315u), 65 - .rc_type = RC_TYPE_NEC, 66 - .name = RC_MAP_KWORLD_315U, 63 + .scan = kworld_315u, 64 + .size = ARRAY_SIZE(kworld_315u), 65 + .rc_proto = RC_PROTO_NEC, 66 + .name = RC_MAP_KWORLD_315U, 67 67 } 68 68 }; 69 69
+4 -4
drivers/media/rc/keymaps/rc-kworld-pc150u.c
··· 78 78 79 79 static struct rc_map_list kworld_pc150u_map = { 80 80 .map = { 81 - .scan = kworld_pc150u, 82 - .size = ARRAY_SIZE(kworld_pc150u), 83 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 84 - .name = RC_MAP_KWORLD_PC150U, 81 + .scan = kworld_pc150u, 82 + .size = ARRAY_SIZE(kworld_pc150u), 83 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 84 + .name = RC_MAP_KWORLD_PC150U, 85 85 } 86 86 }; 87 87
+4 -4
drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
··· 76 76 77 77 static struct rc_map_list kworld_plus_tv_analog_map = { 78 78 .map = { 79 - .scan = kworld_plus_tv_analog, 80 - .size = ARRAY_SIZE(kworld_plus_tv_analog), 81 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 82 - .name = RC_MAP_KWORLD_PLUS_TV_ANALOG, 79 + .scan = kworld_plus_tv_analog, 80 + .size = ARRAY_SIZE(kworld_plus_tv_analog), 81 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 82 + .name = RC_MAP_KWORLD_PLUS_TV_ANALOG, 83 83 } 84 84 }; 85 85
+4 -4
drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
··· 76 76 77 77 static struct rc_map_list leadtek_y04g0051_map = { 78 78 .map = { 79 - .scan = leadtek_y04g0051, 80 - .size = ARRAY_SIZE(leadtek_y04g0051), 81 - .rc_type = RC_TYPE_NEC, 82 - .name = RC_MAP_LEADTEK_Y04G0051, 79 + .scan = leadtek_y04g0051, 80 + .size = ARRAY_SIZE(leadtek_y04g0051), 81 + .rc_proto = RC_PROTO_NEC, 82 + .name = RC_MAP_LEADTEK_Y04G0051, 83 83 } 84 84 }; 85 85
+4 -4
drivers/media/rc/keymaps/rc-lme2510.c
··· 87 87 88 88 static struct rc_map_list lme2510_map = { 89 89 .map = { 90 - .scan = lme2510_rc, 91 - .size = ARRAY_SIZE(lme2510_rc), 92 - .rc_type = RC_TYPE_NEC, 93 - .name = RC_MAP_LME2510, 90 + .scan = lme2510_rc, 91 + .size = ARRAY_SIZE(lme2510_rc), 92 + .rc_proto = RC_PROTO_NEC, 93 + .name = RC_MAP_LME2510, 94 94 } 95 95 }; 96 96
+4 -4
drivers/media/rc/keymaps/rc-manli.c
··· 111 111 112 112 static struct rc_map_list manli_map = { 113 113 .map = { 114 - .scan = manli, 115 - .size = ARRAY_SIZE(manli), 116 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 117 - .name = RC_MAP_MANLI, 114 + .scan = manli, 115 + .size = ARRAY_SIZE(manli), 116 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 117 + .name = RC_MAP_MANLI, 118 118 } 119 119 }; 120 120
+4 -4
drivers/media/rc/keymaps/rc-medion-x10-digitainer.c
··· 98 98 99 99 static struct rc_map_list medion_x10_digitainer_map = { 100 100 .map = { 101 - .scan = medion_x10_digitainer, 102 - .size = ARRAY_SIZE(medion_x10_digitainer), 103 - .rc_type = RC_TYPE_OTHER, 104 - .name = RC_MAP_MEDION_X10_DIGITAINER, 101 + .scan = medion_x10_digitainer, 102 + .size = ARRAY_SIZE(medion_x10_digitainer), 103 + .rc_proto = RC_PROTO_OTHER, 104 + .name = RC_MAP_MEDION_X10_DIGITAINER, 105 105 } 106 106 }; 107 107
+4 -4
drivers/media/rc/keymaps/rc-medion-x10-or2x.c
··· 83 83 84 84 static struct rc_map_list medion_x10_or2x_map = { 85 85 .map = { 86 - .scan = medion_x10_or2x, 87 - .size = ARRAY_SIZE(medion_x10_or2x), 88 - .rc_type = RC_TYPE_OTHER, 89 - .name = RC_MAP_MEDION_X10_OR2X, 86 + .scan = medion_x10_or2x, 87 + .size = ARRAY_SIZE(medion_x10_or2x), 88 + .rc_proto = RC_PROTO_OTHER, 89 + .name = RC_MAP_MEDION_X10_OR2X, 90 90 } 91 91 }; 92 92
+4 -4
drivers/media/rc/keymaps/rc-medion-x10.c
··· 93 93 94 94 static struct rc_map_list medion_x10_map = { 95 95 .map = { 96 - .scan = medion_x10, 97 - .size = ARRAY_SIZE(medion_x10), 98 - .rc_type = RC_TYPE_OTHER, 99 - .name = RC_MAP_MEDION_X10, 96 + .scan = medion_x10, 97 + .size = ARRAY_SIZE(medion_x10), 98 + .rc_proto = RC_PROTO_OTHER, 99 + .name = RC_MAP_MEDION_X10, 100 100 } 101 101 }; 102 102
+4 -4
drivers/media/rc/keymaps/rc-msi-digivox-ii.c
··· 44 44 45 45 static struct rc_map_list msi_digivox_ii_map = { 46 46 .map = { 47 - .scan = msi_digivox_ii, 48 - .size = ARRAY_SIZE(msi_digivox_ii), 49 - .rc_type = RC_TYPE_NEC, 50 - .name = RC_MAP_MSI_DIGIVOX_II, 47 + .scan = msi_digivox_ii, 48 + .size = ARRAY_SIZE(msi_digivox_ii), 49 + .rc_proto = RC_PROTO_NEC, 50 + .name = RC_MAP_MSI_DIGIVOX_II, 51 51 } 52 52 }; 53 53
+4 -4
drivers/media/rc/keymaps/rc-msi-digivox-iii.c
··· 62 62 63 63 static struct rc_map_list msi_digivox_iii_map = { 64 64 .map = { 65 - .scan = msi_digivox_iii, 66 - .size = ARRAY_SIZE(msi_digivox_iii), 67 - .rc_type = RC_TYPE_NEC, 68 - .name = RC_MAP_MSI_DIGIVOX_III, 65 + .scan = msi_digivox_iii, 66 + .size = ARRAY_SIZE(msi_digivox_iii), 67 + .rc_proto = RC_PROTO_NEC, 68 + .name = RC_MAP_MSI_DIGIVOX_III, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
··· 100 100 101 101 static struct rc_map_list msi_tvanywhere_plus_map = { 102 102 .map = { 103 - .scan = msi_tvanywhere_plus, 104 - .size = ARRAY_SIZE(msi_tvanywhere_plus), 105 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 106 - .name = RC_MAP_MSI_TVANYWHERE_PLUS, 103 + .scan = msi_tvanywhere_plus, 104 + .size = ARRAY_SIZE(msi_tvanywhere_plus), 105 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 106 + .name = RC_MAP_MSI_TVANYWHERE_PLUS, 107 107 } 108 108 }; 109 109
+4 -4
drivers/media/rc/keymaps/rc-msi-tvanywhere.c
··· 46 46 47 47 static struct rc_map_list msi_tvanywhere_map = { 48 48 .map = { 49 - .scan = msi_tvanywhere, 50 - .size = ARRAY_SIZE(msi_tvanywhere), 51 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 52 - .name = RC_MAP_MSI_TVANYWHERE, 49 + .scan = msi_tvanywhere, 50 + .size = ARRAY_SIZE(msi_tvanywhere), 51 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 52 + .name = RC_MAP_MSI_TVANYWHERE, 53 53 } 54 54 }; 55 55
+4 -4
drivers/media/rc/keymaps/rc-nebula.c
··· 73 73 74 74 static struct rc_map_list nebula_map = { 75 75 .map = { 76 - .scan = nebula, 77 - .size = ARRAY_SIZE(nebula), 78 - .rc_type = RC_TYPE_RC5, 79 - .name = RC_MAP_NEBULA, 76 + .scan = nebula, 77 + .size = ARRAY_SIZE(nebula), 78 + .rc_proto = RC_PROTO_RC5, 79 + .name = RC_MAP_NEBULA, 80 80 } 81 81 }; 82 82
+4 -4
drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
··· 134 134 135 135 static struct rc_map_list nec_terratec_cinergy_xs_map = { 136 136 .map = { 137 - .scan = nec_terratec_cinergy_xs, 138 - .size = ARRAY_SIZE(nec_terratec_cinergy_xs), 139 - .rc_type = RC_TYPE_NEC, 140 - .name = RC_MAP_NEC_TERRATEC_CINERGY_XS, 137 + .scan = nec_terratec_cinergy_xs, 138 + .size = ARRAY_SIZE(nec_terratec_cinergy_xs), 139 + .rc_proto = RC_PROTO_NEC, 140 + .name = RC_MAP_NEC_TERRATEC_CINERGY_XS, 141 141 } 142 142 }; 143 143
+4 -4
drivers/media/rc/keymaps/rc-norwood.c
··· 62 62 63 63 static struct rc_map_list norwood_map = { 64 64 .map = { 65 - .scan = norwood, 66 - .size = ARRAY_SIZE(norwood), 67 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 68 - .name = RC_MAP_NORWOOD, 65 + .scan = norwood, 66 + .size = ARRAY_SIZE(norwood), 67 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 68 + .name = RC_MAP_NORWOOD, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-npgtech.c
··· 57 57 58 58 static struct rc_map_list npgtech_map = { 59 59 .map = { 60 - .scan = npgtech, 61 - .size = ARRAY_SIZE(npgtech), 62 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 63 - .name = RC_MAP_NPGTECH, 60 + .scan = npgtech, 61 + .size = ARRAY_SIZE(npgtech), 62 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 63 + .name = RC_MAP_NPGTECH, 64 64 } 65 65 }; 66 66
+4 -4
drivers/media/rc/keymaps/rc-pctv-sedna.c
··· 57 57 58 58 static struct rc_map_list pctv_sedna_map = { 59 59 .map = { 60 - .scan = pctv_sedna, 61 - .size = ARRAY_SIZE(pctv_sedna), 62 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 63 - .name = RC_MAP_PCTV_SEDNA, 60 + .scan = pctv_sedna, 61 + .size = ARRAY_SIZE(pctv_sedna), 62 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 63 + .name = RC_MAP_PCTV_SEDNA, 64 64 } 65 65 }; 66 66
+4 -4
drivers/media/rc/keymaps/rc-pinnacle-color.c
··· 71 71 72 72 static struct rc_map_list pinnacle_color_map = { 73 73 .map = { 74 - .scan = pinnacle_color, 75 - .size = ARRAY_SIZE(pinnacle_color), 76 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 77 - .name = RC_MAP_PINNACLE_COLOR, 74 + .scan = pinnacle_color, 75 + .size = ARRAY_SIZE(pinnacle_color), 76 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 77 + .name = RC_MAP_PINNACLE_COLOR, 78 78 } 79 79 }; 80 80
+4 -4
drivers/media/rc/keymaps/rc-pinnacle-grey.c
··· 66 66 67 67 static struct rc_map_list pinnacle_grey_map = { 68 68 .map = { 69 - .scan = pinnacle_grey, 70 - .size = ARRAY_SIZE(pinnacle_grey), 71 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 72 - .name = RC_MAP_PINNACLE_GREY, 69 + .scan = pinnacle_grey, 70 + .size = ARRAY_SIZE(pinnacle_grey), 71 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 72 + .name = RC_MAP_PINNACLE_GREY, 73 73 } 74 74 }; 75 75
+4 -4
drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
··· 47 47 48 48 static struct rc_map_list pinnacle_pctv_hd_map = { 49 49 .map = { 50 - .scan = pinnacle_pctv_hd, 51 - .size = ARRAY_SIZE(pinnacle_pctv_hd), 52 - .rc_type = RC_TYPE_RC5, 53 - .name = RC_MAP_PINNACLE_PCTV_HD, 50 + .scan = pinnacle_pctv_hd, 51 + .size = ARRAY_SIZE(pinnacle_pctv_hd), 52 + .rc_proto = RC_PROTO_RC5, 53 + .name = RC_MAP_PINNACLE_PCTV_HD, 54 54 } 55 55 }; 56 56
+4 -4
drivers/media/rc/keymaps/rc-pixelview-002t.c
··· 54 54 55 55 static struct rc_map_list pixelview_map = { 56 56 .map = { 57 - .scan = pixelview_002t, 58 - .size = ARRAY_SIZE(pixelview_002t), 59 - .rc_type = RC_TYPE_NEC, 60 - .name = RC_MAP_PIXELVIEW_002T, 57 + .scan = pixelview_002t, 58 + .size = ARRAY_SIZE(pixelview_002t), 59 + .rc_proto = RC_PROTO_NEC, 60 + .name = RC_MAP_PIXELVIEW_002T, 61 61 } 62 62 }; 63 63
+4 -4
drivers/media/rc/keymaps/rc-pixelview-mk12.c
··· 60 60 61 61 static struct rc_map_list pixelview_map = { 62 62 .map = { 63 - .scan = pixelview_mk12, 64 - .size = ARRAY_SIZE(pixelview_mk12), 65 - .rc_type = RC_TYPE_NEC, 66 - .name = RC_MAP_PIXELVIEW_MK12, 63 + .scan = pixelview_mk12, 64 + .size = ARRAY_SIZE(pixelview_mk12), 65 + .rc_proto = RC_PROTO_NEC, 66 + .name = RC_MAP_PIXELVIEW_MK12, 67 67 } 68 68 }; 69 69
+4 -4
drivers/media/rc/keymaps/rc-pixelview-new.c
··· 60 60 61 61 static struct rc_map_list pixelview_new_map = { 62 62 .map = { 63 - .scan = pixelview_new, 64 - .size = ARRAY_SIZE(pixelview_new), 65 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 66 - .name = RC_MAP_PIXELVIEW_NEW, 63 + .scan = pixelview_new, 64 + .size = ARRAY_SIZE(pixelview_new), 65 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 66 + .name = RC_MAP_PIXELVIEW_NEW, 67 67 } 68 68 }; 69 69
+4 -4
drivers/media/rc/keymaps/rc-pixelview.c
··· 59 59 60 60 static struct rc_map_list pixelview_map = { 61 61 .map = { 62 - .scan = pixelview, 63 - .size = ARRAY_SIZE(pixelview), 64 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 65 - .name = RC_MAP_PIXELVIEW, 62 + .scan = pixelview, 63 + .size = ARRAY_SIZE(pixelview), 64 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 65 + .name = RC_MAP_PIXELVIEW, 66 66 } 67 67 }; 68 68
+4 -4
drivers/media/rc/keymaps/rc-powercolor-real-angel.c
··· 58 58 59 59 static struct rc_map_list powercolor_real_angel_map = { 60 60 .map = { 61 - .scan = powercolor_real_angel, 62 - .size = ARRAY_SIZE(powercolor_real_angel), 63 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 64 - .name = RC_MAP_POWERCOLOR_REAL_ANGEL, 61 + .scan = powercolor_real_angel, 62 + .size = ARRAY_SIZE(powercolor_real_angel), 63 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 64 + .name = RC_MAP_POWERCOLOR_REAL_ANGEL, 65 65 } 66 66 }; 67 67
+4 -4
drivers/media/rc/keymaps/rc-proteus-2309.c
··· 46 46 47 47 static struct rc_map_list proteus_2309_map = { 48 48 .map = { 49 - .scan = proteus_2309, 50 - .size = ARRAY_SIZE(proteus_2309), 51 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 52 - .name = RC_MAP_PROTEUS_2309, 49 + .scan = proteus_2309, 50 + .size = ARRAY_SIZE(proteus_2309), 51 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 52 + .name = RC_MAP_PROTEUS_2309, 53 53 } 54 54 }; 55 55
+4 -4
drivers/media/rc/keymaps/rc-purpletv.c
··· 58 58 59 59 static struct rc_map_list purpletv_map = { 60 60 .map = { 61 - .scan = purpletv, 62 - .size = ARRAY_SIZE(purpletv), 63 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 64 - .name = RC_MAP_PURPLETV, 61 + .scan = purpletv, 62 + .size = ARRAY_SIZE(purpletv), 63 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 64 + .name = RC_MAP_PURPLETV, 65 65 } 66 66 }; 67 67
+4 -4
drivers/media/rc/keymaps/rc-pv951.c
··· 55 55 56 56 static struct rc_map_list pv951_map = { 57 57 .map = { 58 - .scan = pv951, 59 - .size = ARRAY_SIZE(pv951), 60 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 61 - .name = RC_MAP_PV951, 58 + .scan = pv951, 59 + .size = ARRAY_SIZE(pv951), 60 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 61 + .name = RC_MAP_PV951, 62 62 } 63 63 }; 64 64
+4 -4
drivers/media/rc/keymaps/rc-rc6-mce.c
··· 96 96 97 97 static struct rc_map_list rc6_mce_map = { 98 98 .map = { 99 - .scan = rc6_mce, 100 - .size = ARRAY_SIZE(rc6_mce), 101 - .rc_type = RC_TYPE_RC6_MCE, 102 - .name = RC_MAP_RC6_MCE, 99 + .scan = rc6_mce, 100 + .size = ARRAY_SIZE(rc6_mce), 101 + .rc_proto = RC_PROTO_RC6_MCE, 102 + .name = RC_MAP_RC6_MCE, 103 103 } 104 104 }; 105 105
+4 -4
drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
··· 55 55 56 56 static struct rc_map_list real_audio_220_32_keys_map = { 57 57 .map = { 58 - .scan = real_audio_220_32_keys, 59 - .size = ARRAY_SIZE(real_audio_220_32_keys), 60 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 61 - .name = RC_MAP_REAL_AUDIO_220_32_KEYS, 58 + .scan = real_audio_220_32_keys, 59 + .size = ARRAY_SIZE(real_audio_220_32_keys), 60 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 61 + .name = RC_MAP_REAL_AUDIO_220_32_KEYS, 62 62 } 63 63 }; 64 64
+4 -4
drivers/media/rc/keymaps/rc-reddo.c
··· 62 62 63 63 static struct rc_map_list reddo_map = { 64 64 .map = { 65 - .scan = reddo, 66 - .size = ARRAY_SIZE(reddo), 67 - .rc_type = RC_TYPE_NEC, 68 - .name = RC_MAP_REDDO, 65 + .scan = reddo, 66 + .size = ARRAY_SIZE(reddo), 67 + .rc_proto = RC_PROTO_NEC, 68 + .name = RC_MAP_REDDO, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-snapstream-firefly.c
··· 83 83 84 84 static struct rc_map_list snapstream_firefly_map = { 85 85 .map = { 86 - .scan = snapstream_firefly, 87 - .size = ARRAY_SIZE(snapstream_firefly), 88 - .rc_type = RC_TYPE_OTHER, 89 - .name = RC_MAP_SNAPSTREAM_FIREFLY, 86 + .scan = snapstream_firefly, 87 + .size = ARRAY_SIZE(snapstream_firefly), 88 + .rc_proto = RC_PROTO_OTHER, 89 + .name = RC_MAP_SNAPSTREAM_FIREFLY, 90 90 } 91 91 }; 92 92
+4 -4
drivers/media/rc/keymaps/rc-streamzap.c
··· 57 57 58 58 static struct rc_map_list streamzap_map = { 59 59 .map = { 60 - .scan = streamzap, 61 - .size = ARRAY_SIZE(streamzap), 62 - .rc_type = RC_TYPE_RC5_SZ, 63 - .name = RC_MAP_STREAMZAP, 60 + .scan = streamzap, 61 + .size = ARRAY_SIZE(streamzap), 62 + .rc_proto = RC_PROTO_RC5_SZ, 63 + .name = RC_MAP_STREAMZAP, 64 64 } 65 65 }; 66 66
+4 -4
drivers/media/rc/keymaps/rc-su3000.c
··· 51 51 52 52 static struct rc_map_list su3000_map = { 53 53 .map = { 54 - .scan = su3000, 55 - .size = ARRAY_SIZE(su3000), 56 - .rc_type = RC_TYPE_RC5, 57 - .name = RC_MAP_SU3000, 54 + .scan = su3000, 55 + .size = ARRAY_SIZE(su3000), 56 + .rc_proto = RC_PROTO_RC5, 57 + .name = RC_MAP_SU3000, 58 58 } 59 59 }; 60 60
+4 -4
drivers/media/rc/keymaps/rc-tbs-nec.c
··· 52 52 53 53 static struct rc_map_list tbs_nec_map = { 54 54 .map = { 55 - .scan = tbs_nec, 56 - .size = ARRAY_SIZE(tbs_nec), 57 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 58 - .name = RC_MAP_TBS_NEC, 55 + .scan = tbs_nec, 56 + .size = ARRAY_SIZE(tbs_nec), 57 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 58 + .name = RC_MAP_TBS_NEC, 59 59 } 60 60 }; 61 61
+4 -4
drivers/media/rc/keymaps/rc-technisat-ts35.c
··· 53 53 54 54 static struct rc_map_list technisat_ts35_map = { 55 55 .map = { 56 - .scan = technisat_ts35, 57 - .size = ARRAY_SIZE(technisat_ts35), 58 - .rc_type = RC_TYPE_UNKNOWN, 59 - .name = RC_MAP_TECHNISAT_TS35, 56 + .scan = technisat_ts35, 57 + .size = ARRAY_SIZE(technisat_ts35), 58 + .rc_proto = RC_PROTO_UNKNOWN, 59 + .name = RC_MAP_TECHNISAT_TS35, 60 60 } 61 61 }; 62 62
+4 -4
drivers/media/rc/keymaps/rc-technisat-usb2.c
··· 66 66 67 67 static struct rc_map_list technisat_usb2_map = { 68 68 .map = { 69 - .scan = technisat_usb2, 70 - .size = ARRAY_SIZE(technisat_usb2), 71 - .rc_type = RC_TYPE_RC5, 72 - .name = RC_MAP_TECHNISAT_USB2, 69 + .scan = technisat_usb2, 70 + .size = ARRAY_SIZE(technisat_usb2), 71 + .rc_proto = RC_PROTO_RC5, 72 + .name = RC_MAP_TECHNISAT_USB2, 73 73 } 74 74 }; 75 75
+4 -4
drivers/media/rc/keymaps/rc-terratec-cinergy-c-pci.c
··· 65 65 66 66 static struct rc_map_list terratec_cinergy_c_pci_map = { 67 67 .map = { 68 - .scan = terratec_cinergy_c_pci, 69 - .size = ARRAY_SIZE(terratec_cinergy_c_pci), 70 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 71 - .name = RC_MAP_TERRATEC_CINERGY_C_PCI, 68 + .scan = terratec_cinergy_c_pci, 69 + .size = ARRAY_SIZE(terratec_cinergy_c_pci), 70 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 71 + .name = RC_MAP_TERRATEC_CINERGY_C_PCI, 72 72 } 73 73 }; 74 74
+4 -4
drivers/media/rc/keymaps/rc-terratec-cinergy-s2-hd.c
··· 63 63 64 64 static struct rc_map_list terratec_cinergy_s2_hd_map = { 65 65 .map = { 66 - .scan = terratec_cinergy_s2_hd, 67 - .size = ARRAY_SIZE(terratec_cinergy_s2_hd), 68 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 69 - .name = RC_MAP_TERRATEC_CINERGY_S2_HD, 66 + .scan = terratec_cinergy_s2_hd, 67 + .size = ARRAY_SIZE(terratec_cinergy_s2_hd), 68 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 69 + .name = RC_MAP_TERRATEC_CINERGY_S2_HD, 70 70 } 71 71 }; 72 72
+4 -4
drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
··· 69 69 70 70 static struct rc_map_list terratec_cinergy_xs_map = { 71 71 .map = { 72 - .scan = terratec_cinergy_xs, 73 - .size = ARRAY_SIZE(terratec_cinergy_xs), 74 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 75 - .name = RC_MAP_TERRATEC_CINERGY_XS, 72 + .scan = terratec_cinergy_xs, 73 + .size = ARRAY_SIZE(terratec_cinergy_xs), 74 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 75 + .name = RC_MAP_TERRATEC_CINERGY_XS, 76 76 } 77 77 }; 78 78
+4 -4
drivers/media/rc/keymaps/rc-terratec-slim-2.c
··· 49 49 50 50 static struct rc_map_list terratec_slim_2_map = { 51 51 .map = { 52 - .scan = terratec_slim_2, 53 - .size = ARRAY_SIZE(terratec_slim_2), 54 - .rc_type = RC_TYPE_NEC, 55 - .name = RC_MAP_TERRATEC_SLIM_2, 52 + .scan = terratec_slim_2, 53 + .size = ARRAY_SIZE(terratec_slim_2), 54 + .rc_proto = RC_PROTO_NEC, 55 + .name = RC_MAP_TERRATEC_SLIM_2, 56 56 } 57 57 }; 58 58
+4 -4
drivers/media/rc/keymaps/rc-terratec-slim.c
··· 56 56 57 57 static struct rc_map_list terratec_slim_map = { 58 58 .map = { 59 - .scan = terratec_slim, 60 - .size = ARRAY_SIZE(terratec_slim), 61 - .rc_type = RC_TYPE_NEC, 62 - .name = RC_MAP_TERRATEC_SLIM, 59 + .scan = terratec_slim, 60 + .size = ARRAY_SIZE(terratec_slim), 61 + .rc_proto = RC_PROTO_NEC, 62 + .name = RC_MAP_TERRATEC_SLIM, 63 63 } 64 64 }; 65 65
+4 -4
drivers/media/rc/keymaps/rc-tevii-nec.c
··· 65 65 66 66 static struct rc_map_list tevii_nec_map = { 67 67 .map = { 68 - .scan = tevii_nec, 69 - .size = ARRAY_SIZE(tevii_nec), 70 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 71 - .name = RC_MAP_TEVII_NEC, 68 + .scan = tevii_nec, 69 + .size = ARRAY_SIZE(tevii_nec), 70 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 71 + .name = RC_MAP_TEVII_NEC, 72 72 } 73 73 }; 74 74
+4 -4
drivers/media/rc/keymaps/rc-tivo.c
··· 75 75 76 76 static struct rc_map_list tivo_map = { 77 77 .map = { 78 - .scan = tivo, 79 - .size = ARRAY_SIZE(tivo), 80 - .rc_type = RC_TYPE_NEC, 81 - .name = RC_MAP_TIVO, 78 + .scan = tivo, 79 + .size = ARRAY_SIZE(tivo), 80 + .rc_proto = RC_PROTO_NEC, 81 + .name = RC_MAP_TIVO, 82 82 } 83 83 }; 84 84
+4 -4
drivers/media/rc/keymaps/rc-total-media-in-hand-02.c
··· 62 62 63 63 static struct rc_map_list total_media_in_hand_02_map = { 64 64 .map = { 65 - .scan = total_media_in_hand_02, 66 - .size = ARRAY_SIZE(total_media_in_hand_02), 67 - .rc_type = RC_TYPE_RC5, 68 - .name = RC_MAP_TOTAL_MEDIA_IN_HAND_02, 65 + .scan = total_media_in_hand_02, 66 + .size = ARRAY_SIZE(total_media_in_hand_02), 67 + .rc_proto = RC_PROTO_RC5, 68 + .name = RC_MAP_TOTAL_MEDIA_IN_HAND_02, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-total-media-in-hand.c
··· 62 62 63 63 static struct rc_map_list total_media_in_hand_map = { 64 64 .map = { 65 - .scan = total_media_in_hand, 66 - .size = ARRAY_SIZE(total_media_in_hand), 67 - .rc_type = RC_TYPE_NEC, 68 - .name = RC_MAP_TOTAL_MEDIA_IN_HAND, 65 + .scan = total_media_in_hand, 66 + .size = ARRAY_SIZE(total_media_in_hand), 67 + .rc_proto = RC_PROTO_NEC, 68 + .name = RC_MAP_TOTAL_MEDIA_IN_HAND, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-trekstor.c
··· 57 57 58 58 static struct rc_map_list trekstor_map = { 59 59 .map = { 60 - .scan = trekstor, 61 - .size = ARRAY_SIZE(trekstor), 62 - .rc_type = RC_TYPE_NEC, 63 - .name = RC_MAP_TREKSTOR, 60 + .scan = trekstor, 61 + .size = ARRAY_SIZE(trekstor), 62 + .rc_proto = RC_PROTO_NEC, 63 + .name = RC_MAP_TREKSTOR, 64 64 } 65 65 }; 66 66
+4 -4
drivers/media/rc/keymaps/rc-tt-1500.c
··· 59 59 60 60 static struct rc_map_list tt_1500_map = { 61 61 .map = { 62 - .scan = tt_1500, 63 - .size = ARRAY_SIZE(tt_1500), 64 - .rc_type = RC_TYPE_RC5, 65 - .name = RC_MAP_TT_1500, 62 + .scan = tt_1500, 63 + .size = ARRAY_SIZE(tt_1500), 64 + .rc_proto = RC_PROTO_RC5, 65 + .name = RC_MAP_TT_1500, 66 66 } 67 67 }; 68 68
+4 -4
drivers/media/rc/keymaps/rc-twinhan-dtv-cab-ci.c
··· 75 75 76 76 static struct rc_map_list twinhan_dtv_cab_ci_map = { 77 77 .map = { 78 - .scan = twinhan_dtv_cab_ci, 79 - .size = ARRAY_SIZE(twinhan_dtv_cab_ci), 80 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 81 - .name = RC_MAP_TWINHAN_DTV_CAB_CI, 78 + .scan = twinhan_dtv_cab_ci, 79 + .size = ARRAY_SIZE(twinhan_dtv_cab_ci), 80 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 81 + .name = RC_MAP_TWINHAN_DTV_CAB_CI, 82 82 } 83 83 }; 84 84
+4 -4
drivers/media/rc/keymaps/rc-twinhan1027.c
··· 64 64 65 65 static struct rc_map_list twinhan_vp1027_map = { 66 66 .map = { 67 - .scan = twinhan_vp1027, 68 - .size = ARRAY_SIZE(twinhan_vp1027), 69 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 70 - .name = RC_MAP_TWINHAN_VP1027_DVBS, 67 + .scan = twinhan_vp1027, 68 + .size = ARRAY_SIZE(twinhan_vp1027), 69 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 70 + .name = RC_MAP_TWINHAN_VP1027_DVBS, 71 71 } 72 72 }; 73 73
+4 -4
drivers/media/rc/keymaps/rc-videomate-m1f.c
··· 69 69 70 70 static struct rc_map_list videomate_k100_map = { 71 71 .map = { 72 - .scan = videomate_k100, 73 - .size = ARRAY_SIZE(videomate_k100), 74 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 75 - .name = RC_MAP_VIDEOMATE_K100, 72 + .scan = videomate_k100, 73 + .size = ARRAY_SIZE(videomate_k100), 74 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 75 + .name = RC_MAP_VIDEOMATE_K100, 76 76 } 77 77 }; 78 78
+4 -4
drivers/media/rc/keymaps/rc-videomate-s350.c
··· 62 62 63 63 static struct rc_map_list videomate_s350_map = { 64 64 .map = { 65 - .scan = videomate_s350, 66 - .size = ARRAY_SIZE(videomate_s350), 67 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 68 - .name = RC_MAP_VIDEOMATE_S350, 65 + .scan = videomate_s350, 66 + .size = ARRAY_SIZE(videomate_s350), 67 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 68 + .name = RC_MAP_VIDEOMATE_S350, 69 69 } 70 70 }; 71 71
+4 -4
drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
··· 64 64 65 65 static struct rc_map_list videomate_tv_pvr_map = { 66 66 .map = { 67 - .scan = videomate_tv_pvr, 68 - .size = ARRAY_SIZE(videomate_tv_pvr), 69 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 70 - .name = RC_MAP_VIDEOMATE_TV_PVR, 67 + .scan = videomate_tv_pvr, 68 + .size = ARRAY_SIZE(videomate_tv_pvr), 69 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 70 + .name = RC_MAP_VIDEOMATE_TV_PVR, 71 71 } 72 72 }; 73 73
+4 -4
drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
··· 59 59 60 60 static struct rc_map_list winfast_usbii_deluxe_map = { 61 61 .map = { 62 - .scan = winfast_usbii_deluxe, 63 - .size = ARRAY_SIZE(winfast_usbii_deluxe), 64 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 65 - .name = RC_MAP_WINFAST_USBII_DELUXE, 62 + .scan = winfast_usbii_deluxe, 63 + .size = ARRAY_SIZE(winfast_usbii_deluxe), 64 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 65 + .name = RC_MAP_WINFAST_USBII_DELUXE, 66 66 } 67 67 }; 68 68
+4 -4
drivers/media/rc/keymaps/rc-winfast.c
··· 79 79 80 80 static struct rc_map_list winfast_map = { 81 81 .map = { 82 - .scan = winfast, 83 - .size = ARRAY_SIZE(winfast), 84 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 85 - .name = RC_MAP_WINFAST, 82 + .scan = winfast, 83 + .size = ARRAY_SIZE(winfast), 84 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 85 + .name = RC_MAP_WINFAST, 86 86 } 87 87 }; 88 88
+1 -1
drivers/media/rc/keymaps/rc-zx-irdec.c
··· 57 57 .map = { 58 58 .scan = zx_irdec_table, 59 59 .size = ARRAY_SIZE(zx_irdec_table), 60 - .rc_type = RC_TYPE_NEC, 60 + .rc_proto = RC_PROTO_NEC, 61 61 .name = RC_MAP_ZX_IRDEC, 62 62 } 63 63 };
+1 -1
drivers/media/rc/mceusb.c
··· 1267 1267 usb_to_input_id(ir->usbdev, &rc->input_id); 1268 1268 rc->dev.parent = dev; 1269 1269 rc->priv = ir; 1270 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 1270 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 1271 1271 rc->timeout = MS_TO_NS(100); 1272 1272 if (!ir->flags.no_tx) { 1273 1273 rc->s_tx_mask = mceusb_set_tx_mask;
+1 -1
drivers/media/rc/meson-ir.c
··· 143 143 ir->rc->input_id.bustype = BUS_HOST; 144 144 map_name = of_get_property(node, "linux,rc-map-name", NULL); 145 145 ir->rc->map_name = map_name ? map_name : RC_MAP_EMPTY; 146 - ir->rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 146 + ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 147 147 ir->rc->rx_resolution = US_TO_NS(MESON_TRATE); 148 148 ir->rc->timeout = MS_TO_NS(200); 149 149 ir->rc->driver_name = DRIVER_NAME;
+1 -1
drivers/media/rc/mtk-cir.c
··· 353 353 ir->rc->map_name = map_name ?: RC_MAP_EMPTY; 354 354 ir->rc->dev.parent = dev; 355 355 ir->rc->driver_name = MTK_IR_DEV; 356 - ir->rc->allowed_protocols = RC_BIT_ALL; 356 + ir->rc->allowed_protocols = RC_PROTO_BIT_ALL; 357 357 ir->rc->rx_resolution = MTK_IR_SAMPLE; 358 358 ir->rc->timeout = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1); 359 359
+2 -2
drivers/media/rc/nuvoton-cir.c
··· 1023 1023 1024 1024 /* Set up the rc device */ 1025 1025 rdev->priv = nvt; 1026 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 1027 - rdev->allowed_wakeup_protocols = RC_BIT_ALL_IR_ENCODER; 1026 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 1027 + rdev->allowed_wakeup_protocols = RC_PROTO_BIT_ALL_IR_ENCODER; 1028 1028 rdev->encode_wakeup = true; 1029 1029 rdev->open = nvt_open; 1030 1030 rdev->close = nvt_close;
+1 -1
drivers/media/rc/rc-core-priv.h
··· 27 27 28 28 u64 protocols; /* which are handled by this handler */ 29 29 int (*decode)(struct rc_dev *dev, struct ir_raw_event event); 30 - int (*encode)(enum rc_type protocol, u32 scancode, 30 + int (*encode)(enum rc_proto protocol, u32 scancode, 31 31 struct ir_raw_event *events, unsigned int max); 32 32 33 33 /* These two should only be used by the lirc decoder */
+2 -2
drivers/media/rc/rc-ir-raw.c
··· 213 213 return atomic64_read(&available_protocols); 214 214 } 215 215 216 - static int change_protocol(struct rc_dev *dev, u64 *rc_type) 216 + static int change_protocol(struct rc_dev *dev, u64 *rc_proto) 217 217 { 218 218 /* the caller will update dev->enabled_protocols */ 219 219 return 0; ··· 450 450 * -EINVAL if the scancode is ambiguous or invalid, or if no 451 451 * compatible encoder was found. 452 452 */ 453 - int ir_raw_encode_scancode(enum rc_type protocol, u32 scancode, 453 + int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode, 454 454 struct ir_raw_event *events, unsigned int max) 455 455 { 456 456 struct ir_raw_handler *handler;
+2 -2
drivers/media/rc/rc-loopback.c
··· 226 226 rc->driver_name = DRIVER_NAME; 227 227 rc->map_name = RC_MAP_EMPTY; 228 228 rc->priv = &loopdev; 229 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 230 - rc->allowed_wakeup_protocols = RC_BIT_ALL_IR_ENCODER; 229 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 230 + rc->allowed_wakeup_protocols = RC_PROTO_BIT_ALL_IR_ENCODER; 231 231 rc->encode_wakeup = true; 232 232 rc->timeout = 100 * 1000 * 1000; /* 100 ms */ 233 233 rc->min_timeout = 1;
+77 -75
drivers/media/rc/rc-main.c
··· 35 35 unsigned int repeat_period; 36 36 unsigned int scancode_bits; 37 37 } protocols[] = { 38 - [RC_TYPE_UNKNOWN] = { .name = "unknown", .repeat_period = 250 }, 39 - [RC_TYPE_OTHER] = { .name = "other", .repeat_period = 250 }, 40 - [RC_TYPE_RC5] = { .name = "rc-5", 38 + [RC_PROTO_UNKNOWN] = { .name = "unknown", .repeat_period = 250 }, 39 + [RC_PROTO_OTHER] = { .name = "other", .repeat_period = 250 }, 40 + [RC_PROTO_RC5] = { .name = "rc-5", 41 41 .scancode_bits = 0x1f7f, .repeat_period = 164 }, 42 - [RC_TYPE_RC5X_20] = { .name = "rc-5x-20", 42 + [RC_PROTO_RC5X_20] = { .name = "rc-5x-20", 43 43 .scancode_bits = 0x1f7f3f, .repeat_period = 164 }, 44 - [RC_TYPE_RC5_SZ] = { .name = "rc-5-sz", 44 + [RC_PROTO_RC5_SZ] = { .name = "rc-5-sz", 45 45 .scancode_bits = 0x2fff, .repeat_period = 164 }, 46 - [RC_TYPE_JVC] = { .name = "jvc", 46 + [RC_PROTO_JVC] = { .name = "jvc", 47 47 .scancode_bits = 0xffff, .repeat_period = 250 }, 48 - [RC_TYPE_SONY12] = { .name = "sony-12", 48 + [RC_PROTO_SONY12] = { .name = "sony-12", 49 49 .scancode_bits = 0x1f007f, .repeat_period = 100 }, 50 - [RC_TYPE_SONY15] = { .name = "sony-15", 50 + [RC_PROTO_SONY15] = { .name = "sony-15", 51 51 .scancode_bits = 0xff007f, .repeat_period = 100 }, 52 - [RC_TYPE_SONY20] = { .name = "sony-20", 52 + [RC_PROTO_SONY20] = { .name = "sony-20", 53 53 .scancode_bits = 0x1fff7f, .repeat_period = 100 }, 54 - [RC_TYPE_NEC] = { .name = "nec", 54 + [RC_PROTO_NEC] = { .name = "nec", 55 55 .scancode_bits = 0xffff, .repeat_period = 160 }, 56 - [RC_TYPE_NECX] = { .name = "nec-x", 56 + [RC_PROTO_NECX] = { .name = "nec-x", 57 57 .scancode_bits = 0xffffff, .repeat_period = 160 }, 58 - [RC_TYPE_NEC32] = { .name = "nec-32", 58 + [RC_PROTO_NEC32] = { .name = "nec-32", 59 59 .scancode_bits = 0xffffffff, .repeat_period = 160 }, 60 - [RC_TYPE_SANYO] = { .name = "sanyo", 60 + [RC_PROTO_SANYO] = { .name = "sanyo", 61 61 .scancode_bits = 0x1fffff, .repeat_period = 250 }, 62 - [RC_TYPE_MCIR2_KBD] = { .name = "mcir2-kbd", 62 + [RC_PROTO_MCIR2_KBD] = { .name = "mcir2-kbd", 63 63 .scancode_bits = 0xffff, .repeat_period = 150 }, 64 - [RC_TYPE_MCIR2_MSE] = { .name = "mcir2-mse", 64 + [RC_PROTO_MCIR2_MSE] = { .name = "mcir2-mse", 65 65 .scancode_bits = 0x1fffff, .repeat_period = 150 }, 66 - [RC_TYPE_RC6_0] = { .name = "rc-6-0", 66 + [RC_PROTO_RC6_0] = { .name = "rc-6-0", 67 67 .scancode_bits = 0xffff, .repeat_period = 164 }, 68 - [RC_TYPE_RC6_6A_20] = { .name = "rc-6-6a-20", 68 + [RC_PROTO_RC6_6A_20] = { .name = "rc-6-6a-20", 69 69 .scancode_bits = 0xfffff, .repeat_period = 164 }, 70 - [RC_TYPE_RC6_6A_24] = { .name = "rc-6-6a-24", 70 + [RC_PROTO_RC6_6A_24] = { .name = "rc-6-6a-24", 71 71 .scancode_bits = 0xffffff, .repeat_period = 164 }, 72 - [RC_TYPE_RC6_6A_32] = { .name = "rc-6-6a-32", 72 + [RC_PROTO_RC6_6A_32] = { .name = "rc-6-6a-32", 73 73 .scancode_bits = 0xffffffff, .repeat_period = 164 }, 74 - [RC_TYPE_RC6_MCE] = { .name = "rc-6-mce", 74 + [RC_PROTO_RC6_MCE] = { .name = "rc-6-mce", 75 75 .scancode_bits = 0xffff7fff, .repeat_period = 164 }, 76 - [RC_TYPE_SHARP] = { .name = "sharp", 76 + [RC_PROTO_SHARP] = { .name = "sharp", 77 77 .scancode_bits = 0x1fff, .repeat_period = 250 }, 78 - [RC_TYPE_XMP] = { .name = "xmp", .repeat_period = 250 }, 79 - [RC_TYPE_CEC] = { .name = "cec", .repeat_period = 550 }, 78 + [RC_PROTO_XMP] = { .name = "xmp", .repeat_period = 250 }, 79 + [RC_PROTO_CEC] = { .name = "cec", .repeat_period = 550 }, 80 80 }; 81 81 82 82 /* Used to keep track of known keymaps */ ··· 156 156 157 157 static struct rc_map_list empty_map = { 158 158 .map = { 159 - .scan = empty, 160 - .size = ARRAY_SIZE(empty), 161 - .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 162 - .name = RC_MAP_EMPTY, 159 + .scan = empty, 160 + .size = ARRAY_SIZE(empty), 161 + .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 162 + .name = RC_MAP_EMPTY, 163 163 } 164 164 }; 165 165 ··· 167 167 * ir_create_table() - initializes a scancode table 168 168 * @rc_map: the rc_map to initialize 169 169 * @name: name to assign to the table 170 - * @rc_type: ir type to assign to the new table 170 + * @rc_proto: ir type to assign to the new table 171 171 * @size: initial size of the table 172 172 * @return: zero on success or a negative error code 173 173 * ··· 175 175 * memory to hold at least the specified number of elements. 176 176 */ 177 177 static int ir_create_table(struct rc_map *rc_map, 178 - const char *name, u64 rc_type, size_t size) 178 + const char *name, u64 rc_proto, size_t size) 179 179 { 180 180 rc_map->name = kstrdup(name, GFP_KERNEL); 181 181 if (!rc_map->name) 182 182 return -ENOMEM; 183 - rc_map->rc_type = rc_type; 183 + rc_map->rc_proto = rc_proto; 184 184 rc_map->alloc = roundup_pow_of_two(size * sizeof(struct rc_map_table)); 185 185 rc_map->size = rc_map->alloc / sizeof(struct rc_map_table); 186 186 rc_map->scan = kmalloc(rc_map->alloc, GFP_KERNEL); ··· 435 435 int rc; 436 436 437 437 rc = ir_create_table(rc_map, from->name, 438 - from->rc_type, from->size); 438 + from->rc_proto, from->size); 439 439 if (rc) 440 440 return rc; 441 441 ··· 688 688 * This function is used internally to register a keypress, it must be 689 689 * called with keylock held. 690 690 */ 691 - static void ir_do_keydown(struct rc_dev *dev, enum rc_type protocol, 691 + static void ir_do_keydown(struct rc_dev *dev, enum rc_proto protocol, 692 692 u32 scancode, u32 keycode, u8 toggle) 693 693 { 694 694 bool new_event = (!dev->keypressed || ··· 730 730 * This routine is used to signal that a key has been pressed on the 731 731 * remote control. 732 732 */ 733 - void rc_keydown(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle) 733 + void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u32 scancode, 734 + u8 toggle) 734 735 { 735 736 unsigned long flags; 736 737 u32 keycode = rc_g_keycode_from_table(dev, scancode); ··· 760 759 * This routine is used to signal that a key has been pressed on the 761 760 * remote control. The driver must manually call rc_keyup() at a later stage. 762 761 */ 763 - void rc_keydown_notimeout(struct rc_dev *dev, enum rc_type protocol, 762 + void rc_keydown_notimeout(struct rc_dev *dev, enum rc_proto protocol, 764 763 u32 scancode, u8 toggle) 765 764 { 766 765 unsigned long flags; ··· 783 782 struct rc_scancode_filter *filter) 784 783 { 785 784 u32 mask, s = filter->data; 786 - enum rc_type protocol = dev->wakeup_protocol; 785 + enum rc_proto protocol = dev->wakeup_protocol; 787 786 788 787 if (protocol >= ARRAY_SIZE(protocols)) 789 788 return -EINVAL; ··· 791 790 mask = protocols[protocol].scancode_bits; 792 791 793 792 switch (protocol) { 794 - case RC_TYPE_NECX: 793 + case RC_PROTO_NECX: 795 794 if ((((s >> 16) ^ ~(s >> 8)) & 0xff) == 0) 796 795 return -EINVAL; 797 796 break; 798 - case RC_TYPE_NEC32: 797 + case RC_PROTO_NEC32: 799 798 if ((((s >> 24) ^ ~(s >> 16)) & 0xff) == 0) 800 799 return -EINVAL; 801 800 break; 802 - case RC_TYPE_RC6_MCE: 801 + case RC_PROTO_RC6_MCE: 803 802 if ((s & 0xffff0000) != 0x800f0000) 804 803 return -EINVAL; 805 804 break; 806 - case RC_TYPE_RC6_6A_32: 805 + case RC_PROTO_RC6_6A_32: 807 806 if ((s & 0xffff0000) == 0x800f0000) 808 807 return -EINVAL; 809 808 break; ··· 891 890 const char *name; 892 891 const char *module_name; 893 892 } proto_names[] = { 894 - { RC_BIT_NONE, "none", NULL }, 895 - { RC_BIT_OTHER, "other", NULL }, 896 - { RC_BIT_UNKNOWN, "unknown", NULL }, 897 - { RC_BIT_RC5 | 898 - RC_BIT_RC5X_20, "rc-5", "ir-rc5-decoder" }, 899 - { RC_BIT_NEC | 900 - RC_BIT_NECX | 901 - RC_BIT_NEC32, "nec", "ir-nec-decoder" }, 902 - { RC_BIT_RC6_0 | 903 - RC_BIT_RC6_6A_20 | 904 - RC_BIT_RC6_6A_24 | 905 - RC_BIT_RC6_6A_32 | 906 - RC_BIT_RC6_MCE, "rc-6", "ir-rc6-decoder" }, 907 - { RC_BIT_JVC, "jvc", "ir-jvc-decoder" }, 908 - { RC_BIT_SONY12 | 909 - RC_BIT_SONY15 | 910 - RC_BIT_SONY20, "sony", "ir-sony-decoder" }, 911 - { RC_BIT_RC5_SZ, "rc-5-sz", "ir-rc5-decoder" }, 912 - { RC_BIT_SANYO, "sanyo", "ir-sanyo-decoder" }, 913 - { RC_BIT_SHARP, "sharp", "ir-sharp-decoder" }, 914 - { RC_BIT_MCIR2_KBD | 915 - RC_BIT_MCIR2_MSE, "mce_kbd", "ir-mce_kbd-decoder" }, 916 - { RC_BIT_XMP, "xmp", "ir-xmp-decoder" }, 917 - { RC_BIT_CEC, "cec", NULL }, 893 + { RC_PROTO_BIT_NONE, "none", NULL }, 894 + { RC_PROTO_BIT_OTHER, "other", NULL }, 895 + { RC_PROTO_BIT_UNKNOWN, "unknown", NULL }, 896 + { RC_PROTO_BIT_RC5 | 897 + RC_PROTO_BIT_RC5X_20, "rc-5", "ir-rc5-decoder" }, 898 + { RC_PROTO_BIT_NEC | 899 + RC_PROTO_BIT_NECX | 900 + RC_PROTO_BIT_NEC32, "nec", "ir-nec-decoder" }, 901 + { RC_PROTO_BIT_RC6_0 | 902 + RC_PROTO_BIT_RC6_6A_20 | 903 + RC_PROTO_BIT_RC6_6A_24 | 904 + RC_PROTO_BIT_RC6_6A_32 | 905 + RC_PROTO_BIT_RC6_MCE, "rc-6", "ir-rc6-decoder" }, 906 + { RC_PROTO_BIT_JVC, "jvc", "ir-jvc-decoder" }, 907 + { RC_PROTO_BIT_SONY12 | 908 + RC_PROTO_BIT_SONY15 | 909 + RC_PROTO_BIT_SONY20, "sony", "ir-sony-decoder" }, 910 + { RC_PROTO_BIT_RC5_SZ, "rc-5-sz", "ir-rc5-decoder" }, 911 + { RC_PROTO_BIT_SANYO, "sanyo", "ir-sanyo-decoder" }, 912 + { RC_PROTO_BIT_SHARP, "sharp", "ir-sharp-decoder" }, 913 + { RC_PROTO_BIT_MCIR2_KBD | 914 + RC_PROTO_BIT_MCIR2_MSE, "mce_kbd", "ir-mce_kbd-decoder" }, 915 + { RC_PROTO_BIT_XMP, "xmp", "ir-xmp-decoder" }, 916 + { RC_PROTO_BIT_CEC, "cec", NULL }, 918 917 }; 919 918 920 919 /** ··· 1084 1083 int i, ret; 1085 1084 1086 1085 for (i = 0; i < ARRAY_SIZE(proto_names); i++) { 1087 - if (proto_names[i].type == RC_BIT_NONE || 1088 - proto_names[i].type & (RC_BIT_OTHER | RC_BIT_UNKNOWN)) 1086 + if (proto_names[i].type == RC_PROTO_BIT_NONE || 1087 + proto_names[i].type & (RC_PROTO_BIT_OTHER | 1088 + RC_PROTO_BIT_UNKNOWN)) 1089 1089 continue; 1090 1090 1091 1091 available = ir_raw_get_allowed_protocols(); ··· 1304 1302 * Refuse to set a filter unless a protocol is enabled 1305 1303 * and the filter is valid for that protocol 1306 1304 */ 1307 - if (dev->wakeup_protocol != RC_TYPE_UNKNOWN) 1305 + if (dev->wakeup_protocol != RC_PROTO_UNKNOWN) 1308 1306 ret = rc_validate_filter(dev, &new_filter); 1309 1307 else 1310 1308 ret = -EINVAL; ··· 1351 1349 { 1352 1350 struct rc_dev *dev = to_rc_dev(device); 1353 1351 u64 allowed; 1354 - enum rc_type enabled; 1352 + enum rc_proto enabled; 1355 1353 char *tmp = buf; 1356 1354 int i; 1357 1355 ··· 1400 1398 const char *buf, size_t len) 1401 1399 { 1402 1400 struct rc_dev *dev = to_rc_dev(device); 1403 - enum rc_type protocol; 1401 + enum rc_proto protocol; 1404 1402 ssize_t rc; 1405 1403 u64 allowed; 1406 1404 int i; ··· 1410 1408 allowed = dev->allowed_wakeup_protocols; 1411 1409 1412 1410 if (sysfs_streq(buf, "none")) { 1413 - protocol = RC_TYPE_UNKNOWN; 1411 + protocol = RC_PROTO_UNKNOWN; 1414 1412 } else { 1415 1413 for (i = 0; i < ARRAY_SIZE(protocols); i++) { 1416 1414 if ((allowed & (1ULL << i)) && ··· 1440 1438 dev->wakeup_protocol = protocol; 1441 1439 IR_dprintk(1, "Wakeup protocol changed to %d\n", protocol); 1442 1440 1443 - if (protocol == RC_TYPE_RC6_MCE) 1441 + if (protocol == RC_PROTO_RC6_MCE) 1444 1442 dev->scancode_wakeup_filter.data = 0x800f0000; 1445 1443 else 1446 1444 dev->scancode_wakeup_filter.data = 0; ··· 1621 1619 { 1622 1620 int rc; 1623 1621 struct rc_map *rc_map; 1624 - u64 rc_type; 1622 + u64 rc_proto; 1625 1623 1626 1624 if (!dev->map_name) 1627 1625 return -EINVAL; ··· 1636 1634 if (rc) 1637 1635 return rc; 1638 1636 1639 - rc_type = BIT_ULL(rc_map->rc_type); 1637 + rc_proto = BIT_ULL(rc_map->rc_proto); 1640 1638 1641 1639 if (dev->change_protocol) { 1642 - rc = dev->change_protocol(dev, &rc_type); 1640 + rc = dev->change_protocol(dev, &rc_proto); 1643 1641 if (rc < 0) 1644 1642 goto out_table; 1645 - dev->enabled_protocols = rc_type; 1643 + dev->enabled_protocols = rc_proto; 1646 1644 } 1647 1645 1648 1646 if (dev->driver_type == RC_DRIVER_IR_RAW) 1649 - ir_raw_load_modules(&rc_type); 1647 + ir_raw_load_modules(&rc_proto); 1650 1648 1651 1649 set_bit(EV_KEY, dev->input_dev->evbit); 1652 1650 set_bit(EV_REP, dev->input_dev->evbit);
+1 -1
drivers/media/rc/redrat3.c
··· 956 956 usb_to_input_id(rr3->udev, &rc->input_id); 957 957 rc->dev.parent = dev; 958 958 rc->priv = rr3; 959 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 959 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 960 960 rc->min_timeout = MS_TO_NS(RR3_RX_MIN_TIMEOUT); 961 961 rc->max_timeout = MS_TO_NS(RR3_RX_MAX_TIMEOUT); 962 962 rc->timeout = US_TO_NS(redrat3_get_timeout(rr3));
+1 -1
drivers/media/rc/serial_ir.c
··· 537 537 rcdev->open = serial_ir_open; 538 538 rcdev->close = serial_ir_close; 539 539 rcdev->dev.parent = &serial_ir.pdev->dev; 540 - rcdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 540 + rcdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 541 541 rcdev->driver_name = KBUILD_MODNAME; 542 542 rcdev->map_name = RC_MAP_RC6_MCE; 543 543 rcdev->min_timeout = 1;
+1 -1
drivers/media/rc/sir_ir.c
··· 315 315 rcdev->input_id.product = 0x0001; 316 316 rcdev->input_id.version = 0x0100; 317 317 rcdev->tx_ir = sir_tx_ir; 318 - rcdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 318 + rcdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 319 319 rcdev->driver_name = KBUILD_MODNAME; 320 320 rcdev->map_name = RC_MAP_RC6_MCE; 321 321 rcdev->timeout = IR_DEFAULT_TIMEOUT;
+1 -1
drivers/media/rc/st_rc.c
··· 290 290 platform_set_drvdata(pdev, rc_dev); 291 291 st_rc_hardware_init(rc_dev); 292 292 293 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 293 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 294 294 /* rx sampling rate is 10Mhz */ 295 295 rdev->rx_resolution = 100; 296 296 rdev->timeout = US_TO_NS(MAX_SYMB_TIME);
+1 -1
drivers/media/rc/streamzap.c
··· 304 304 usb_to_input_id(sz->usbdev, &rdev->input_id); 305 305 rdev->dev.parent = dev; 306 306 rdev->priv = sz; 307 - rdev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 307 + rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 308 308 rdev->driver_name = DRIVER_NAME; 309 309 rdev->map_name = RC_MAP_STREAMZAP; 310 310
+1 -1
drivers/media/rc/sunxi-cir.c
··· 224 224 ir->map_name = of_get_property(dn, "linux,rc-map-name", NULL); 225 225 ir->rc->map_name = ir->map_name ?: RC_MAP_EMPTY; 226 226 ir->rc->dev.parent = dev; 227 - ir->rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 227 + ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 228 228 ir->rc->rx_resolution = SUNXI_IR_SAMPLE; 229 229 ir->rc->timeout = MS_TO_NS(SUNXI_IR_TIMEOUT); 230 230 ir->rc->driver_name = SUNXI_IR_DEV;
+1 -1
drivers/media/rc/ttusbir.c
··· 313 313 rc->input_phys = tt->phys; 314 314 usb_to_input_id(tt->udev, &rc->input_id); 315 315 rc->dev.parent = &intf->dev; 316 - rc->allowed_protocols = RC_BIT_ALL_IR_DECODER; 316 + rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 317 317 rc->priv = tt; 318 318 rc->driver_name = DRIVER_NAME; 319 319 rc->map_name = RC_MAP_TT_1500;
+17 -16
drivers/media/rc/winbond-cir.c
··· 697 697 } 698 698 699 699 switch (rc->wakeup_protocol) { 700 - case RC_TYPE_RC5: 700 + case RC_PROTO_RC5: 701 701 /* Mask = 13 bits, ex toggle */ 702 702 mask[0] = (mask_sc & 0x003f); 703 703 mask[0] |= (mask_sc & 0x0300) >> 2; ··· 714 714 proto = IR_PROTOCOL_RC5; 715 715 break; 716 716 717 - case RC_TYPE_NEC: 717 + case RC_PROTO_NEC: 718 718 mask[1] = bitrev8(mask_sc); 719 719 mask[0] = mask[1]; 720 720 mask[3] = bitrev8(mask_sc >> 8); ··· 728 728 proto = IR_PROTOCOL_NEC; 729 729 break; 730 730 731 - case RC_TYPE_NECX: 731 + case RC_PROTO_NECX: 732 732 mask[1] = bitrev8(mask_sc); 733 733 mask[0] = mask[1]; 734 734 mask[2] = bitrev8(mask_sc >> 8); ··· 742 742 proto = IR_PROTOCOL_NEC; 743 743 break; 744 744 745 - case RC_TYPE_NEC32: 745 + case RC_PROTO_NEC32: 746 746 mask[0] = bitrev8(mask_sc); 747 747 mask[1] = bitrev8(mask_sc >> 8); 748 748 mask[2] = bitrev8(mask_sc >> 16); ··· 756 756 proto = IR_PROTOCOL_NEC; 757 757 break; 758 758 759 - case RC_TYPE_RC6_0: 759 + case RC_PROTO_RC6_0: 760 760 /* Command */ 761 761 match[0] = wbcir_to_rc6cells(wake_sc >> 0); 762 762 mask[0] = wbcir_to_rc6cells(mask_sc >> 0); ··· 779 779 proto = IR_PROTOCOL_RC6; 780 780 break; 781 781 782 - case RC_TYPE_RC6_6A_24: 783 - case RC_TYPE_RC6_6A_32: 784 - case RC_TYPE_RC6_MCE: 782 + case RC_PROTO_RC6_6A_24: 783 + case RC_PROTO_RC6_6A_32: 784 + case RC_PROTO_RC6_MCE: 785 785 i = 0; 786 786 787 787 /* Command */ ··· 800 800 match[i] = wbcir_to_rc6cells(wake_sc >> 16); 801 801 mask[i++] = wbcir_to_rc6cells(mask_sc >> 16); 802 802 803 - if (rc->wakeup_protocol == RC_TYPE_RC6_6A_20) { 803 + if (rc->wakeup_protocol == RC_PROTO_RC6_6A_20) { 804 804 rc6_csl = 52; 805 805 } else { 806 806 match[i] = wbcir_to_rc6cells(wake_sc >> 20); 807 807 mask[i++] = wbcir_to_rc6cells(mask_sc >> 20); 808 808 809 - if (rc->wakeup_protocol == RC_TYPE_RC6_6A_24) { 809 + if (rc->wakeup_protocol == RC_PROTO_RC6_6A_24) { 810 810 rc6_csl = 60; 811 811 } else { 812 812 /* Customer range bit and bits 15 - 8 */ ··· 1086 1086 data->dev->timeout = IR_DEFAULT_TIMEOUT; 1087 1087 data->dev->max_timeout = 10 * IR_DEFAULT_TIMEOUT; 1088 1088 data->dev->rx_resolution = US_TO_NS(2); 1089 - data->dev->allowed_protocols = RC_BIT_ALL_IR_DECODER; 1090 - data->dev->allowed_wakeup_protocols = RC_BIT_NEC | RC_BIT_NECX | 1091 - RC_BIT_NEC32 | RC_BIT_RC5 | RC_BIT_RC6_0 | 1092 - RC_BIT_RC6_6A_20 | RC_BIT_RC6_6A_24 | 1093 - RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE; 1094 - data->dev->wakeup_protocol = RC_TYPE_RC6_MCE; 1089 + data->dev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 1090 + data->dev->allowed_wakeup_protocols = RC_PROTO_BIT_NEC | 1091 + RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32 | RC_PROTO_BIT_RC5 | 1092 + RC_PROTO_BIT_RC6_0 | RC_PROTO_BIT_RC6_6A_20 | 1093 + RC_PROTO_BIT_RC6_6A_24 | RC_PROTO_BIT_RC6_6A_32 | 1094 + RC_PROTO_BIT_RC6_MCE; 1095 + data->dev->wakeup_protocol = RC_PROTO_RC6_MCE; 1095 1096 data->dev->scancode_wakeup_filter.data = 0x800f040c; 1096 1097 data->dev->scancode_wakeup_filter.mask = 0xffff7fff; 1097 1098 data->dev->s_wakeup_filter = wbcir_set_wakeup_filter;
+5 -4
drivers/media/rc/zx-irdec.c
··· 54 54 u8 address, not_address; 55 55 u8 command, not_command; 56 56 u32 rawcode, scancode; 57 - enum rc_type rc_type; 57 + enum rc_proto rc_proto; 58 58 59 59 /* Clear interrupt */ 60 60 writel(1, irdec->base + ZX_IR_INTSTCLR); ··· 73 73 74 74 scancode = ir_nec_bytes_to_scancode(address, not_address, 75 75 command, not_command, 76 - &rc_type); 77 - rc_keydown(irdec->rcd, rc_type, scancode, 0); 76 + &rc_proto); 77 + rc_keydown(irdec->rcd, rc_proto, scancode, 0); 78 78 79 79 done: 80 80 return IRQ_HANDLED; ··· 114 114 rcd->input_phys = DRIVER_NAME "/input0"; 115 115 rcd->input_id.bustype = BUS_HOST; 116 116 rcd->map_name = RC_MAP_ZX_IRDEC; 117 - rcd->allowed_protocols = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32; 117 + rcd->allowed_protocols = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 118 + RC_PROTO_BIT_NEC32; 118 119 rcd->driver_name = DRIVER_NAME; 119 120 rcd->device_name = DRIVER_NAME; 120 121
+2 -2
drivers/media/usb/au0828/au0828-input.c
··· 343 343 rc->input_id.product = le16_to_cpu(dev->usbdev->descriptor.idProduct); 344 344 rc->dev.parent = &dev->usbdev->dev; 345 345 rc->driver_name = "au0828-input"; 346 - rc->allowed_protocols = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32 | 347 - RC_BIT_RC5; 346 + rc->allowed_protocols = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 347 + RC_PROTO_BIT_NEC32 | RC_PROTO_BIT_RC5; 348 348 349 349 /* all done */ 350 350 err = rc_register_device(rc);
+3 -3
drivers/media/usb/cx231xx/cx231xx-input.c
··· 24 24 25 25 #define MODULE_NAME "cx231xx-input" 26 26 27 - static int get_key_isdbt(struct IR_i2c *ir, enum rc_type *protocol, 27 + static int get_key_isdbt(struct IR_i2c *ir, enum rc_proto *protocol, 28 28 u32 *pscancode, u8 *toggle) 29 29 { 30 30 int rc; ··· 50 50 51 51 dev_dbg(&ir->rc->dev, "cmd %02x, scan = %02x\n", cmd, scancode); 52 52 53 - *protocol = RC_TYPE_OTHER; 53 + *protocol = RC_PROTO_OTHER; 54 54 *pscancode = scancode; 55 55 *toggle = 0; 56 56 return 1; ··· 91 91 /* The i2c micro-controller only outputs the cmd part of NEC protocol */ 92 92 dev->init_data.rc_dev->scancode_mask = 0xff; 93 93 dev->init_data.rc_dev->driver_name = "cx231xx"; 94 - dev->init_data.type = RC_BIT_NEC; 94 + dev->init_data.type = RC_PROTO_BIT_NEC; 95 95 info.addr = 0x30; 96 96 97 97 /* Load and bind ir-kbd-i2c */
+6 -5
drivers/media/usb/dvb-usb-v2/af9015.c
··· 1237 1237 1238 1238 /* Only process key if canary killed */ 1239 1239 if (buf[16] != 0xff && buf[0] != 0x01) { 1240 - enum rc_type proto; 1240 + enum rc_proto proto; 1241 1241 dev_dbg(&d->udev->dev, "%s: key pressed %*ph\n", 1242 1242 __func__, 4, buf + 12); 1243 1243 ··· 1253 1253 /* NEC */ 1254 1254 state->rc_keycode = RC_SCANCODE_NEC(buf[12], 1255 1255 buf[14]); 1256 - proto = RC_TYPE_NEC; 1256 + proto = RC_PROTO_NEC; 1257 1257 } else { 1258 1258 /* NEC extended*/ 1259 1259 state->rc_keycode = RC_SCANCODE_NECX(buf[12] << 8 | 1260 1260 buf[13], 1261 1261 buf[14]); 1262 - proto = RC_TYPE_NECX; 1262 + proto = RC_PROTO_NECX; 1263 1263 } 1264 1264 } else { 1265 1265 /* 32 bit NEC */ ··· 1267 1267 buf[13] << 16 | 1268 1268 buf[14] << 8 | 1269 1269 buf[15]); 1270 - proto = RC_TYPE_NEC32; 1270 + proto = RC_PROTO_NEC32; 1271 1271 } 1272 1272 rc_keydown(d->rc_dev, proto, state->rc_keycode, 0); 1273 1273 } else { ··· 1336 1336 if (!rc->map_name) 1337 1337 rc->map_name = RC_MAP_EMPTY; 1338 1338 1339 - rc->allowed_protos = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32; 1339 + rc->allowed_protos = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 1340 + RC_PROTO_BIT_NEC32; 1340 1341 rc->query = af9015_rc_query; 1341 1342 rc->interval = 500; 1342 1343
+7 -7
drivers/media/usb/dvb-usb-v2/af9035.c
··· 1828 1828 { 1829 1829 struct usb_interface *intf = d->intf; 1830 1830 int ret; 1831 - enum rc_type proto; 1831 + enum rc_proto proto; 1832 1832 u32 key; 1833 1833 u8 buf[4]; 1834 1834 struct usb_req req = { CMD_IR_GET, 0, 0, NULL, 4, buf }; ··· 1843 1843 if ((buf[0] + buf[1]) == 0xff) { 1844 1844 /* NEC standard 16bit */ 1845 1845 key = RC_SCANCODE_NEC(buf[0], buf[2]); 1846 - proto = RC_TYPE_NEC; 1846 + proto = RC_PROTO_NEC; 1847 1847 } else { 1848 1848 /* NEC extended 24bit */ 1849 1849 key = RC_SCANCODE_NECX(buf[0] << 8 | buf[1], buf[2]); 1850 - proto = RC_TYPE_NECX; 1850 + proto = RC_PROTO_NECX; 1851 1851 } 1852 1852 } else { 1853 1853 /* NEC full code 32bit */ 1854 1854 key = RC_SCANCODE_NEC32(buf[0] << 24 | buf[1] << 16 | 1855 1855 buf[2] << 8 | buf[3]); 1856 - proto = RC_TYPE_NEC32; 1856 + proto = RC_PROTO_NEC32; 1857 1857 } 1858 1858 1859 1859 dev_dbg(&intf->dev, "%*ph\n", 4, buf); ··· 1881 1881 switch (state->ir_type) { 1882 1882 case 0: /* NEC */ 1883 1883 default: 1884 - rc->allowed_protos = RC_BIT_NEC | RC_BIT_NECX | 1885 - RC_BIT_NEC32; 1884 + rc->allowed_protos = RC_PROTO_BIT_NEC | 1885 + RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32; 1886 1886 break; 1887 1887 case 1: /* RC6 */ 1888 - rc->allowed_protos = RC_BIT_RC6_MCE; 1888 + rc->allowed_protos = RC_PROTO_BIT_RC6_MCE; 1889 1889 break; 1890 1890 } 1891 1891
+2 -2
drivers/media/usb/dvb-usb-v2/anysee.c
··· 1142 1142 if (ircode[0]) { 1143 1143 dev_dbg(&d->udev->dev, "%s: key pressed %02x\n", __func__, 1144 1144 ircode[1]); 1145 - rc_keydown(d->rc_dev, RC_TYPE_NEC, 1145 + rc_keydown(d->rc_dev, RC_PROTO_NEC, 1146 1146 RC_SCANCODE_NEC(0x08, ircode[1]), 0); 1147 1147 } 1148 1148 ··· 1151 1151 1152 1152 static int anysee_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc) 1153 1153 { 1154 - rc->allowed_protos = RC_BIT_NEC; 1154 + rc->allowed_protos = RC_PROTO_BIT_NEC; 1155 1155 rc->query = anysee_rc_query; 1156 1156 rc->interval = 250; /* windows driver uses 500ms */ 1157 1157
+6 -5
drivers/media/usb/dvb-usb-v2/az6007.c
··· 208 208 { 209 209 struct az6007_device_state *st = d_to_priv(d); 210 210 unsigned code; 211 - enum rc_type proto; 211 + enum rc_proto proto; 212 212 213 213 az6007_read(d, AZ6007_READ_IR, 0, 0, st->data, 10); 214 214 ··· 218 218 if ((st->data[3] ^ st->data[4]) == 0xff) { 219 219 if ((st->data[1] ^ st->data[2]) == 0xff) { 220 220 code = RC_SCANCODE_NEC(st->data[1], st->data[3]); 221 - proto = RC_TYPE_NEC; 221 + proto = RC_PROTO_NEC; 222 222 } else { 223 223 code = RC_SCANCODE_NECX(st->data[1] << 8 | st->data[2], 224 224 st->data[3]); 225 - proto = RC_TYPE_NECX; 225 + proto = RC_PROTO_NECX; 226 226 } 227 227 } else { 228 228 code = RC_SCANCODE_NEC32(st->data[1] << 24 | 229 229 st->data[2] << 16 | 230 230 st->data[3] << 8 | 231 231 st->data[4]); 232 - proto = RC_TYPE_NEC32; 232 + proto = RC_PROTO_NEC32; 233 233 } 234 234 235 235 rc_keydown(d->rc_dev, proto, code, st->data[5]); ··· 241 241 { 242 242 pr_debug("Getting az6007 Remote Control properties\n"); 243 243 244 - rc->allowed_protos = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32; 244 + rc->allowed_protos = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 245 + RC_PROTO_BIT_NEC32; 245 246 rc->query = az6007_rc_query; 246 247 rc->interval = 400; 247 248
+1 -1
drivers/media/usb/dvb-usb-v2/dvb_usb.h
··· 138 138 struct dvb_usb_rc { 139 139 const char *map_name; 140 140 u64 allowed_protos; 141 - int (*change_protocol)(struct rc_dev *dev, u64 *rc_type); 141 + int (*change_protocol)(struct rc_dev *dev, u64 *rc_proto); 142 142 int (*query) (struct dvb_usb_device *d); 143 143 unsigned int interval; 144 144 enum rc_driver_type driver_type;
+2 -2
drivers/media/usb/dvb-usb-v2/dvbsky.c
··· 211 211 rc5_system = (code & 0x7C0) >> 6; 212 212 toggle = (code & 0x800) ? 1 : 0; 213 213 scancode = rc5_system << 8 | rc5_command; 214 - rc_keydown(d->rc_dev, RC_TYPE_RC5, scancode, toggle); 214 + rc_keydown(d->rc_dev, RC_PROTO_RC5, scancode, toggle); 215 215 } 216 216 return 0; 217 217 } ··· 223 223 return 0; 224 224 } 225 225 226 - rc->allowed_protos = RC_BIT_RC5; 226 + rc->allowed_protos = RC_PROTO_BIT_RC5; 227 227 rc->query = dvbsky_rc_query; 228 228 rc->interval = 300; 229 229 return 0;
+3 -3
drivers/media/usb/dvb-usb-v2/lmedm04.c
··· 347 347 ibuf[5]); 348 348 349 349 deb_info(1, "INT Key = 0x%08x", key); 350 - rc_keydown(adap_to_d(adap)->rc_dev, RC_TYPE_NEC32, key, 351 - 0); 350 + rc_keydown(adap_to_d(adap)->rc_dev, RC_PROTO_NEC32, key, 351 + 0); 352 352 break; 353 353 case 0xbb: 354 354 switch (st->tuner_config) { ··· 1232 1232 static int lme2510_get_rc_config(struct dvb_usb_device *d, 1233 1233 struct dvb_usb_rc *rc) 1234 1234 { 1235 - rc->allowed_protos = RC_BIT_NEC32; 1235 + rc->allowed_protos = RC_PROTO_BIT_NEC32; 1236 1236 return 0; 1237 1237 } 1238 1238
+7 -6
drivers/media/usb/dvb-usb-v2/rtl28xxu.c
··· 1631 1631 goto err; 1632 1632 1633 1633 if (buf[4] & 0x01) { 1634 - enum rc_type proto; 1634 + enum rc_proto proto; 1635 1635 1636 1636 if (buf[2] == (u8) ~buf[3]) { 1637 1637 if (buf[0] == (u8) ~buf[1]) { 1638 1638 /* NEC standard (16 bit) */ 1639 1639 rc_code = RC_SCANCODE_NEC(buf[0], buf[2]); 1640 - proto = RC_TYPE_NEC; 1640 + proto = RC_PROTO_NEC; 1641 1641 } else { 1642 1642 /* NEC extended (24 bit) */ 1643 1643 rc_code = RC_SCANCODE_NECX(buf[0] << 8 | buf[1], 1644 1644 buf[2]); 1645 - proto = RC_TYPE_NECX; 1645 + proto = RC_PROTO_NECX; 1646 1646 } 1647 1647 } else { 1648 1648 /* NEC full (32 bit) */ 1649 1649 rc_code = RC_SCANCODE_NEC32(buf[0] << 24 | buf[1] << 16 | 1650 1650 buf[2] << 8 | buf[3]); 1651 - proto = RC_TYPE_NEC32; 1651 + proto = RC_PROTO_NEC32; 1652 1652 } 1653 1653 1654 1654 rc_keydown(d->rc_dev, proto, rc_code, 0); ··· 1673 1673 struct dvb_usb_rc *rc) 1674 1674 { 1675 1675 rc->map_name = RC_MAP_EMPTY; 1676 - rc->allowed_protos = RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32; 1676 + rc->allowed_protos = RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 1677 + RC_PROTO_BIT_NEC32; 1677 1678 rc->query = rtl2831u_rc_query; 1678 1679 rc->interval = 400; 1679 1680 ··· 1779 1778 /* load empty to enable rc */ 1780 1779 if (!rc->map_name) 1781 1780 rc->map_name = RC_MAP_EMPTY; 1782 - rc->allowed_protos = RC_BIT_ALL_IR_DECODER; 1781 + rc->allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER; 1783 1782 rc->driver_type = RC_DRIVER_IR_RAW; 1784 1783 rc->query = rtl2832u_rc_query; 1785 1784 rc->interval = 200;
+15 -15
drivers/media/usb/dvb-usb/cxusb.c
··· 458 458 cxusb_ctrl_msg(d, CMD_GET_IR_CODE, NULL, 0, ircode, 4); 459 459 460 460 if (ircode[2] || ircode[3]) 461 - rc_keydown(d->rc_dev, RC_TYPE_NEC, 461 + rc_keydown(d->rc_dev, RC_PROTO_NEC, 462 462 RC_SCANCODE_NEC(~ircode[2] & 0xff, ircode[3]), 0); 463 463 return 0; 464 464 } ··· 473 473 return 0; 474 474 475 475 if (ircode[1] || ircode[2]) 476 - rc_keydown(d->rc_dev, RC_TYPE_NEC, 476 + rc_keydown(d->rc_dev, RC_PROTO_NEC, 477 477 RC_SCANCODE_NEC(~ircode[1] & 0xff, ircode[2]), 0); 478 478 return 0; 479 479 } ··· 486 486 return 0; 487 487 488 488 if (ircode[0] || ircode[1]) 489 - rc_keydown(d->rc_dev, RC_TYPE_UNKNOWN, 489 + rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, 490 490 RC_SCANCODE_RC5(ircode[0], ircode[1]), 0); 491 491 return 0; 492 492 } ··· 1646 1646 .rc_codes = RC_MAP_DVICO_PORTABLE, 1647 1647 .module_name = KBUILD_MODNAME, 1648 1648 .rc_query = cxusb_rc_query, 1649 - .allowed_protos = RC_BIT_NEC, 1649 + .allowed_protos = RC_PROTO_BIT_NEC, 1650 1650 }, 1651 1651 1652 1652 .generic_bulk_ctrl_endpoint = 0x01, ··· 1703 1703 .rc_codes = RC_MAP_DVICO_MCE, 1704 1704 .module_name = KBUILD_MODNAME, 1705 1705 .rc_query = cxusb_rc_query, 1706 - .allowed_protos = RC_BIT_NEC, 1706 + .allowed_protos = RC_PROTO_BIT_NEC, 1707 1707 }, 1708 1708 1709 1709 .generic_bulk_ctrl_endpoint = 0x01, ··· 1768 1768 .rc_codes = RC_MAP_DVICO_PORTABLE, 1769 1769 .module_name = KBUILD_MODNAME, 1770 1770 .rc_query = cxusb_rc_query, 1771 - .allowed_protos = RC_BIT_NEC, 1771 + .allowed_protos = RC_PROTO_BIT_NEC, 1772 1772 }, 1773 1773 1774 1774 .generic_bulk_ctrl_endpoint = 0x01, ··· 1824 1824 .rc_codes = RC_MAP_DVICO_PORTABLE, 1825 1825 .module_name = KBUILD_MODNAME, 1826 1826 .rc_query = cxusb_rc_query, 1827 - .allowed_protos = RC_BIT_NEC, 1827 + .allowed_protos = RC_PROTO_BIT_NEC, 1828 1828 }, 1829 1829 1830 1830 .generic_bulk_ctrl_endpoint = 0x01, ··· 1879 1879 .rc_codes = RC_MAP_DVICO_MCE, 1880 1880 .module_name = KBUILD_MODNAME, 1881 1881 .rc_query = cxusb_bluebird2_rc_query, 1882 - .allowed_protos = RC_BIT_NEC, 1882 + .allowed_protos = RC_PROTO_BIT_NEC, 1883 1883 }, 1884 1884 1885 1885 .num_device_descs = 1, ··· 1933 1933 .rc_codes = RC_MAP_DVICO_PORTABLE, 1934 1934 .module_name = KBUILD_MODNAME, 1935 1935 .rc_query = cxusb_bluebird2_rc_query, 1936 - .allowed_protos = RC_BIT_NEC, 1936 + .allowed_protos = RC_PROTO_BIT_NEC, 1937 1937 }, 1938 1938 1939 1939 .num_device_descs = 1, ··· 1989 1989 .rc_codes = RC_MAP_DVICO_PORTABLE, 1990 1990 .module_name = KBUILD_MODNAME, 1991 1991 .rc_query = cxusb_rc_query, 1992 - .allowed_protos = RC_BIT_NEC, 1992 + .allowed_protos = RC_PROTO_BIT_NEC, 1993 1993 }, 1994 1994 1995 1995 .num_device_descs = 1, ··· 2088 2088 .rc_codes = RC_MAP_DVICO_MCE, 2089 2089 .module_name = KBUILD_MODNAME, 2090 2090 .rc_query = cxusb_rc_query, 2091 - .allowed_protos = RC_BIT_NEC, 2091 + .allowed_protos = RC_PROTO_BIT_NEC, 2092 2092 }, 2093 2093 2094 2094 .num_device_descs = 1, ··· 2142 2142 .rc_codes = RC_MAP_D680_DMB, 2143 2143 .module_name = KBUILD_MODNAME, 2144 2144 .rc_query = cxusb_d680_dmb_rc_query, 2145 - .allowed_protos = RC_BIT_UNKNOWN, 2145 + .allowed_protos = RC_PROTO_BIT_UNKNOWN, 2146 2146 }, 2147 2147 2148 2148 .num_device_descs = 1, ··· 2197 2197 .rc_codes = RC_MAP_D680_DMB, 2198 2198 .module_name = KBUILD_MODNAME, 2199 2199 .rc_query = cxusb_d680_dmb_rc_query, 2200 - .allowed_protos = RC_BIT_UNKNOWN, 2200 + .allowed_protos = RC_PROTO_BIT_UNKNOWN, 2201 2201 }, 2202 2202 2203 2203 .num_device_descs = 1, ··· 2251 2251 .rc_codes = RC_MAP_TOTAL_MEDIA_IN_HAND_02, 2252 2252 .module_name = KBUILD_MODNAME, 2253 2253 .rc_query = cxusb_d680_dmb_rc_query, 2254 - .allowed_protos = RC_BIT_UNKNOWN, 2254 + .allowed_protos = RC_PROTO_BIT_UNKNOWN, 2255 2255 }, 2256 2256 2257 2257 .num_device_descs = 1, ··· 2305 2305 .rc_codes = RC_MAP_TOTAL_MEDIA_IN_HAND_02, 2306 2306 .module_name = KBUILD_MODNAME, 2307 2307 .rc_query = cxusb_d680_dmb_rc_query, 2308 - .allowed_protos = RC_BIT_UNKNOWN, 2308 + .allowed_protos = RC_PROTO_BIT_UNKNOWN, 2309 2309 }, 2310 2310 2311 2311 .num_device_descs = 1,
+1 -1
drivers/media/usb/dvb-usb/dib0700.h
··· 64 64 extern struct i2c_algorithm dib0700_i2c_algo; 65 65 extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, 66 66 struct dvb_usb_device_description **desc, int *cold); 67 - extern int dib0700_change_protocol(struct rc_dev *dev, u64 *rc_type); 67 + extern int dib0700_change_protocol(struct rc_dev *dev, u64 *rc_proto); 68 68 extern int dib0700_set_i2c_speed(struct dvb_usb_device *d, u16 scl_kHz); 69 69 70 70 extern int dib0700_device_count;
+14 -14
drivers/media/usb/dvb-usb/dib0700_core.c
··· 638 638 return ret; 639 639 } 640 640 641 - int dib0700_change_protocol(struct rc_dev *rc, u64 *rc_type) 641 + int dib0700_change_protocol(struct rc_dev *rc, u64 *rc_proto) 642 642 { 643 643 struct dvb_usb_device *d = rc->priv; 644 644 struct dib0700_state *st = d->priv; ··· 654 654 st->buf[2] = 0; 655 655 656 656 /* Set the IR mode */ 657 - if (*rc_type & RC_BIT_RC5) { 657 + if (*rc_proto & RC_PROTO_BIT_RC5) { 658 658 new_proto = 1; 659 - *rc_type = RC_BIT_RC5; 660 - } else if (*rc_type & RC_BIT_NEC) { 659 + *rc_proto = RC_PROTO_BIT_RC5; 660 + } else if (*rc_proto & RC_PROTO_BIT_NEC) { 661 661 new_proto = 0; 662 - *rc_type = RC_BIT_NEC; 663 - } else if (*rc_type & RC_BIT_RC6_MCE) { 662 + *rc_proto = RC_PROTO_BIT_NEC; 663 + } else if (*rc_proto & RC_PROTO_BIT_RC6_MCE) { 664 664 if (st->fw_version < 0x10200) { 665 665 ret = -EINVAL; 666 666 goto out; 667 667 } 668 668 new_proto = 2; 669 - *rc_type = RC_BIT_RC6_MCE; 669 + *rc_proto = RC_PROTO_BIT_RC6_MCE; 670 670 } else { 671 671 ret = -EINVAL; 672 672 goto out; ··· 680 680 goto out; 681 681 } 682 682 683 - d->props.rc.core.protocol = *rc_type; 683 + d->props.rc.core.protocol = *rc_proto; 684 684 685 685 out: 686 686 mutex_unlock(&d->usb_mutex); ··· 712 712 { 713 713 struct dvb_usb_device *d = purb->context; 714 714 struct dib0700_rc_response *poll_reply; 715 - enum rc_type protocol; 715 + enum rc_proto protocol; 716 716 u32 keycode; 717 717 u8 toggle; 718 718 ··· 745 745 purb->actual_length); 746 746 747 747 switch (d->props.rc.core.protocol) { 748 - case RC_BIT_NEC: 748 + case RC_PROTO_BIT_NEC: 749 749 toggle = 0; 750 750 751 751 /* NEC protocol sends repeat code as 0 0 0 FF */ ··· 764 764 poll_reply->nec.not_system << 16 | 765 765 poll_reply->nec.data << 8 | 766 766 poll_reply->nec.not_data); 767 - protocol = RC_TYPE_NEC32; 767 + protocol = RC_PROTO_NEC32; 768 768 } else if ((poll_reply->nec.system ^ poll_reply->nec.not_system) != 0xff) { 769 769 deb_data("NEC extended protocol\n"); 770 770 keycode = RC_SCANCODE_NECX(poll_reply->nec.system << 8 | 771 771 poll_reply->nec.not_system, 772 772 poll_reply->nec.data); 773 773 774 - protocol = RC_TYPE_NECX; 774 + protocol = RC_PROTO_NECX; 775 775 } else { 776 776 deb_data("NEC normal protocol\n"); 777 777 keycode = RC_SCANCODE_NEC(poll_reply->nec.system, 778 778 poll_reply->nec.data); 779 - protocol = RC_TYPE_NEC; 779 + protocol = RC_PROTO_NEC; 780 780 } 781 781 782 782 break; 783 783 default: 784 784 deb_data("RC5 protocol\n"); 785 - protocol = RC_TYPE_RC5; 785 + protocol = RC_PROTO_RC5; 786 786 toggle = poll_reply->report_id; 787 787 keycode = RC_SCANCODE_RC5(poll_reply->rc5.system, poll_reply->rc5.data); 788 788
+76 -76
drivers/media/usb/dvb-usb/dib0700_devices.c
··· 514 514 */ 515 515 static int dib0700_rc_query_old_firmware(struct dvb_usb_device *d) 516 516 { 517 - enum rc_type protocol; 517 + enum rc_proto protocol; 518 518 u32 scancode; 519 519 u8 toggle; 520 520 int i; ··· 547 547 dib0700_rc_setup(d, NULL); /* reset ir sensor data to prevent false events */ 548 548 549 549 switch (d->props.rc.core.protocol) { 550 - case RC_BIT_NEC: 550 + case RC_PROTO_BIT_NEC: 551 551 /* NEC protocol sends repeat code as 0 0 0 FF */ 552 552 if ((st->buf[3 - 2] == 0x00) && (st->buf[3 - 3] == 0x00) && 553 553 (st->buf[3] == 0xff)) { ··· 555 555 return 0; 556 556 } 557 557 558 - protocol = RC_TYPE_NEC; 558 + protocol = RC_PROTO_NEC; 559 559 scancode = RC_SCANCODE_NEC(st->buf[3 - 2], st->buf[3 - 3]); 560 560 toggle = 0; 561 561 break; 562 562 563 563 default: 564 564 /* RC-5 protocol changes toggle bit on new keypress */ 565 - protocol = RC_TYPE_RC5; 565 + protocol = RC_PROTO_RC5; 566 566 scancode = RC_SCANCODE_RC5(st->buf[3 - 2], st->buf[3 - 3]); 567 567 toggle = st->buf[3 - 1]; 568 568 break; ··· 3909 3909 .rc_interval = DEFAULT_RC_INTERVAL, 3910 3910 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 3911 3911 .rc_query = dib0700_rc_query_old_firmware, 3912 - .allowed_protos = RC_BIT_RC5 | 3913 - RC_BIT_RC6_MCE | 3914 - RC_BIT_NEC, 3912 + .allowed_protos = RC_PROTO_BIT_RC5 | 3913 + RC_PROTO_BIT_RC6_MCE | 3914 + RC_PROTO_BIT_NEC, 3915 3915 .change_protocol = dib0700_change_protocol, 3916 3916 }, 3917 3917 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 3949 3949 .rc_interval = DEFAULT_RC_INTERVAL, 3950 3950 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 3951 3951 .rc_query = dib0700_rc_query_old_firmware, 3952 - .allowed_protos = RC_BIT_RC5 | 3953 - RC_BIT_RC6_MCE | 3954 - RC_BIT_NEC, 3952 + .allowed_protos = RC_PROTO_BIT_RC5 | 3953 + RC_PROTO_BIT_RC6_MCE | 3954 + RC_PROTO_BIT_NEC, 3955 3955 .change_protocol = dib0700_change_protocol, 3956 3956 }, 3957 3957 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4014 4014 .rc_interval = DEFAULT_RC_INTERVAL, 4015 4015 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4016 4016 .rc_query = dib0700_rc_query_old_firmware, 4017 - .allowed_protos = RC_BIT_RC5 | 4018 - RC_BIT_RC6_MCE | 4019 - RC_BIT_NEC, 4017 + .allowed_protos = RC_PROTO_BIT_RC5 | 4018 + RC_PROTO_BIT_RC6_MCE | 4019 + RC_PROTO_BIT_NEC, 4020 4020 .change_protocol = dib0700_change_protocol, 4021 4021 }, 4022 4022 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4059 4059 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4060 4060 .module_name = "dib0700", 4061 4061 .rc_query = dib0700_rc_query_old_firmware, 4062 - .allowed_protos = RC_BIT_RC5 | 4063 - RC_BIT_RC6_MCE | 4064 - RC_BIT_NEC, 4062 + .allowed_protos = RC_PROTO_BIT_RC5 | 4063 + RC_PROTO_BIT_RC6_MCE | 4064 + RC_PROTO_BIT_NEC, 4065 4065 .change_protocol = dib0700_change_protocol, 4066 4066 }, 4067 4067 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4140 4140 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4141 4141 .module_name = "dib0700", 4142 4142 .rc_query = dib0700_rc_query_old_firmware, 4143 - .allowed_protos = RC_BIT_RC5 | 4144 - RC_BIT_RC6_MCE | 4145 - RC_BIT_NEC, 4143 + .allowed_protos = RC_PROTO_BIT_RC5 | 4144 + RC_PROTO_BIT_RC6_MCE | 4145 + RC_PROTO_BIT_NEC, 4146 4146 .change_protocol = dib0700_change_protocol, 4147 4147 }, 4148 4148 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4185 4185 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4186 4186 .module_name = "dib0700", 4187 4187 .rc_query = dib0700_rc_query_old_firmware, 4188 - .allowed_protos = RC_BIT_RC5 | 4189 - RC_BIT_RC6_MCE | 4190 - RC_BIT_NEC, 4188 + .allowed_protos = RC_PROTO_BIT_RC5 | 4189 + RC_PROTO_BIT_RC6_MCE | 4190 + RC_PROTO_BIT_NEC, 4191 4191 .change_protocol = dib0700_change_protocol, 4192 4192 }, 4193 4193 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4242 4242 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4243 4243 .module_name = "dib0700", 4244 4244 .rc_query = dib0700_rc_query_old_firmware, 4245 - .allowed_protos = RC_BIT_RC5 | 4246 - RC_BIT_RC6_MCE | 4247 - RC_BIT_NEC, 4245 + .allowed_protos = RC_PROTO_BIT_RC5 | 4246 + RC_PROTO_BIT_RC6_MCE | 4247 + RC_PROTO_BIT_NEC, 4248 4248 .change_protocol = dib0700_change_protocol, 4249 4249 }, 4250 4250 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4308 4308 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4309 4309 .module_name = "dib0700", 4310 4310 .rc_query = dib0700_rc_query_old_firmware, 4311 - .allowed_protos = RC_BIT_RC5 | 4312 - RC_BIT_RC6_MCE | 4313 - RC_BIT_NEC, 4311 + .allowed_protos = RC_PROTO_BIT_RC5 | 4312 + RC_PROTO_BIT_RC6_MCE | 4313 + RC_PROTO_BIT_NEC, 4314 4314 .change_protocol = dib0700_change_protocol, 4315 4315 }, 4316 4316 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4357 4357 .rc_codes = RC_MAP_DIB0700_NEC_TABLE, 4358 4358 .module_name = "dib0700", 4359 4359 .rc_query = dib0700_rc_query_old_firmware, 4360 - .allowed_protos = RC_BIT_RC5 | 4361 - RC_BIT_RC6_MCE | 4362 - RC_BIT_NEC, 4360 + .allowed_protos = RC_PROTO_BIT_RC5 | 4361 + RC_PROTO_BIT_RC6_MCE | 4362 + RC_PROTO_BIT_NEC, 4363 4363 .change_protocol = dib0700_change_protocol, 4364 4364 }, 4365 4365 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4430 4430 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4431 4431 .module_name = "dib0700", 4432 4432 .rc_query = dib0700_rc_query_old_firmware, 4433 - .allowed_protos = RC_BIT_RC5 | 4434 - RC_BIT_RC6_MCE | 4435 - RC_BIT_NEC, 4433 + .allowed_protos = RC_PROTO_BIT_RC5 | 4434 + RC_PROTO_BIT_RC6_MCE | 4435 + RC_PROTO_BIT_NEC, 4436 4436 .change_protocol = dib0700_change_protocol, 4437 4437 }, 4438 4438 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4466 4466 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4467 4467 .module_name = "dib0700", 4468 4468 .rc_query = dib0700_rc_query_old_firmware, 4469 - .allowed_protos = RC_BIT_RC5 | 4470 - RC_BIT_RC6_MCE | 4471 - RC_BIT_NEC, 4469 + .allowed_protos = RC_PROTO_BIT_RC5 | 4470 + RC_PROTO_BIT_RC6_MCE | 4471 + RC_PROTO_BIT_NEC, 4472 4472 .change_protocol = dib0700_change_protocol, 4473 4473 }, 4474 4474 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4542 4542 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4543 4543 .module_name = "dib0700", 4544 4544 .rc_query = dib0700_rc_query_old_firmware, 4545 - .allowed_protos = RC_BIT_RC5 | 4546 - RC_BIT_RC6_MCE | 4547 - RC_BIT_NEC, 4545 + .allowed_protos = RC_PROTO_BIT_RC5 | 4546 + RC_PROTO_BIT_RC6_MCE | 4547 + RC_PROTO_BIT_NEC, 4548 4548 .change_protocol = dib0700_change_protocol, 4549 4549 }, 4550 4550 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4586 4586 .rc_codes = RC_MAP_DIB0700_NEC_TABLE, 4587 4587 .module_name = "dib0700", 4588 4588 .rc_query = dib0700_rc_query_old_firmware, 4589 - .allowed_protos = RC_BIT_RC5 | 4590 - RC_BIT_RC6_MCE | 4591 - RC_BIT_NEC, 4589 + .allowed_protos = RC_PROTO_BIT_RC5 | 4590 + RC_PROTO_BIT_RC6_MCE | 4591 + RC_PROTO_BIT_NEC, 4592 4592 .change_protocol = dib0700_change_protocol, 4593 4593 }, 4594 4594 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4635 4635 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4636 4636 .module_name = "dib0700", 4637 4637 .rc_query = dib0700_rc_query_old_firmware, 4638 - .allowed_protos = RC_BIT_RC5 | 4639 - RC_BIT_RC6_MCE | 4640 - RC_BIT_NEC, 4638 + .allowed_protos = RC_PROTO_BIT_RC5 | 4639 + RC_PROTO_BIT_RC6_MCE | 4640 + RC_PROTO_BIT_NEC, 4641 4641 .change_protocol = dib0700_change_protocol, 4642 4642 }, 4643 4643 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4672 4672 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4673 4673 .module_name = "dib0700", 4674 4674 .rc_query = dib0700_rc_query_old_firmware, 4675 - .allowed_protos = RC_BIT_RC5 | 4676 - RC_BIT_RC6_MCE | 4677 - RC_BIT_NEC, 4675 + .allowed_protos = RC_PROTO_BIT_RC5 | 4676 + RC_PROTO_BIT_RC6_MCE | 4677 + RC_PROTO_BIT_NEC, 4678 4678 .change_protocol = dib0700_change_protocol, 4679 4679 }, 4680 4680 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4709 4709 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4710 4710 .module_name = "dib0700", 4711 4711 .rc_query = dib0700_rc_query_old_firmware, 4712 - .allowed_protos = RC_BIT_RC5 | 4713 - RC_BIT_RC6_MCE | 4714 - RC_BIT_NEC, 4712 + .allowed_protos = RC_PROTO_BIT_RC5 | 4713 + RC_PROTO_BIT_RC6_MCE | 4714 + RC_PROTO_BIT_NEC, 4715 4715 .change_protocol = dib0700_change_protocol, 4716 4716 }, 4717 4717 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4746 4746 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4747 4747 .module_name = "dib0700", 4748 4748 .rc_query = dib0700_rc_query_old_firmware, 4749 - .allowed_protos = RC_BIT_RC5 | 4750 - RC_BIT_RC6_MCE | 4751 - RC_BIT_NEC, 4749 + .allowed_protos = RC_PROTO_BIT_RC5 | 4750 + RC_PROTO_BIT_RC6_MCE | 4751 + RC_PROTO_BIT_NEC, 4752 4752 .change_protocol = dib0700_change_protocol, 4753 4753 }, 4754 4754 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4783 4783 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4784 4784 .module_name = "dib0700", 4785 4785 .rc_query = dib0700_rc_query_old_firmware, 4786 - .allowed_protos = RC_BIT_RC5 | 4787 - RC_BIT_RC6_MCE | 4788 - RC_BIT_NEC, 4786 + .allowed_protos = RC_PROTO_BIT_RC5 | 4787 + RC_PROTO_BIT_RC6_MCE | 4788 + RC_PROTO_BIT_NEC, 4789 4789 .change_protocol = dib0700_change_protocol, 4790 4790 }, 4791 4791 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4820 4820 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4821 4821 .module_name = "dib0700", 4822 4822 .rc_query = dib0700_rc_query_old_firmware, 4823 - .allowed_protos = RC_BIT_RC5 | 4824 - RC_BIT_RC6_MCE | 4825 - RC_BIT_NEC, 4823 + .allowed_protos = RC_PROTO_BIT_RC5 | 4824 + RC_PROTO_BIT_RC6_MCE | 4825 + RC_PROTO_BIT_NEC, 4826 4826 .change_protocol = dib0700_change_protocol, 4827 4827 }, 4828 4828 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4871 4871 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4872 4872 .module_name = "dib0700", 4873 4873 .rc_query = dib0700_rc_query_old_firmware, 4874 - .allowed_protos = RC_BIT_RC5 | 4875 - RC_BIT_RC6_MCE | 4876 - RC_BIT_NEC, 4874 + .allowed_protos = RC_PROTO_BIT_RC5 | 4875 + RC_PROTO_BIT_RC6_MCE | 4876 + RC_PROTO_BIT_NEC, 4877 4877 .change_protocol = dib0700_change_protocol, 4878 4878 }, 4879 4879 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4906 4906 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4907 4907 .module_name = "dib0700", 4908 4908 .rc_query = dib0700_rc_query_old_firmware, 4909 - .allowed_protos = RC_BIT_RC5 | 4910 - RC_BIT_RC6_MCE | 4911 - RC_BIT_NEC, 4909 + .allowed_protos = RC_PROTO_BIT_RC5 | 4910 + RC_PROTO_BIT_RC6_MCE | 4911 + RC_PROTO_BIT_NEC, 4912 4912 .change_protocol = dib0700_change_protocol, 4913 4913 }, 4914 4914 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4943 4943 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4944 4944 .module_name = "dib0700", 4945 4945 .rc_query = dib0700_rc_query_old_firmware, 4946 - .allowed_protos = RC_BIT_RC5 | 4947 - RC_BIT_RC6_MCE | 4948 - RC_BIT_NEC, 4946 + .allowed_protos = RC_PROTO_BIT_RC5 | 4947 + RC_PROTO_BIT_RC6_MCE | 4948 + RC_PROTO_BIT_NEC, 4949 4949 .change_protocol = dib0700_change_protocol, 4950 4950 }, 4951 4951 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 4981 4981 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 4982 4982 .module_name = "dib0700", 4983 4983 .rc_query = dib0700_rc_query_old_firmware, 4984 - .allowed_protos = RC_BIT_RC5 | 4985 - RC_BIT_RC6_MCE | 4986 - RC_BIT_NEC, 4984 + .allowed_protos = RC_PROTO_BIT_RC5 | 4985 + RC_PROTO_BIT_RC6_MCE | 4986 + RC_PROTO_BIT_NEC, 4987 4987 .change_protocol = dib0700_change_protocol, 4988 4988 }, 4989 4989 }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, ··· 5035 5035 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 5036 5036 .module_name = "dib0700", 5037 5037 .rc_query = dib0700_rc_query_old_firmware, 5038 - .allowed_protos = RC_BIT_RC5 | 5039 - RC_BIT_RC6_MCE | 5040 - RC_BIT_NEC, 5038 + .allowed_protos = RC_PROTO_BIT_RC5 | 5039 + RC_PROTO_BIT_RC6_MCE | 5040 + RC_PROTO_BIT_NEC, 5041 5041 .change_protocol = dib0700_change_protocol, 5042 5042 }, 5043 5043 },
+6 -6
drivers/media/usb/dvb-usb/dtt200u.c
··· 100 100 goto ret; 101 101 102 102 if (st->data[0] == 1) { 103 - enum rc_type proto = RC_TYPE_NEC; 103 + enum rc_proto proto = RC_PROTO_NEC; 104 104 105 105 scancode = st->data[1]; 106 106 if ((u8) ~st->data[1] != st->data[2]) { 107 107 /* Extended NEC */ 108 108 scancode = scancode << 8; 109 109 scancode |= st->data[2]; 110 - proto = RC_TYPE_NECX; 110 + proto = RC_PROTO_NECX; 111 111 } 112 112 scancode = scancode << 8; 113 113 scancode |= st->data[3]; ··· 213 213 .rc_interval = 300, 214 214 .rc_codes = RC_MAP_DTT200U, 215 215 .rc_query = dtt200u_rc_query, 216 - .allowed_protos = RC_BIT_NEC, 216 + .allowed_protos = RC_PROTO_BIT_NEC, 217 217 }, 218 218 219 219 .generic_bulk_ctrl_endpoint = 0x01, ··· 265 265 .rc_interval = 300, 266 266 .rc_codes = RC_MAP_DTT200U, 267 267 .rc_query = dtt200u_rc_query, 268 - .allowed_protos = RC_BIT_NEC, 268 + .allowed_protos = RC_PROTO_BIT_NEC, 269 269 }, 270 270 271 271 .generic_bulk_ctrl_endpoint = 0x01, ··· 317 317 .rc_interval = 300, 318 318 .rc_codes = RC_MAP_DTT200U, 319 319 .rc_query = dtt200u_rc_query, 320 - .allowed_protos = RC_BIT_NEC, 320 + .allowed_protos = RC_PROTO_BIT_NEC, 321 321 }, 322 322 323 323 .generic_bulk_ctrl_endpoint = 0x01, ··· 369 369 .rc_interval = 300, 370 370 .rc_codes = RC_MAP_DTT200U, 371 371 .rc_query = dtt200u_rc_query, 372 - .allowed_protos = RC_BIT_NEC, 372 + .allowed_protos = RC_PROTO_BIT_NEC, 373 373 }, 374 374 375 375 .generic_bulk_ctrl_endpoint = 0x01,
+1 -1
drivers/media/usb/dvb-usb/dvb-usb.h
··· 202 202 u64 protocol; 203 203 u64 allowed_protos; 204 204 enum rc_driver_type driver_type; 205 - int (*change_protocol)(struct rc_dev *dev, u64 *rc_type); 205 + int (*change_protocol)(struct rc_dev *dev, u64 *rc_proto); 206 206 char *module_name; 207 207 int (*rc_query) (struct dvb_usb_device *d); 208 208 int rc_interval;
+11 -10
drivers/media/usb/dvb-usb/dw2102.c
··· 1671 1671 if (msg.buf[0] != 0xff) { 1672 1672 deb_rc("%s: rc code: %x, %x\n", 1673 1673 __func__, key[0], key[1]); 1674 - rc_keydown(d->rc_dev, RC_TYPE_UNKNOWN, key[0], 0); 1674 + rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, key[0], 0); 1675 1675 } 1676 1676 } 1677 1677 ··· 1692 1692 if (msg.buf[0] != 0xff) { 1693 1693 deb_rc("%s: rc code: %x, %x\n", 1694 1694 __func__, key[0], key[1]); 1695 - rc_keydown(d->rc_dev, RC_TYPE_UNKNOWN, key[0]^0xff, 0); 1695 + rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, key[0] ^ 0xff, 1696 + 0); 1696 1697 } 1697 1698 } 1698 1699 ··· 1714 1713 if (msg.buf[0] != 0xff) { 1715 1714 deb_rc("%s: rc code: %x, %x\n", 1716 1715 __func__, key[0], key[1]); 1717 - rc_keydown(d->rc_dev, RC_TYPE_RC5, 1716 + rc_keydown(d->rc_dev, RC_PROTO_RC5, 1718 1717 RC_SCANCODE_RC5(key[1], key[0]), 0); 1719 1718 } 1720 1719 } ··· 1913 1912 .rc_interval = 150, 1914 1913 .rc_codes = RC_MAP_DM1105_NEC, 1915 1914 .module_name = "dw2102", 1916 - .allowed_protos = RC_BIT_NEC, 1915 + .allowed_protos = RC_PROTO_BIT_NEC, 1917 1916 .rc_query = dw2102_rc_query, 1918 1917 }, 1919 1918 ··· 1968 1967 .rc_interval = 150, 1969 1968 .rc_codes = RC_MAP_DM1105_NEC, 1970 1969 .module_name = "dw2102", 1971 - .allowed_protos = RC_BIT_NEC, 1970 + .allowed_protos = RC_PROTO_BIT_NEC, 1972 1971 .rc_query = dw2102_rc_query, 1973 1972 }, 1974 1973 ··· 2019 2018 .rc_interval = 150, 2020 2019 .rc_codes = RC_MAP_DM1105_NEC, 2021 2020 .module_name = "dw2102", 2022 - .allowed_protos = RC_BIT_NEC, 2021 + .allowed_protos = RC_PROTO_BIT_NEC, 2023 2022 .rc_query = dw2102_rc_query, 2024 2023 }, 2025 2024 ··· 2068 2067 .rc_interval = 150, 2069 2068 .rc_codes = RC_MAP_TEVII_NEC, 2070 2069 .module_name = "dw2102", 2071 - .allowed_protos = RC_BIT_NEC, 2070 + .allowed_protos = RC_PROTO_BIT_NEC, 2072 2071 .rc_query = dw2102_rc_query, 2073 2072 }, 2074 2073 ··· 2162 2161 .rc_interval = 150, 2163 2162 .rc_codes = RC_MAP_SU3000, 2164 2163 .module_name = "dw2102", 2165 - .allowed_protos = RC_BIT_RC5, 2164 + .allowed_protos = RC_PROTO_BIT_RC5, 2166 2165 .rc_query = su3000_rc_query, 2167 2166 }, 2168 2167 ··· 2231 2230 .rc_interval = 150, 2232 2231 .rc_codes = RC_MAP_SU3000, 2233 2232 .module_name = "dw2102", 2234 - .allowed_protos = RC_BIT_RC5, 2233 + .allowed_protos = RC_PROTO_BIT_RC5, 2235 2234 .rc_query = su3000_rc_query, 2236 2235 }, 2237 2236 ··· 2280 2279 .rc_interval = 250, 2281 2280 .rc_codes = RC_MAP_TT_1500, 2282 2281 .module_name = "dw2102", 2283 - .allowed_protos = RC_BIT_RC5, 2282 + .allowed_protos = RC_PROTO_BIT_RC5, 2284 2283 .rc_query = su3000_rc_query, 2285 2284 }, 2286 2285
+2 -2
drivers/media/usb/dvb-usb/m920x.c
··· 241 241 else if (state == REMOTE_KEY_REPEAT) 242 242 rc_repeat(d->rc_dev); 243 243 else 244 - rc_keydown(d->rc_dev, RC_TYPE_UNKNOWN, rc_state[1], 0); 244 + rc_keydown(d->rc_dev, RC_PROTO_UNKNOWN, rc_state[1], 0); 245 245 246 246 out: 247 247 kfree(rc_state); ··· 1208 1208 .rc_interval = 150, 1209 1209 .rc_codes = RC_MAP_TWINHAN_VP1027_DVBS, 1210 1210 .rc_query = m920x_rc_core_query, 1211 - .allowed_protos = RC_BIT_UNKNOWN, 1211 + .allowed_protos = RC_PROTO_BIT_UNKNOWN, 1212 1212 }, 1213 1213 1214 1214 .size_of_priv = sizeof(struct m920x_state),
+3 -3
drivers/media/usb/dvb-usb/pctv452e.c
··· 600 600 info("%s: cmd=0x%02x sys=0x%02x\n", 601 601 __func__, rx[6], rx[7]); 602 602 603 - rc_keydown(d->rc_dev, RC_TYPE_RC5, state->last_rc_key, 0); 603 + rc_keydown(d->rc_dev, RC_PROTO_RC5, state->last_rc_key, 0); 604 604 } else if (state->last_rc_key) { 605 605 rc_keyup(d->rc_dev); 606 606 state->last_rc_key = 0; ··· 958 958 959 959 .rc.core = { 960 960 .rc_codes = RC_MAP_DIB0700_RC5_TABLE, 961 - .allowed_protos = RC_BIT_RC5, 961 + .allowed_protos = RC_PROTO_BIT_RC5, 962 962 .rc_query = pctv452e_rc_query, 963 963 .rc_interval = 100, 964 964 }, ··· 1011 1011 1012 1012 .rc.core = { 1013 1013 .rc_codes = RC_MAP_TT_1500, 1014 - .allowed_protos = RC_BIT_RC5, 1014 + .allowed_protos = RC_PROTO_BIT_RC5, 1015 1015 .rc_query = pctv452e_rc_query, 1016 1016 .rc_interval = 100, 1017 1017 },
+1 -1
drivers/media/usb/dvb-usb/technisat-usb2.c
··· 749 749 .rc_codes = RC_MAP_TECHNISAT_USB2, 750 750 .module_name = "technisat-usb2", 751 751 .rc_query = technisat_usb2_rc_query, 752 - .allowed_protos = RC_BIT_ALL_IR_DECODER, 752 + .allowed_protos = RC_PROTO_BIT_ALL_IR_DECODER, 753 753 .driver_type = RC_DRIVER_IR_RAW, 754 754 } 755 755 };
+2 -2
drivers/media/usb/dvb-usb/ttusb2.c
··· 459 459 /* got a "press" event */ 460 460 st->last_rc_key = RC_SCANCODE_RC5(rx[3], rx[2]); 461 461 deb_info("%s: cmd=0x%02x sys=0x%02x\n", __func__, rx[2], rx[3]); 462 - rc_keydown(d->rc_dev, RC_TYPE_RC5, st->last_rc_key, rx[1]); 462 + rc_keydown(d->rc_dev, RC_PROTO_RC5, st->last_rc_key, rx[1]); 463 463 } else if (st->last_rc_key) { 464 464 rc_keyup(d->rc_dev); 465 465 st->last_rc_key = 0; ··· 766 766 .rc_interval = 150, /* Less than IR_KEYPRESS_TIMEOUT */ 767 767 .rc_codes = RC_MAP_TT_1500, 768 768 .rc_query = tt3650_rc_query, 769 - .allowed_protos = RC_BIT_RC5, 769 + .allowed_protos = RC_PROTO_BIT_RC5, 770 770 }, 771 771 772 772 .num_adapters = 1,
+65 -59
drivers/media/usb/em28xx/em28xx-input.c
··· 55 55 unsigned int toggle_bit:1; 56 56 unsigned int read_count:7; 57 57 58 - enum rc_type protocol; 58 + enum rc_proto protocol; 59 59 u32 scancode; 60 60 }; 61 61 ··· 70 70 struct delayed_work work; 71 71 unsigned int full_code:1; 72 72 unsigned int last_readcount; 73 - u64 rc_type; 73 + u64 rc_proto; 74 74 75 75 struct i2c_client *i2c_client; 76 76 77 - int (*get_key_i2c)(struct i2c_client *ir, enum rc_type *protocol, u32 *scancode); 77 + int (*get_key_i2c)(struct i2c_client *ir, enum rc_proto *protocol, 78 + u32 *scancode); 78 79 int (*get_key)(struct em28xx_IR *, struct em28xx_ir_poll_result *); 79 80 }; 80 81 ··· 84 83 **********************************************************/ 85 84 86 85 static int em28xx_get_key_terratec(struct i2c_client *i2c_dev, 87 - enum rc_type *protocol, u32 *scancode) 86 + enum rc_proto *protocol, u32 *scancode) 88 87 { 89 88 unsigned char b; 90 89 ··· 102 101 /* keep old data */ 103 102 return 1; 104 103 105 - *protocol = RC_TYPE_UNKNOWN; 104 + *protocol = RC_PROTO_UNKNOWN; 106 105 *scancode = b; 107 106 return 1; 108 107 } 109 108 110 109 static int em28xx_get_key_em_haup(struct i2c_client *i2c_dev, 111 - enum rc_type *protocol, u32 *scancode) 110 + enum rc_proto *protocol, u32 *scancode) 112 111 { 113 112 unsigned char buf[2]; 114 113 int size; ··· 132 131 * So, the code translation is not complete. Yet, it is enough to 133 132 * work with the provided RC5 IR. 134 133 */ 135 - *protocol = RC_TYPE_RC5; 134 + *protocol = RC_PROTO_RC5; 136 135 *scancode = (bitrev8(buf[1]) & 0x1f) << 8 | bitrev8(buf[0]) >> 2; 137 136 return 1; 138 137 } 139 138 140 139 static int em28xx_get_key_pinnacle_usb_grey(struct i2c_client *i2c_dev, 141 - enum rc_type *protocol, u32 *scancode) 140 + enum rc_proto *protocol, 141 + u32 *scancode) 142 142 { 143 143 unsigned char buf[3]; 144 144 ··· 151 149 if (buf[0] != 0x00) 152 150 return 0; 153 151 154 - *protocol = RC_TYPE_UNKNOWN; 152 + *protocol = RC_PROTO_UNKNOWN; 155 153 *scancode = buf[2] & 0x3f; 156 154 return 1; 157 155 } 158 156 159 157 static int em28xx_get_key_winfast_usbii_deluxe(struct i2c_client *i2c_dev, 160 - enum rc_type *protocol, u32 *scancode) 158 + enum rc_proto *protocol, 159 + u32 *scancode) 161 160 { 162 161 unsigned char subaddr, keydetect, key; 163 162 ··· 178 175 if (key == 0x00) 179 176 return 0; 180 177 181 - *protocol = RC_TYPE_UNKNOWN; 178 + *protocol = RC_PROTO_UNKNOWN; 182 179 *scancode = key; 183 180 return 1; 184 181 } ··· 210 207 poll_result->read_count = (msg[0] & 0x7f); 211 208 212 209 /* Remote Control Address/Data (Regs 0x46/0x47) */ 213 - switch (ir->rc_type) { 214 - case RC_BIT_RC5: 215 - poll_result->protocol = RC_TYPE_RC5; 210 + switch (ir->rc_proto) { 211 + case RC_PROTO_BIT_RC5: 212 + poll_result->protocol = RC_PROTO_RC5; 216 213 poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); 217 214 break; 218 215 219 - case RC_BIT_NEC: 220 - poll_result->protocol = RC_TYPE_NEC; 216 + case RC_PROTO_BIT_NEC: 217 + poll_result->protocol = RC_PROTO_NEC; 221 218 poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[2]); 222 219 break; 223 220 224 221 default: 225 - poll_result->protocol = RC_TYPE_UNKNOWN; 222 + poll_result->protocol = RC_PROTO_UNKNOWN; 226 223 poll_result->scancode = msg[1] << 8 | msg[2]; 227 224 break; 228 225 } ··· 255 252 * Remote Control Address (Reg 0x52) 256 253 * Remote Control Data (Reg 0x53-0x55) 257 254 */ 258 - switch (ir->rc_type) { 259 - case RC_BIT_RC5: 260 - poll_result->protocol = RC_TYPE_RC5; 255 + switch (ir->rc_proto) { 256 + case RC_PROTO_BIT_RC5: 257 + poll_result->protocol = RC_PROTO_RC5; 261 258 poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); 262 259 break; 263 260 264 - case RC_BIT_NEC: 261 + case RC_PROTO_BIT_NEC: 265 262 poll_result->scancode = msg[1] << 8 | msg[2]; 266 263 if ((msg[3] ^ msg[4]) != 0xff) { /* 32 bits NEC */ 267 - poll_result->protocol = RC_TYPE_NEC32; 264 + poll_result->protocol = RC_PROTO_NEC32; 268 265 poll_result->scancode = RC_SCANCODE_NEC32((msg[1] << 24) | 269 266 (msg[2] << 16) | 270 267 (msg[3] << 8) | 271 268 (msg[4])); 272 269 } else if ((msg[1] ^ msg[2]) != 0xff) { /* 24 bits NEC */ 273 - poll_result->protocol = RC_TYPE_NECX; 270 + poll_result->protocol = RC_PROTO_NECX; 274 271 poll_result->scancode = RC_SCANCODE_NECX(msg[1] << 8 | 275 272 msg[2], msg[3]); 276 273 } else { /* Normal NEC */ 277 - poll_result->protocol = RC_TYPE_NEC; 274 + poll_result->protocol = RC_PROTO_NEC; 278 275 poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[3]); 279 276 } 280 277 break; 281 278 282 - case RC_BIT_RC6_0: 283 - poll_result->protocol = RC_TYPE_RC6_0; 279 + case RC_PROTO_BIT_RC6_0: 280 + poll_result->protocol = RC_PROTO_RC6_0; 284 281 poll_result->scancode = RC_SCANCODE_RC6_0(msg[1], msg[2]); 285 282 break; 286 283 287 284 default: 288 - poll_result->protocol = RC_TYPE_UNKNOWN; 285 + poll_result->protocol = RC_PROTO_UNKNOWN; 289 286 poll_result->scancode = (msg[1] << 24) | (msg[2] << 16) | 290 287 (msg[3] << 8) | msg[4]; 291 288 break; ··· 301 298 static int em28xx_i2c_ir_handle_key(struct em28xx_IR *ir) 302 299 { 303 300 static u32 scancode; 304 - enum rc_type protocol; 301 + enum rc_proto protocol; 305 302 int rc; 306 303 307 304 rc = ir->get_key_i2c(ir->i2c_client, &protocol, &scancode); ··· 341 338 poll_result.toggle_bit); 342 339 else 343 340 rc_keydown(ir->rc, 344 - RC_TYPE_UNKNOWN, 341 + RC_PROTO_UNKNOWN, 345 342 poll_result.scancode & 0xff, 346 343 poll_result.toggle_bit); 347 344 ··· 386 383 cancel_delayed_work_sync(&ir->work); 387 384 } 388 385 389 - static int em2860_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_type) 386 + static int em2860_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) 390 387 { 391 388 struct em28xx_IR *ir = rc_dev->priv; 392 389 struct em28xx *dev = ir->dev; 393 390 394 391 /* Adjust xclk based on IR table for RC5/NEC tables */ 395 - if (*rc_type & RC_BIT_RC5) { 392 + if (*rc_proto & RC_PROTO_BIT_RC5) { 396 393 dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; 397 394 ir->full_code = 1; 398 - *rc_type = RC_BIT_RC5; 399 - } else if (*rc_type & RC_BIT_NEC) { 395 + *rc_proto = RC_PROTO_BIT_RC5; 396 + } else if (*rc_proto & RC_PROTO_BIT_NEC) { 400 397 dev->board.xclk &= ~EM28XX_XCLK_IR_RC5_MODE; 401 398 ir->full_code = 1; 402 - *rc_type = RC_BIT_NEC; 403 - } else if (*rc_type & RC_BIT_UNKNOWN) { 404 - *rc_type = RC_BIT_UNKNOWN; 399 + *rc_proto = RC_PROTO_BIT_NEC; 400 + } else if (*rc_proto & RC_PROTO_BIT_UNKNOWN) { 401 + *rc_proto = RC_PROTO_BIT_UNKNOWN; 405 402 } else { 406 - *rc_type = ir->rc_type; 403 + *rc_proto = ir->rc_proto; 407 404 return -EINVAL; 408 405 } 409 406 em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk, 410 407 EM28XX_XCLK_IR_RC5_MODE); 411 408 412 - ir->rc_type = *rc_type; 409 + ir->rc_proto = *rc_proto; 413 410 414 411 return 0; 415 412 } 416 413 417 - static int em2874_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_type) 414 + static int em2874_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) 418 415 { 419 416 struct em28xx_IR *ir = rc_dev->priv; 420 417 struct em28xx *dev = ir->dev; 421 418 u8 ir_config = EM2874_IR_RC5; 422 419 423 420 /* Adjust xclk and set type based on IR table for RC5/NEC/RC6 tables */ 424 - if (*rc_type & RC_BIT_RC5) { 421 + if (*rc_proto & RC_PROTO_BIT_RC5) { 425 422 dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; 426 423 ir->full_code = 1; 427 - *rc_type = RC_BIT_RC5; 428 - } else if (*rc_type & RC_BIT_NEC) { 424 + *rc_proto = RC_PROTO_BIT_RC5; 425 + } else if (*rc_proto & RC_PROTO_BIT_NEC) { 429 426 dev->board.xclk &= ~EM28XX_XCLK_IR_RC5_MODE; 430 427 ir_config = EM2874_IR_NEC | EM2874_IR_NEC_NO_PARITY; 431 428 ir->full_code = 1; 432 - *rc_type = RC_BIT_NEC; 433 - } else if (*rc_type & RC_BIT_RC6_0) { 429 + *rc_proto = RC_PROTO_BIT_NEC; 430 + } else if (*rc_proto & RC_PROTO_BIT_RC6_0) { 434 431 dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; 435 432 ir_config = EM2874_IR_RC6_MODE_0; 436 433 ir->full_code = 1; 437 - *rc_type = RC_BIT_RC6_0; 438 - } else if (*rc_type & RC_BIT_UNKNOWN) { 439 - *rc_type = RC_BIT_UNKNOWN; 434 + *rc_proto = RC_PROTO_BIT_RC6_0; 435 + } else if (*rc_proto & RC_PROTO_BIT_UNKNOWN) { 436 + *rc_proto = RC_PROTO_BIT_UNKNOWN; 440 437 } else { 441 - *rc_type = ir->rc_type; 438 + *rc_proto = ir->rc_proto; 442 439 return -EINVAL; 443 440 } 444 441 em28xx_write_regs(dev, EM2874_R50_IR_CONFIG, &ir_config, 1); 445 442 em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk, 446 443 EM28XX_XCLK_IR_RC5_MODE); 447 444 448 - ir->rc_type = *rc_type; 445 + ir->rc_proto = *rc_proto; 449 446 450 447 return 0; 451 448 } 452 - static int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_type) 449 + 450 + static int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) 453 451 { 454 452 struct em28xx_IR *ir = rc_dev->priv; 455 453 struct em28xx *dev = ir->dev; ··· 459 455 switch (dev->chip_id) { 460 456 case CHIP_ID_EM2860: 461 457 case CHIP_ID_EM2883: 462 - return em2860_ir_change_protocol(rc_dev, rc_type); 458 + return em2860_ir_change_protocol(rc_dev, rc_proto); 463 459 case CHIP_ID_EM2884: 464 460 case CHIP_ID_EM2874: 465 461 case CHIP_ID_EM28174: 466 462 case CHIP_ID_EM28178: 467 - return em2874_ir_change_protocol(rc_dev, rc_type); 463 + return em2874_ir_change_protocol(rc_dev, rc_proto); 468 464 default: 469 465 dev_err(&ir->dev->intf->dev, 470 466 "Unrecognized em28xx chip id 0x%02x: IR not supported\n", ··· 690 686 struct em28xx_IR *ir; 691 687 struct rc_dev *rc; 692 688 int err = -ENOMEM; 693 - u64 rc_type; 689 + u64 rc_proto; 694 690 u16 i2c_rc_dev_addr = 0; 695 691 696 692 if (dev->is_audio_only) { ··· 753 749 case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2: 754 750 rc->map_name = RC_MAP_HAUPPAUGE; 755 751 ir->get_key_i2c = em28xx_get_key_em_haup; 756 - rc->allowed_protocols = RC_BIT_RC5; 752 + rc->allowed_protocols = RC_PROTO_BIT_RC5; 757 753 break; 758 754 case EM2820_BOARD_LEADTEK_WINFAST_USBII_DELUXE: 759 755 rc->map_name = RC_MAP_WINFAST_USBII_DELUXE; ··· 775 771 switch (dev->chip_id) { 776 772 case CHIP_ID_EM2860: 777 773 case CHIP_ID_EM2883: 778 - rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC; 774 + rc->allowed_protocols = RC_PROTO_BIT_RC5 | 775 + RC_PROTO_BIT_NEC; 779 776 ir->get_key = default_polling_getkey; 780 777 break; 781 778 case CHIP_ID_EM2884: ··· 784 779 case CHIP_ID_EM28174: 785 780 case CHIP_ID_EM28178: 786 781 ir->get_key = em2874_polling_getkey; 787 - rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC | 788 - RC_BIT_NECX | RC_BIT_NEC32 | RC_BIT_RC6_0; 782 + rc->allowed_protocols = RC_PROTO_BIT_RC5 | 783 + RC_PROTO_BIT_NEC | RC_PROTO_BIT_NECX | 784 + RC_PROTO_BIT_NEC32 | RC_PROTO_BIT_RC6_0; 789 785 break; 790 786 default: 791 787 err = -ENODEV; ··· 797 791 rc->map_name = dev->board.ir_codes; 798 792 799 793 /* By default, keep protocol field untouched */ 800 - rc_type = RC_BIT_UNKNOWN; 801 - err = em28xx_ir_change_protocol(rc, &rc_type); 794 + rc_proto = RC_PROTO_BIT_UNKNOWN; 795 + err = em28xx_ir_change_protocol(rc, &rc_proto); 802 796 if (err) 803 797 goto error; 804 798 }
+2 -1
drivers/media/usb/hdpvr/hdpvr-i2c.c
··· 55 55 /* Our default information for ir-kbd-i2c.c to use */ 56 56 init_data->ir_codes = RC_MAP_HAUPPAUGE; 57 57 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 58 - init_data->type = RC_BIT_RC5 | RC_BIT_RC6_MCE | RC_BIT_RC6_6A_32; 58 + init_data->type = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | 59 + RC_PROTO_BIT_RC6_6A_32; 59 60 init_data->name = "HD-PVR"; 60 61 init_data->polling_interval = 405; /* ms, duplicated from Windows */ 61 62 hdpvr_ir_rx_i2c_board_info.platform_data = init_data;
+5 -5
drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c
··· 567 567 case PVR2_IR_SCHEME_29XXX: /* Original 29xxx device */ 568 568 init_data->ir_codes = RC_MAP_HAUPPAUGE; 569 569 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP; 570 - init_data->type = RC_BIT_RC5; 570 + init_data->type = RC_PROTO_BIT_RC5; 571 571 init_data->name = hdw->hdw_desc->description; 572 572 init_data->polling_interval = 100; /* ms From ir-kbd-i2c */ 573 573 /* IR Receiver */ ··· 580 580 break; 581 581 case PVR2_IR_SCHEME_ZILOG: /* HVR-1950 style */ 582 582 case PVR2_IR_SCHEME_24XXX_MCE: /* 24xxx MCE device */ 583 - init_data->ir_codes = RC_MAP_HAUPPAUGE; 583 + init_data->ir_codes = RC_MAP_HAUPPAUGE; 584 584 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; 585 - init_data->type = RC_BIT_RC5 | RC_BIT_RC6_MCE | 586 - RC_BIT_RC6_6A_32; 587 - init_data->name = hdw->hdw_desc->description; 585 + init_data->type = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | 586 + RC_PROTO_BIT_RC6_6A_32; 587 + init_data->name = hdw->hdw_desc->description; 588 588 /* IR Receiver */ 589 589 info.addr = 0x71; 590 590 info.platform_data = init_data;
+19 -19
drivers/media/usb/tm6000/tm6000-input.c
··· 66 66 struct urb *int_urb; 67 67 68 68 /* IR device properties */ 69 - u64 rc_type; 69 + u64 rc_proto; 70 70 }; 71 71 72 72 void tm6000_ir_wait(struct tm6000_core *dev, u8 state) ··· 103 103 * IR, in order to discard such decoding 104 104 */ 105 105 106 - switch (ir->rc_type) { 107 - case RC_BIT_NEC: 106 + switch (ir->rc_proto) { 107 + case RC_PROTO_BIT_NEC: 108 108 leader = 900; /* ms */ 109 109 pulse = 700; /* ms - the actual value would be 562 */ 110 110 break; 111 111 default: 112 - case RC_BIT_RC5: 112 + case RC_PROTO_BIT_RC5: 113 113 leader = 900; /* ms - from the NEC decoding */ 114 114 pulse = 1780; /* ms - The actual value would be 1776 */ 115 115 break; ··· 117 117 118 118 pulse = ir_clock_mhz * pulse; 119 119 leader = ir_clock_mhz * leader; 120 - if (ir->rc_type == RC_BIT_NEC) 120 + if (ir->rc_proto == RC_PROTO_BIT_NEC) 121 121 leader = leader | 0x8000; 122 122 123 123 dprintk(2, "%s: %s, %d MHz, leader = 0x%04x, pulse = 0x%06x \n", 124 124 __func__, 125 - (ir->rc_type == RC_BIT_NEC) ? "NEC" : "RC-5", 125 + (ir->rc_proto == RC_PROTO_BIT_NEC) ? "NEC" : "RC-5", 126 126 ir_clock_mhz, leader, pulse); 127 127 128 128 /* Remote WAKEUP = enable, normal mode, from IR decoder output */ ··· 162 162 { 163 163 u8 device, command; 164 164 u32 scancode; 165 - enum rc_type protocol; 165 + enum rc_proto protocol; 166 166 167 167 if (len < 1) 168 168 return; 169 169 170 170 command = buf[0]; 171 171 device = (len > 1 ? buf[1] : 0x0); 172 - switch (ir->rc_type) { 173 - case RC_BIT_RC5: 174 - protocol = RC_TYPE_RC5; 172 + switch (ir->rc_proto) { 173 + case RC_PROTO_BIT_RC5: 174 + protocol = RC_PROTO_RC5; 175 175 scancode = RC_SCANCODE_RC5(device, command); 176 176 break; 177 - case RC_BIT_NEC: 178 - protocol = RC_TYPE_NEC; 177 + case RC_PROTO_BIT_NEC: 178 + protocol = RC_PROTO_NEC; 179 179 scancode = RC_SCANCODE_NEC(device, command); 180 180 break; 181 181 default: 182 - protocol = RC_TYPE_OTHER; 182 + protocol = RC_PROTO_OTHER; 183 183 scancode = RC_SCANCODE_OTHER(device << 8 | command); 184 184 break; 185 185 } ··· 311 311 cancel_delayed_work_sync(&ir->work); 312 312 } 313 313 314 - static int tm6000_ir_change_protocol(struct rc_dev *rc, u64 *rc_type) 314 + static int tm6000_ir_change_protocol(struct rc_dev *rc, u64 *rc_proto) 315 315 { 316 316 struct tm6000_IR *ir = rc->priv; 317 317 ··· 320 320 321 321 dprintk(2, "%s\n",__func__); 322 322 323 - ir->rc_type = *rc_type; 323 + ir->rc_proto = *rc_proto; 324 324 325 325 tm6000_ir_config(ir); 326 326 /* TODO */ ··· 409 409 struct tm6000_IR *ir; 410 410 struct rc_dev *rc; 411 411 int err = -ENOMEM; 412 - u64 rc_type; 412 + u64 rc_proto; 413 413 414 414 if (!enable_ir) 415 415 return -ENODEV; ··· 433 433 ir->rc = rc; 434 434 435 435 /* input setup */ 436 - rc->allowed_protocols = RC_BIT_RC5 | RC_BIT_NEC; 436 + rc->allowed_protocols = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_NEC; 437 437 /* Needed, in order to support NEC remotes with 24 or 32 bits */ 438 438 rc->scancode_mask = 0xffff; 439 439 rc->priv = ir; ··· 455 455 usb_make_path(dev->udev, ir->phys, sizeof(ir->phys)); 456 456 strlcat(ir->phys, "/input0", sizeof(ir->phys)); 457 457 458 - rc_type = RC_BIT_UNKNOWN; 459 - tm6000_ir_change_protocol(rc, &rc_type); 458 + rc_proto = RC_PROTO_BIT_UNKNOWN; 459 + tm6000_ir_change_protocol(rc, &rc_proto); 460 460 461 461 rc->device_name = ir->name; 462 462 rc->input_phys = ir->phys;
+5 -3
include/media/i2c/ir-kbd-i2c.h
··· 20 20 struct delayed_work work; 21 21 char name[32]; 22 22 char phys[32]; 23 - int (*get_key)(struct IR_i2c *ir, enum rc_type *protocol, 23 + int (*get_key)(struct IR_i2c *ir, 24 + enum rc_proto *protocol, 24 25 u32 *scancode, u8 *toggle); 25 26 }; 26 27 ··· 39 38 struct IR_i2c_init_data { 40 39 char *ir_codes; 41 40 const char *name; 42 - u64 type; /* RC_BIT_RC5, etc */ 41 + u64 type; /* RC_PROTO_BIT_RC5, etc */ 43 42 u32 polling_interval; /* 0 means DEFAULT_POLLING_INTERVAL */ 44 43 45 44 /* 46 45 * Specify either a function pointer or a value indicating one of 47 46 * ir_kbd_i2c's internal get_key functions 48 47 */ 49 - int (*get_key)(struct IR_i2c *ir, enum rc_type *protocol, 48 + int (*get_key)(struct IR_i2c *ir, 49 + enum rc_proto *protocol, 50 50 u32 *scancode, u8 *toggle); 51 51 enum ir_kbd_get_key_fn internal_get_key_func; 52 52
+18 -15
include/media/rc-core.h
··· 87 87 * @idle: used to keep track of RX state 88 88 * @encode_wakeup: wakeup filtering uses IR encode API, therefore the allowed 89 89 * wakeup protocols is the set of all raw encoders 90 - * @allowed_protocols: bitmask with the supported RC_BIT_* protocols 91 - * @enabled_protocols: bitmask with the enabled RC_BIT_* protocols 92 - * @allowed_wakeup_protocols: bitmask with the supported RC_BIT_* wakeup protocols 93 - * @wakeup_protocol: the enabled RC_TYPE_* wakeup protocol or 94 - * RC_TYPE_UNKNOWN if disabled. 90 + * @allowed_protocols: bitmask with the supported RC_PROTO_BIT_* protocols 91 + * @enabled_protocols: bitmask with the enabled RC_PROTO_BIT_* protocols 92 + * @allowed_wakeup_protocols: bitmask with the supported RC_PROTO_BIT_* wakeup 93 + * protocols 94 + * @wakeup_protocol: the enabled RC_PROTO_* wakeup protocol or 95 + * RC_PROTO_UNKNOWN if disabled. 95 96 * @scancode_filter: scancode filter 96 97 * @scancode_wakeup_filter: scancode wakeup filters 97 98 * @scancode_mask: some hardware decoders are not capable of providing the full ··· 155 154 u64 allowed_protocols; 156 155 u64 enabled_protocols; 157 156 u64 allowed_wakeup_protocols; 158 - enum rc_type wakeup_protocol; 157 + enum rc_proto wakeup_protocol; 159 158 struct rc_scancode_filter scancode_filter; 160 159 struct rc_scancode_filter scancode_wakeup_filter; 161 160 u32 scancode_mask; ··· 166 165 unsigned long keyup_jiffies; 167 166 struct timer_list timer_keyup; 168 167 u32 last_keycode; 169 - enum rc_type last_protocol; 168 + enum rc_proto last_protocol; 170 169 u32 last_scancode; 171 170 u8 last_toggle; 172 171 u32 timeout; ··· 174 173 u32 max_timeout; 175 174 u32 rx_resolution; 176 175 u32 tx_resolution; 177 - int (*change_protocol)(struct rc_dev *dev, u64 *rc_type); 176 + int (*change_protocol)(struct rc_dev *dev, u64 *rc_proto); 178 177 int (*open)(struct rc_dev *dev); 179 178 void (*close)(struct rc_dev *dev); 180 179 int (*s_tx_mask)(struct rc_dev *dev, u32 mask); ··· 263 262 void rc_close(struct rc_dev *rdev); 264 263 265 264 void rc_repeat(struct rc_dev *dev); 266 - void rc_keydown(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle); 267 - void rc_keydown_notimeout(struct rc_dev *dev, enum rc_type protocol, u32 scancode, u8 toggle); 265 + void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u32 scancode, 266 + u8 toggle); 267 + void rc_keydown_notimeout(struct rc_dev *dev, enum rc_proto protocol, 268 + u32 scancode, u8 toggle); 268 269 void rc_keyup(struct rc_dev *dev); 269 270 u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode); 270 271 ··· 307 304 int ir_raw_event_store_with_filter(struct rc_dev *dev, 308 305 struct ir_raw_event *ev); 309 306 void ir_raw_event_set_idle(struct rc_dev *dev, bool idle); 310 - int ir_raw_encode_scancode(enum rc_type protocol, u32 scancode, 307 + int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode, 311 308 struct ir_raw_event *events, unsigned int max); 312 309 313 310 static inline void ir_raw_event_reset(struct rc_dev *dev) ··· 338 335 /* Get NEC scancode and protocol type from address and command bytes */ 339 336 static inline u32 ir_nec_bytes_to_scancode(u8 address, u8 not_address, 340 337 u8 command, u8 not_command, 341 - enum rc_type *protocol) 338 + enum rc_proto *protocol) 342 339 { 343 340 u32 scancode; 344 341 ··· 350 347 address << 16 | 351 348 not_command << 8 | 352 349 command; 353 - *protocol = RC_TYPE_NEC32; 350 + *protocol = RC_PROTO_NEC32; 354 351 } else if ((address ^ not_address) != 0xff) { 355 352 /* Extended NEC */ 356 353 scancode = address << 16 | 357 354 not_address << 8 | 358 355 command; 359 - *protocol = RC_TYPE_NECX; 356 + *protocol = RC_PROTO_NECX; 360 357 } else { 361 358 /* Normal NEC */ 362 359 scancode = address << 8 | command; 363 - *protocol = RC_TYPE_NEC; 360 + *protocol = RC_PROTO_NEC; 364 361 } 365 362 366 363 return scancode;
+112 -103
include/media/rc-map.h
··· 12 12 #include <linux/input.h> 13 13 14 14 /** 15 - * enum rc_type - type of the Remote Controller protocol 15 + * enum rc_proto - the Remote Controller protocol 16 16 * 17 - * @RC_TYPE_UNKNOWN: Protocol not known 18 - * @RC_TYPE_OTHER: Protocol known but proprietary 19 - * @RC_TYPE_RC5: Philips RC5 protocol 20 - * @RC_TYPE_RC5X_20: Philips RC5x 20 bit protocol 21 - * @RC_TYPE_RC5_SZ: StreamZap variant of RC5 22 - * @RC_TYPE_JVC: JVC protocol 23 - * @RC_TYPE_SONY12: Sony 12 bit protocol 24 - * @RC_TYPE_SONY15: Sony 15 bit protocol 25 - * @RC_TYPE_SONY20: Sony 20 bit protocol 26 - * @RC_TYPE_NEC: NEC protocol 27 - * @RC_TYPE_NECX: Extended NEC protocol 28 - * @RC_TYPE_NEC32: NEC 32 bit protocol 29 - * @RC_TYPE_SANYO: Sanyo protocol 30 - * @RC_TYPE_MCIR2_KBD: RC6-ish MCE keyboard 31 - * @RC_TYPE_MCIR2_MSE: RC6-ish MCE mouse 32 - * @RC_TYPE_RC6_0: Philips RC6-0-16 protocol 33 - * @RC_TYPE_RC6_6A_20: Philips RC6-6A-20 protocol 34 - * @RC_TYPE_RC6_6A_24: Philips RC6-6A-24 protocol 35 - * @RC_TYPE_RC6_6A_32: Philips RC6-6A-32 protocol 36 - * @RC_TYPE_RC6_MCE: MCE (Philips RC6-6A-32 subtype) protocol 37 - * @RC_TYPE_SHARP: Sharp protocol 38 - * @RC_TYPE_XMP: XMP protocol 39 - * @RC_TYPE_CEC: CEC protocol 17 + * @RC_PROTO_UNKNOWN: Protocol not known 18 + * @RC_PROTO_OTHER: Protocol known but proprietary 19 + * @RC_PROTO_RC5: Philips RC5 protocol 20 + * @RC_PROTO_RC5X_20: Philips RC5x 20 bit protocol 21 + * @RC_PROTO_RC5_SZ: StreamZap variant of RC5 22 + * @RC_PROTO_JVC: JVC protocol 23 + * @RC_PROTO_SONY12: Sony 12 bit protocol 24 + * @RC_PROTO_SONY15: Sony 15 bit protocol 25 + * @RC_PROTO_SONY20: Sony 20 bit protocol 26 + * @RC_PROTO_NEC: NEC protocol 27 + * @RC_PROTO_NECX: Extended NEC protocol 28 + * @RC_PROTO_NEC32: NEC 32 bit protocol 29 + * @RC_PROTO_SANYO: Sanyo protocol 30 + * @RC_PROTO_MCIR2_KBD: RC6-ish MCE keyboard 31 + * @RC_PROTO_MCIR2_MSE: RC6-ish MCE mouse 32 + * @RC_PROTO_RC6_0: Philips RC6-0-16 protocol 33 + * @RC_PROTO_RC6_6A_20: Philips RC6-6A-20 protocol 34 + * @RC_PROTO_RC6_6A_24: Philips RC6-6A-24 protocol 35 + * @RC_PROTO_RC6_6A_32: Philips RC6-6A-32 protocol 36 + * @RC_PROTO_RC6_MCE: MCE (Philips RC6-6A-32 subtype) protocol 37 + * @RC_PROTO_SHARP: Sharp protocol 38 + * @RC_PROTO_XMP: XMP protocol 39 + * @RC_PROTO_CEC: CEC protocol 40 40 */ 41 - enum rc_type { 42 - RC_TYPE_UNKNOWN = 0, 43 - RC_TYPE_OTHER = 1, 44 - RC_TYPE_RC5 = 2, 45 - RC_TYPE_RC5X_20 = 3, 46 - RC_TYPE_RC5_SZ = 4, 47 - RC_TYPE_JVC = 5, 48 - RC_TYPE_SONY12 = 6, 49 - RC_TYPE_SONY15 = 7, 50 - RC_TYPE_SONY20 = 8, 51 - RC_TYPE_NEC = 9, 52 - RC_TYPE_NECX = 10, 53 - RC_TYPE_NEC32 = 11, 54 - RC_TYPE_SANYO = 12, 55 - RC_TYPE_MCIR2_KBD = 13, 56 - RC_TYPE_MCIR2_MSE = 14, 57 - RC_TYPE_RC6_0 = 15, 58 - RC_TYPE_RC6_6A_20 = 16, 59 - RC_TYPE_RC6_6A_24 = 17, 60 - RC_TYPE_RC6_6A_32 = 18, 61 - RC_TYPE_RC6_MCE = 19, 62 - RC_TYPE_SHARP = 20, 63 - RC_TYPE_XMP = 21, 64 - RC_TYPE_CEC = 22, 41 + enum rc_proto { 42 + RC_PROTO_UNKNOWN = 0, 43 + RC_PROTO_OTHER = 1, 44 + RC_PROTO_RC5 = 2, 45 + RC_PROTO_RC5X_20 = 3, 46 + RC_PROTO_RC5_SZ = 4, 47 + RC_PROTO_JVC = 5, 48 + RC_PROTO_SONY12 = 6, 49 + RC_PROTO_SONY15 = 7, 50 + RC_PROTO_SONY20 = 8, 51 + RC_PROTO_NEC = 9, 52 + RC_PROTO_NECX = 10, 53 + RC_PROTO_NEC32 = 11, 54 + RC_PROTO_SANYO = 12, 55 + RC_PROTO_MCIR2_KBD = 13, 56 + RC_PROTO_MCIR2_MSE = 14, 57 + RC_PROTO_RC6_0 = 15, 58 + RC_PROTO_RC6_6A_20 = 16, 59 + RC_PROTO_RC6_6A_24 = 17, 60 + RC_PROTO_RC6_6A_32 = 18, 61 + RC_PROTO_RC6_MCE = 19, 62 + RC_PROTO_SHARP = 20, 63 + RC_PROTO_XMP = 21, 64 + RC_PROTO_CEC = 22, 65 65 }; 66 66 67 - #define RC_BIT_NONE 0ULL 68 - #define RC_BIT_UNKNOWN BIT_ULL(RC_TYPE_UNKNOWN) 69 - #define RC_BIT_OTHER BIT_ULL(RC_TYPE_OTHER) 70 - #define RC_BIT_RC5 BIT_ULL(RC_TYPE_RC5) 71 - #define RC_BIT_RC5X_20 BIT_ULL(RC_TYPE_RC5X_20) 72 - #define RC_BIT_RC5_SZ BIT_ULL(RC_TYPE_RC5_SZ) 73 - #define RC_BIT_JVC BIT_ULL(RC_TYPE_JVC) 74 - #define RC_BIT_SONY12 BIT_ULL(RC_TYPE_SONY12) 75 - #define RC_BIT_SONY15 BIT_ULL(RC_TYPE_SONY15) 76 - #define RC_BIT_SONY20 BIT_ULL(RC_TYPE_SONY20) 77 - #define RC_BIT_NEC BIT_ULL(RC_TYPE_NEC) 78 - #define RC_BIT_NECX BIT_ULL(RC_TYPE_NECX) 79 - #define RC_BIT_NEC32 BIT_ULL(RC_TYPE_NEC32) 80 - #define RC_BIT_SANYO BIT_ULL(RC_TYPE_SANYO) 81 - #define RC_BIT_MCIR2_KBD BIT_ULL(RC_TYPE_MCIR2_KBD) 82 - #define RC_BIT_MCIR2_MSE BIT_ULL(RC_TYPE_MCIR2_MSE) 83 - #define RC_BIT_RC6_0 BIT_ULL(RC_TYPE_RC6_0) 84 - #define RC_BIT_RC6_6A_20 BIT_ULL(RC_TYPE_RC6_6A_20) 85 - #define RC_BIT_RC6_6A_24 BIT_ULL(RC_TYPE_RC6_6A_24) 86 - #define RC_BIT_RC6_6A_32 BIT_ULL(RC_TYPE_RC6_6A_32) 87 - #define RC_BIT_RC6_MCE BIT_ULL(RC_TYPE_RC6_MCE) 88 - #define RC_BIT_SHARP BIT_ULL(RC_TYPE_SHARP) 89 - #define RC_BIT_XMP BIT_ULL(RC_TYPE_XMP) 90 - #define RC_BIT_CEC BIT_ULL(RC_TYPE_CEC) 67 + #define RC_PROTO_BIT_NONE 0ULL 68 + #define RC_PROTO_BIT_UNKNOWN BIT_ULL(RC_PROTO_UNKNOWN) 69 + #define RC_PROTO_BIT_OTHER BIT_ULL(RC_PROTO_OTHER) 70 + #define RC_PROTO_BIT_RC5 BIT_ULL(RC_PROTO_RC5) 71 + #define RC_PROTO_BIT_RC5X_20 BIT_ULL(RC_PROTO_RC5X_20) 72 + #define RC_PROTO_BIT_RC5_SZ BIT_ULL(RC_PROTO_RC5_SZ) 73 + #define RC_PROTO_BIT_JVC BIT_ULL(RC_PROTO_JVC) 74 + #define RC_PROTO_BIT_SONY12 BIT_ULL(RC_PROTO_SONY12) 75 + #define RC_PROTO_BIT_SONY15 BIT_ULL(RC_PROTO_SONY15) 76 + #define RC_PROTO_BIT_SONY20 BIT_ULL(RC_PROTO_SONY20) 77 + #define RC_PROTO_BIT_NEC BIT_ULL(RC_PROTO_NEC) 78 + #define RC_PROTO_BIT_NECX BIT_ULL(RC_PROTO_NECX) 79 + #define RC_PROTO_BIT_NEC32 BIT_ULL(RC_PROTO_NEC32) 80 + #define RC_PROTO_BIT_SANYO BIT_ULL(RC_PROTO_SANYO) 81 + #define RC_PROTO_BIT_MCIR2_KBD BIT_ULL(RC_PROTO_MCIR2_KBD) 82 + #define RC_PROTO_BIT_MCIR2_MSE BIT_ULL(RC_PROTO_MCIR2_MSE) 83 + #define RC_PROTO_BIT_RC6_0 BIT_ULL(RC_PROTO_RC6_0) 84 + #define RC_PROTO_BIT_RC6_6A_20 BIT_ULL(RC_PROTO_RC6_6A_20) 85 + #define RC_PROTO_BIT_RC6_6A_24 BIT_ULL(RC_PROTO_RC6_6A_24) 86 + #define RC_PROTO_BIT_RC6_6A_32 BIT_ULL(RC_PROTO_RC6_6A_32) 87 + #define RC_PROTO_BIT_RC6_MCE BIT_ULL(RC_PROTO_RC6_MCE) 88 + #define RC_PROTO_BIT_SHARP BIT_ULL(RC_PROTO_SHARP) 89 + #define RC_PROTO_BIT_XMP BIT_ULL(RC_PROTO_XMP) 90 + #define RC_PROTO_BIT_CEC BIT_ULL(RC_PROTO_CEC) 91 91 92 - #define RC_BIT_ALL (RC_BIT_UNKNOWN | RC_BIT_OTHER | \ 93 - RC_BIT_RC5 | RC_BIT_RC5X_20 | RC_BIT_RC5_SZ | \ 94 - RC_BIT_JVC | \ 95 - RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20 | \ 96 - RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32 | \ 97 - RC_BIT_SANYO | \ 98 - RC_BIT_MCIR2_KBD | RC_BIT_MCIR2_MSE | \ 99 - RC_BIT_RC6_0 | RC_BIT_RC6_6A_20 | RC_BIT_RC6_6A_24 | \ 100 - RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE | RC_BIT_SHARP | \ 101 - RC_BIT_XMP | RC_BIT_CEC) 92 + #define RC_PROTO_BIT_ALL \ 93 + (RC_PROTO_BIT_UNKNOWN | RC_PROTO_BIT_OTHER | \ 94 + RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC5X_20 | \ 95 + RC_PROTO_BIT_RC5_SZ | RC_PROTO_BIT_JVC | \ 96 + RC_PROTO_BIT_SONY12 | RC_PROTO_BIT_SONY15 | \ 97 + RC_PROTO_BIT_SONY20 | RC_PROTO_BIT_NEC | \ 98 + RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32 | \ 99 + RC_PROTO_BIT_SANYO | \ 100 + RC_PROTO_BIT_MCIR2_KBD | RC_PROTO_BIT_MCIR2_MSE | \ 101 + RC_PROTO_BIT_RC6_0 | RC_PROTO_BIT_RC6_6A_20 | \ 102 + RC_PROTO_BIT_RC6_6A_24 | RC_PROTO_BIT_RC6_6A_32 | \ 103 + RC_PROTO_BIT_RC6_MCE | RC_PROTO_BIT_SHARP | \ 104 + RC_PROTO_BIT_XMP | RC_PROTO_BIT_CEC) 102 105 /* All rc protocols for which we have decoders */ 103 - #define RC_BIT_ALL_IR_DECODER \ 104 - (RC_BIT_RC5 | RC_BIT_RC5X_20 | RC_BIT_RC5_SZ | \ 105 - RC_BIT_JVC | \ 106 - RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20 | \ 107 - RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32 | \ 108 - RC_BIT_SANYO | RC_BIT_MCIR2_KBD | RC_BIT_MCIR2_MSE | \ 109 - RC_BIT_RC6_0 | RC_BIT_RC6_6A_20 | RC_BIT_RC6_6A_24 | \ 110 - RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE | RC_BIT_SHARP | \ 111 - RC_BIT_XMP) 106 + #define RC_PROTO_BIT_ALL_IR_DECODER \ 107 + (RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC5X_20 | \ 108 + RC_PROTO_BIT_RC5_SZ | RC_PROTO_BIT_JVC | \ 109 + RC_PROTO_BIT_SONY12 | RC_PROTO_BIT_SONY15 | \ 110 + RC_PROTO_BIT_SONY20 | RC_PROTO_BIT_NEC | \ 111 + RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32 | \ 112 + RC_PROTO_BIT_SANYO | RC_PROTO_BIT_MCIR2_KBD | \ 113 + RC_PROTO_BIT_MCIR2_MSE | \ 114 + RC_PROTO_BIT_RC6_0 | RC_PROTO_BIT_RC6_6A_20 | \ 115 + RC_PROTO_BIT_RC6_6A_24 | RC_PROTO_BIT_RC6_6A_32 | \ 116 + RC_PROTO_BIT_RC6_MCE | RC_PROTO_BIT_SHARP | \ 117 + RC_PROTO_BIT_XMP) 112 118 113 - #define RC_BIT_ALL_IR_ENCODER \ 114 - (RC_BIT_RC5 | RC_BIT_RC5X_20 | RC_BIT_RC5_SZ | \ 115 - RC_BIT_JVC | \ 116 - RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20 | \ 117 - RC_BIT_NEC | RC_BIT_NECX | RC_BIT_NEC32 | \ 118 - RC_BIT_SANYO | RC_BIT_MCIR2_KBD | RC_BIT_MCIR2_MSE | \ 119 - RC_BIT_RC6_0 | RC_BIT_RC6_6A_20 | RC_BIT_RC6_6A_24 | \ 120 - RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE | \ 121 - RC_BIT_SHARP) 119 + #define RC_PROTO_BIT_ALL_IR_ENCODER \ 120 + (RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC5X_20 | \ 121 + RC_PROTO_BIT_RC5_SZ | RC_PROTO_BIT_JVC | \ 122 + RC_PROTO_BIT_SONY12 | RC_PROTO_BIT_SONY15 | \ 123 + RC_PROTO_BIT_SONY20 | RC_PROTO_BIT_NEC | \ 124 + RC_PROTO_BIT_NECX | RC_PROTO_BIT_NEC32 | \ 125 + RC_PROTO_BIT_SANYO | RC_PROTO_BIT_MCIR2_KBD | \ 126 + RC_PROTO_BIT_MCIR2_MSE | \ 127 + RC_PROTO_BIT_RC6_0 | RC_PROTO_BIT_RC6_6A_20 | \ 128 + RC_PROTO_BIT_RC6_6A_24 | \ 129 + RC_PROTO_BIT_RC6_6A_32 | RC_PROTO_BIT_RC6_MCE | \ 130 + RC_PROTO_BIT_SHARP) 122 131 123 132 #define RC_SCANCODE_UNKNOWN(x) (x) 124 133 #define RC_SCANCODE_OTHER(x) (x) ··· 157 148 * @size: Max number of entries 158 149 * @len: Number of entries that are in use 159 150 * @alloc: size of \*scan, in bytes 160 - * @rc_type: type of the remote controller protocol, as defined at 161 - * enum &rc_type 151 + * @rc_proto: type of the remote controller protocol, as defined at 152 + * enum &rc_proto 162 153 * @name: name of the key map table 163 154 * @lock: lock to protect access to this structure 164 155 */ ··· 167 158 unsigned int size; 168 159 unsigned int len; 169 160 unsigned int alloc; 170 - enum rc_type rc_type; 161 + enum rc_proto rc_proto; 171 162 const char *name; 172 163 spinlock_t lock; 173 164 };