V4L/DVB (13833): ir-core: some functions can be static
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 17 Dec 2009 12:24:37 +0000 (09:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:25 +0000 (15:10 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-keytable.c
include/media/ir-core.h

index 68aceb8d63a96878ab2857a859b49bd28ef6418d..4c11a0167fc90bd9a0adf5488655aea6d417bca5 100644 (file)
@@ -65,7 +65,7 @@ exit:
  * In order to reduce the quantity of table resizes, it has a minimum
  * table size of IR_TAB_MIN_SIZE.
  */
-int ir_roundup_tablesize(int n_elems)
+static int ir_roundup_tablesize(int n_elems)
 {
        size_t size;
 
@@ -81,7 +81,6 @@ int ir_roundup_tablesize(int n_elems)
 
        return n_elems;
 }
-EXPORT_SYMBOL_GPL(ir_roundup_tablesize);
 
 /**
  * ir_copy_table() - copies a keytable, discarding the unused entries
@@ -93,7 +92,7 @@ EXPORT_SYMBOL_GPL(ir_roundup_tablesize);
  * NOTE: It shouldn't copy the lock field
  */
 
-int ir_copy_table(struct ir_scancode_table *destin,
+static int ir_copy_table(struct ir_scancode_table *destin,
                 const struct ir_scancode_table *origin)
 {
        int i, j = 0;
@@ -113,7 +112,6 @@ int ir_copy_table(struct ir_scancode_table *destin,
 
        return 0;
 }
-EXPORT_SYMBOL_GPL(ir_copy_table);
 
 /**
  * ir_getkeycode() - get a keycode at the evdev scancode ->keycode table
index d96f25a08451d709ecb19030079ce7f5945a5a5f..61c223bc39537b3b5da43c920da746b97c7ea18f 100644 (file)
@@ -61,10 +61,6 @@ struct ir_input_dev {
 u32 ir_g_keycode_from_table(struct input_dev *input_dev,
                            u32 scancode);
 
-int ir_set_keycode_table(struct input_dev *input_dev,
-                        struct ir_scancode_table *rc_tab);
-
-int ir_roundup_tablesize(int n_elems);
 int ir_input_register(struct input_dev *dev,
                      const struct ir_scancode_table *ir_codes,
                      const struct ir_dev_props *props);