diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-11-17 08:05:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:49 -0500 |
commit | a6e3b81f6198654207c4e972e7ed91931e53e93c (patch) | |
tree | 45653b8a6a40d6c6b2ae2d31bdca69a0900fa478 /drivers/media/video/saa7134/saa7134-input.c | |
parent | bce8d0fe4af4b3a1e46e66cd6116d6389ad0cc22 (diff) |
[media] rc: Remove ir-common.h
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-input.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 72562b8cf3be..900e7985d9b3 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -61,7 +61,7 @@ static int saa7134_raw_decode_irq(struct saa7134_dev *dev); | |||
61 | 61 | ||
62 | static int build_key(struct saa7134_dev *dev) | 62 | static int build_key(struct saa7134_dev *dev) |
63 | { | 63 | { |
64 | struct card_ir *ir = dev->remote; | 64 | struct saa7134_card_ir *ir = dev->remote; |
65 | u32 gpio, data; | 65 | u32 gpio, data; |
66 | 66 | ||
67 | /* here comes the additional handshake steps for some cards */ | 67 | /* here comes the additional handshake steps for some cards */ |
@@ -385,7 +385,7 @@ static int get_key_pinnacle_color(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw) | |||
385 | 385 | ||
386 | void saa7134_input_irq(struct saa7134_dev *dev) | 386 | void saa7134_input_irq(struct saa7134_dev *dev) |
387 | { | 387 | { |
388 | struct card_ir *ir; | 388 | struct saa7134_card_ir *ir; |
389 | 389 | ||
390 | if (!dev || !dev->remote) | 390 | if (!dev || !dev->remote) |
391 | return; | 391 | return; |
@@ -404,7 +404,7 @@ void saa7134_input_irq(struct saa7134_dev *dev) | |||
404 | static void saa7134_input_timer(unsigned long data) | 404 | static void saa7134_input_timer(unsigned long data) |
405 | { | 405 | { |
406 | struct saa7134_dev *dev = (struct saa7134_dev *)data; | 406 | struct saa7134_dev *dev = (struct saa7134_dev *)data; |
407 | struct card_ir *ir = dev->remote; | 407 | struct saa7134_card_ir *ir = dev->remote; |
408 | 408 | ||
409 | build_key(dev); | 409 | build_key(dev); |
410 | mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling)); | 410 | mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling)); |
@@ -413,17 +413,17 @@ static void saa7134_input_timer(unsigned long data) | |||
413 | static void ir_raw_decode_timer_end(unsigned long data) | 413 | static void ir_raw_decode_timer_end(unsigned long data) |
414 | { | 414 | { |
415 | struct saa7134_dev *dev = (struct saa7134_dev *)data; | 415 | struct saa7134_dev *dev = (struct saa7134_dev *)data; |
416 | struct card_ir *ir = dev->remote; | 416 | struct saa7134_card_ir *ir = dev->remote; |
417 | 417 | ||
418 | ir_raw_event_handle(dev->remote->dev); | 418 | ir_raw_event_handle(dev->remote->dev); |
419 | 419 | ||
420 | ir->active = 0; | 420 | ir->active = false; |
421 | } | 421 | } |
422 | 422 | ||
423 | static int __saa7134_ir_start(void *priv) | 423 | static int __saa7134_ir_start(void *priv) |
424 | { | 424 | { |
425 | struct saa7134_dev *dev = priv; | 425 | struct saa7134_dev *dev = priv; |
426 | struct card_ir *ir; | 426 | struct saa7134_card_ir *ir; |
427 | 427 | ||
428 | if (!dev) | 428 | if (!dev) |
429 | return -EINVAL; | 429 | return -EINVAL; |
@@ -435,7 +435,7 @@ static int __saa7134_ir_start(void *priv) | |||
435 | if (ir->running) | 435 | if (ir->running) |
436 | return 0; | 436 | return 0; |
437 | 437 | ||
438 | ir->running = 1; | 438 | ir->running = true; |
439 | if (ir->polling) { | 439 | if (ir->polling) { |
440 | setup_timer(&ir->timer, saa7134_input_timer, | 440 | setup_timer(&ir->timer, saa7134_input_timer, |
441 | (unsigned long)dev); | 441 | (unsigned long)dev); |
@@ -446,7 +446,7 @@ static int __saa7134_ir_start(void *priv) | |||
446 | init_timer(&ir->timer_end); | 446 | init_timer(&ir->timer_end); |
447 | ir->timer_end.function = ir_raw_decode_timer_end; | 447 | ir->timer_end.function = ir_raw_decode_timer_end; |
448 | ir->timer_end.data = (unsigned long)dev; | 448 | ir->timer_end.data = (unsigned long)dev; |
449 | ir->active = 0; | 449 | ir->active = false; |
450 | } | 450 | } |
451 | 451 | ||
452 | return 0; | 452 | return 0; |
@@ -455,7 +455,7 @@ static int __saa7134_ir_start(void *priv) | |||
455 | static void __saa7134_ir_stop(void *priv) | 455 | static void __saa7134_ir_stop(void *priv) |
456 | { | 456 | { |
457 | struct saa7134_dev *dev = priv; | 457 | struct saa7134_dev *dev = priv; |
458 | struct card_ir *ir; | 458 | struct saa7134_card_ir *ir; |
459 | 459 | ||
460 | if (!dev) | 460 | if (!dev) |
461 | return; | 461 | return; |
@@ -470,10 +470,10 @@ static void __saa7134_ir_stop(void *priv) | |||
470 | del_timer_sync(&dev->remote->timer); | 470 | del_timer_sync(&dev->remote->timer); |
471 | else if (ir->raw_decode) { | 471 | else if (ir->raw_decode) { |
472 | del_timer_sync(&ir->timer_end); | 472 | del_timer_sync(&ir->timer_end); |
473 | ir->active = 0; | 473 | ir->active = false; |
474 | } | 474 | } |
475 | 475 | ||
476 | ir->running = 0; | 476 | ir->running = false; |
477 | 477 | ||
478 | return; | 478 | return; |
479 | } | 479 | } |
@@ -511,7 +511,7 @@ static void saa7134_ir_close(struct rc_dev *rc) | |||
511 | 511 | ||
512 | int saa7134_input_init1(struct saa7134_dev *dev) | 512 | int saa7134_input_init1(struct saa7134_dev *dev) |
513 | { | 513 | { |
514 | struct card_ir *ir; | 514 | struct saa7134_card_ir *ir; |
515 | struct rc_dev *rc; | 515 | struct rc_dev *rc; |
516 | char *ir_codes = NULL; | 516 | char *ir_codes = NULL; |
517 | u32 mask_keycode = 0; | 517 | u32 mask_keycode = 0; |
@@ -764,7 +764,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
764 | ir->dev = rc; | 764 | ir->dev = rc; |
765 | dev->remote = ir; | 765 | dev->remote = ir; |
766 | 766 | ||
767 | ir->running = 0; | 767 | ir->running = false; |
768 | 768 | ||
769 | /* init hardware-specific stuff */ | 769 | /* init hardware-specific stuff */ |
770 | ir->mask_keycode = mask_keycode; | 770 | ir->mask_keycode = mask_keycode; |
@@ -934,7 +934,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev) | |||
934 | 934 | ||
935 | static int saa7134_raw_decode_irq(struct saa7134_dev *dev) | 935 | static int saa7134_raw_decode_irq(struct saa7134_dev *dev) |
936 | { | 936 | { |
937 | struct card_ir *ir = dev->remote; | 937 | struct saa7134_card_ir *ir = dev->remote; |
938 | unsigned long timeout; | 938 | unsigned long timeout; |
939 | int space; | 939 | int space; |
940 | 940 | ||
@@ -953,7 +953,7 @@ static int saa7134_raw_decode_irq(struct saa7134_dev *dev) | |||
953 | if (!ir->active) { | 953 | if (!ir->active) { |
954 | timeout = jiffies + jiffies_to_msecs(15); | 954 | timeout = jiffies + jiffies_to_msecs(15); |
955 | mod_timer(&ir->timer_end, timeout); | 955 | mod_timer(&ir->timer_end, timeout); |
956 | ir->active = 1; | 956 | ir->active = true; |
957 | } | 957 | } |
958 | 958 | ||
959 | return 1; | 959 | return 1; |