diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-11-17 11:53:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:50 -0500 |
commit | ca86674b8a93ea11c4bb6f4dd0113b1adf1fa841 (patch) | |
tree | 1f51d1aafa28121856b033516a00998a632e2864 /drivers/media/video | |
parent | 6bda96447cef24fbf97a798b1ea664224d5fdc25 (diff) |
[media] Rename all public generic RC functions from ir_ to rc_
Those functions are not InfraRed specific. So, rename them to properly
reflect it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-input.c | 16 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 14 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 12 |
5 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index e4df7f85f9df..773ee6a8eed4 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c | |||
@@ -70,14 +70,14 @@ static void ir_handle_key(struct bttv *btv) | |||
70 | 70 | ||
71 | if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || | 71 | if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || |
72 | (ir->mask_keyup && !(gpio & ir->mask_keyup))) { | 72 | (ir->mask_keyup && !(gpio & ir->mask_keyup))) { |
73 | ir_keydown_notimeout(ir->dev, data, 0); | 73 | rc_keydown_notimeout(ir->dev, data, 0); |
74 | } else { | 74 | } else { |
75 | /* HACK: Probably, ir->mask_keydown is missing | 75 | /* HACK: Probably, ir->mask_keydown is missing |
76 | for this board */ | 76 | for this board */ |
77 | if (btv->c.type == BTTV_BOARD_WINFAST2000) | 77 | if (btv->c.type == BTTV_BOARD_WINFAST2000) |
78 | ir_keydown_notimeout(ir->dev, data, 0); | 78 | rc_keydown_notimeout(ir->dev, data, 0); |
79 | 79 | ||
80 | ir_keyup(ir->dev); | 80 | rc_keyup(ir->dev); |
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
@@ -100,9 +100,9 @@ static void ir_enltv_handle_key(struct bttv *btv) | |||
100 | gpio, data, | 100 | gpio, data, |
101 | (gpio & ir->mask_keyup) ? " up" : "up/down"); | 101 | (gpio & ir->mask_keyup) ? " up" : "up/down"); |
102 | 102 | ||
103 | ir_keydown_notimeout(ir->dev, data, 0); | 103 | rc_keydown_notimeout(ir->dev, data, 0); |
104 | if (keyup) | 104 | if (keyup) |
105 | ir_keyup(ir->dev); | 105 | rc_keyup(ir->dev); |
106 | } else { | 106 | } else { |
107 | if ((ir->last_gpio & 1 << 31) == keyup) | 107 | if ((ir->last_gpio & 1 << 31) == keyup) |
108 | return; | 108 | return; |
@@ -112,9 +112,9 @@ static void ir_enltv_handle_key(struct bttv *btv) | |||
112 | (gpio & ir->mask_keyup) ? " up" : "down"); | 112 | (gpio & ir->mask_keyup) ? " up" : "down"); |
113 | 113 | ||
114 | if (keyup) | 114 | if (keyup) |
115 | ir_keyup(ir->dev); | 115 | rc_keyup(ir->dev); |
116 | else | 116 | else |
117 | ir_keydown_notimeout(ir->dev, data, 0); | 117 | rc_keydown_notimeout(ir->dev, data, 0); |
118 | } | 118 | } |
119 | 119 | ||
120 | ir->last_gpio = data | keyup; | 120 | ir->last_gpio = data | keyup; |
@@ -232,7 +232,7 @@ void bttv_rc5_timer_end(unsigned long data) | |||
232 | u32 instr = RC5_INSTR(rc5); | 232 | u32 instr = RC5_INSTR(rc5); |
233 | 233 | ||
234 | /* Good code */ | 234 | /* Good code */ |
235 | ir_keydown(ir->dev, instr, toggle); | 235 | rc_keydown(ir->dev, instr, toggle); |
236 | dprintk(KERN_INFO DEVNAME ":" | 236 | dprintk(KERN_INFO DEVNAME ":" |
237 | " instruction %x, toggle %x\n", | 237 | " instruction %x, toggle %x\n", |
238 | instr, toggle); | 238 | instr, toggle); |
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index a73033846fce..cfeba4c08715 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -123,26 +123,26 @@ static void cx88_ir_handle_key(struct cx88_IR *ir) | |||
123 | 123 | ||
124 | data = (data << 4) | ((gpio_key & 0xf0) >> 4); | 124 | data = (data << 4) | ((gpio_key & 0xf0) >> 4); |
125 | 125 | ||
126 | ir_keydown(ir->dev, data, 0); | 126 | rc_keydown(ir->dev, data, 0); |
127 | 127 | ||
128 | } else if (ir->mask_keydown) { | 128 | } else if (ir->mask_keydown) { |
129 | /* bit set on keydown */ | 129 | /* bit set on keydown */ |
130 | if (gpio & ir->mask_keydown) | 130 | if (gpio & ir->mask_keydown) |
131 | ir_keydown_notimeout(ir->dev, data, 0); | 131 | rc_keydown_notimeout(ir->dev, data, 0); |
132 | else | 132 | else |
133 | ir_keyup(ir->dev); | 133 | rc_keyup(ir->dev); |
134 | 134 | ||
135 | } else if (ir->mask_keyup) { | 135 | } else if (ir->mask_keyup) { |
136 | /* bit cleared on keydown */ | 136 | /* bit cleared on keydown */ |
137 | if (0 == (gpio & ir->mask_keyup)) | 137 | if (0 == (gpio & ir->mask_keyup)) |
138 | ir_keydown_notimeout(ir->dev, data, 0); | 138 | rc_keydown_notimeout(ir->dev, data, 0); |
139 | else | 139 | else |
140 | ir_keyup(ir->dev); | 140 | rc_keyup(ir->dev); |
141 | 141 | ||
142 | } else { | 142 | } else { |
143 | /* can't distinguish keydown/up :-/ */ | 143 | /* can't distinguish keydown/up :-/ */ |
144 | ir_keydown_notimeout(ir->dev, data, 0); | 144 | rc_keydown_notimeout(ir->dev, data, 0); |
145 | ir_keyup(ir->dev); | 145 | rc_keyup(ir->dev); |
146 | } | 146 | } |
147 | } | 147 | } |
148 | 148 | ||
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index b7d3999f0417..e32eb38564e6 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -297,12 +297,12 @@ static void em28xx_ir_handle_key(struct em28xx_IR *ir) | |||
297 | poll_result.toggle_bit, poll_result.read_count, | 297 | poll_result.toggle_bit, poll_result.read_count, |
298 | poll_result.rc_address, poll_result.rc_data[0]); | 298 | poll_result.rc_address, poll_result.rc_data[0]); |
299 | if (ir->full_code) | 299 | if (ir->full_code) |
300 | ir_keydown(ir->rc, | 300 | rc_keydown(ir->rc, |
301 | poll_result.rc_address << 8 | | 301 | poll_result.rc_address << 8 | |
302 | poll_result.rc_data[0], | 302 | poll_result.rc_data[0], |
303 | poll_result.toggle_bit); | 303 | poll_result.toggle_bit); |
304 | else | 304 | else |
305 | ir_keydown(ir->rc, | 305 | rc_keydown(ir->rc, |
306 | poll_result.rc_data[0], | 306 | poll_result.rc_data[0], |
307 | poll_result.toggle_bit); | 307 | poll_result.toggle_bit); |
308 | 308 | ||
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 83662a4ff73c..c77ea53f50d7 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -252,7 +252,7 @@ static void ir_key_poll(struct IR_i2c *ir) | |||
252 | } | 252 | } |
253 | 253 | ||
254 | if (rc) | 254 | if (rc) |
255 | ir_keydown(ir->rc, ir_key, 0); | 255 | rc_keydown(ir->rc, ir_key, 0); |
256 | } | 256 | } |
257 | 257 | ||
258 | static void ir_work(struct work_struct *work) | 258 | static void ir_work(struct work_struct *work) |
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 900e7985d9b3..cd39aea30389 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -89,25 +89,25 @@ static int build_key(struct saa7134_dev *dev) | |||
89 | switch (dev->board) { | 89 | switch (dev->board) { |
90 | case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: | 90 | case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: |
91 | if (data == ir->mask_keycode) | 91 | if (data == ir->mask_keycode) |
92 | ir_keyup(ir->dev); | 92 | rc_keyup(ir->dev); |
93 | else | 93 | else |
94 | ir_keydown_notimeout(ir->dev, data, 0); | 94 | rc_keydown_notimeout(ir->dev, data, 0); |
95 | return 0; | 95 | return 0; |
96 | } | 96 | } |
97 | 97 | ||
98 | if (ir->polling) { | 98 | if (ir->polling) { |
99 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || | 99 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || |
100 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { | 100 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { |
101 | ir_keydown_notimeout(ir->dev, data, 0); | 101 | rc_keydown_notimeout(ir->dev, data, 0); |
102 | } else { | 102 | } else { |
103 | ir_keyup(ir->dev); | 103 | rc_keyup(ir->dev); |
104 | } | 104 | } |
105 | } | 105 | } |
106 | else { /* IRQ driven mode - handle key press and release in one go */ | 106 | else { /* IRQ driven mode - handle key press and release in one go */ |
107 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || | 107 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || |
108 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { | 108 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { |
109 | ir_keydown_notimeout(ir->dev, data, 0); | 109 | rc_keydown_notimeout(ir->dev, data, 0); |
110 | ir_keyup(ir->dev); | 110 | rc_keyup(ir->dev); |
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||