Skip to content

Commit

Permalink
V4L/DVB (13833): ir-core: some functions can be static
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 68f194e commit 8719cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions drivers/media/IR/ir-keytable.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int ir_seek_table(struct ir_scancode_table *rc_tab, u32 scancode)
* 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;

Expand All @@ -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
Expand All @@ -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;
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions include/media/ir-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8719cfd

Please sign in to comment.