V4L/DVB (13537): ir: Prepare the code for dynamic keycode table allocation
commit055cd55601f948675006ca90362fc2bfaae90a86
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 29 Nov 2009 11:19:59 +0000 (29 08:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:42:21 +0000 (5 18:42 -0200)
treea878c55c30b0ae30334f3523d8dd67940d32a7f3
parent0278155c84af42d78785731263b69fb49f945ea7
V4L/DVB (13537): ir: Prepare the code for dynamic keycode table allocation

Currently, the IR table is initialized by calling ir_input_init(). However,
this function doesn't return any error code, nor has a function to be called
when de-initializing the IR's.

Change the return argment to integer and make sure that each driver will
handle the error code. Also adds a function to free any resources that may
be allocating there: ir_input_free().

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/ir-functions.c
drivers/media/dvb/dm1105/dm1105.c
drivers/media/dvb/ttpci/budget-ci.c
drivers/media/video/bt8xx/bttv-input.c
drivers/media/video/cx231xx/cx231xx-input.c
drivers/media/video/cx23885/cx23885-input.c
drivers/media/video/cx88/cx88-input.c
drivers/media/video/em28xx/em28xx-input.c
drivers/media/video/ir-kbd-i2c.c
drivers/media/video/saa7134/saa7134-input.c
include/media/ir-common.h