V4L/DVB: ir-core: Add callbacks for input/evdev open/close on IR core
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Mar 2010 17:40:35 +0000 (14:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:53:03 +0000 (00:53 -0300)
commit716aab44df8bb9bdf16abea9013890274329b61f
treeb83baf34bf18d35d51318044d8ea1ae80a275304
parente202c15b4209f05fe109dd396463a524f4c2d3d8
V4L/DVB: ir-core: Add callbacks for input/evdev open/close on IR core

Especially when IR needs to do polling, it generates lots of wakeups per
second. This makes no sense, if the input event device is closed.

Adds a callback handler to the IR hardware driver, to allow registering
an open/close ops.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-keytable.c
drivers/media/video/saa7134/saa7134-core.c
drivers/media/video/saa7134/saa7134-input.c
drivers/media/video/saa7134/saa7134.h
include/media/ir-common.h
include/media/ir-core.h