path: root/include/media/rc-map.h
diff options
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-17 15:28:27 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-11-17 15:29:45 -0200
commit80bab1fc7a0e0c54fe46bc7e5e4dad3ec313d43a (patch)
tree8fbc4dacbb519a5a298d7df2e2e00ce0941d4076 /include/media/rc-map.h
parente58462f45e39e01799d8b1ebab4816bd0ca68ddc (diff)
[media] rc: Properly name the rc_map struct
The struct that describes a rc mapping had an weird and long name. We should properly name it, to make easier for developers to work with it, and to avoid confusion. Basically, generated by this script: for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode_table,rc_map,g <$i >a && mv a $i; done for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_tab,rc_map,g <$i >a && mv a $i; done (and manually fixed where needed) Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/rc-map.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/rc-map.h b/include/media/rc-map.h
index c53351e15f50..a6b2738f2d60 100644
--- a/include/media/rc-map.h
+++ b/include/media/rc-map.h
@@ -30,7 +30,7 @@ struct ir_scancode {
u32 keycode;
-struct ir_scancode_table {
+struct rc_map {
struct ir_scancode *scan;
unsigned int size; /* Max number of entries */
unsigned int len; /* Used number of entries */
@@ -42,14 +42,14 @@ struct ir_scancode_table {
struct rc_keymap {
struct list_head list;
- struct ir_scancode_table map;
+ struct rc_map map;
/* Routines from rc-map.c */
int ir_register_map(struct rc_keymap *map);
void ir_unregister_map(struct rc_keymap *map);
-struct ir_scancode_table *get_rc_map(const char *name);
+struct rc_map *get_rc_map(const char *name);
void rc_map_init(void);
/* Names of the several keytables defined in-kernel */

Privacy Policy