V4L/DVB (13617): ir: move input_register_device() to happen inside ir_input_register()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 11 Dec 2009 14:20:59 +0000 (11:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 16 Dec 2009 02:18:45 +0000 (00:18 -0200)
commit579e7d60ba0035228aadad69eb2ffeb138c51311
tree0872698fe02dba92cead8e9d9a7ca7e7f38e1291
parent38ef6aa884e3fd389f7d444b8dd36c16832e36b4
V4L/DVB (13617): ir: move input_register_device() to happen inside ir_input_register()

We'll need to register a sysfs class for the IR devices. As such, the better
is to have the input_register_device()/input_unregister_device() inside
the ir register/unregister functions.

Also, solves a naming problem with V4L ir_input_init() function, that were,
in fact, registering a device.

While here, do a few cleanups at budget-ci IR logic.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 files changed:
drivers/media/IR/ir-functions.c
drivers/media/IR/ir-keytable.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