diff options
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-input.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index e32eb38564e6..29cc74441a7d 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -343,7 +343,7 @@ static void em28xx_ir_stop(struct rc_dev *rc) | |||
343 | cancel_delayed_work_sync(&ir->work); | 343 | cancel_delayed_work_sync(&ir->work); |
344 | } | 344 | } |
345 | 345 | ||
346 | int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 ir_type) | 346 | int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 rc_type) |
347 | { | 347 | { |
348 | int rc = 0; | 348 | int rc = 0; |
349 | struct em28xx_IR *ir = rc_dev->priv; | 349 | struct em28xx_IR *ir = rc_dev->priv; |
@@ -352,14 +352,14 @@ int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 ir_type) | |||
352 | 352 | ||
353 | /* Adjust xclk based o IR table for RC5/NEC tables */ | 353 | /* Adjust xclk based o IR table for RC5/NEC tables */ |
354 | 354 | ||
355 | if (ir_type == IR_TYPE_RC5) { | 355 | if (rc_type == RC_TYPE_RC5) { |
356 | dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; | 356 | dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; |
357 | ir->full_code = 1; | 357 | ir->full_code = 1; |
358 | } else if (ir_type == IR_TYPE_NEC) { | 358 | } else if (rc_type == RC_TYPE_NEC) { |
359 | dev->board.xclk &= ~EM28XX_XCLK_IR_RC5_MODE; | 359 | dev->board.xclk &= ~EM28XX_XCLK_IR_RC5_MODE; |
360 | ir_config = EM2874_IR_NEC; | 360 | ir_config = EM2874_IR_NEC; |
361 | ir->full_code = 1; | 361 | ir->full_code = 1; |
362 | } else if (ir_type != IR_TYPE_UNKNOWN) | 362 | } else if (rc_type != RC_TYPE_UNKNOWN) |
363 | rc = -EINVAL; | 363 | rc = -EINVAL; |
364 | 364 | ||
365 | em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk, | 365 | em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk, |
@@ -408,14 +408,14 @@ int em28xx_ir_init(struct em28xx *dev) | |||
408 | * em2874 supports more protocols. For now, let's just announce | 408 | * em2874 supports more protocols. For now, let's just announce |
409 | * the two protocols that were already tested | 409 | * the two protocols that were already tested |
410 | */ | 410 | */ |
411 | rc->allowed_protos = IR_TYPE_RC5 | IR_TYPE_NEC; | 411 | rc->allowed_protos = RC_TYPE_RC5 | RC_TYPE_NEC; |
412 | rc->priv = ir; | 412 | rc->priv = ir; |
413 | rc->change_protocol = em28xx_ir_change_protocol; | 413 | rc->change_protocol = em28xx_ir_change_protocol; |
414 | rc->open = em28xx_ir_start; | 414 | rc->open = em28xx_ir_start; |
415 | rc->close = em28xx_ir_stop; | 415 | rc->close = em28xx_ir_stop; |
416 | 416 | ||
417 | /* By default, keep protocol field untouched */ | 417 | /* By default, keep protocol field untouched */ |
418 | err = em28xx_ir_change_protocol(rc, IR_TYPE_UNKNOWN); | 418 | err = em28xx_ir_change_protocol(rc, RC_TYPE_UNKNOWN); |
419 | if (err) | 419 | if (err) |
420 | goto err_out_free; | 420 | goto err_out_free; |
421 | 421 | ||