OSDN Git Service

V4L/DVB: ir-nec-decoder: Add sysfs node to enable/disable per irrcv
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Mar 2010 02:49:46 +0000 (23:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:53:01 +0000 (00:53 -0300)
commit20d5f116ec777c9c7ce5b74f0d17ee1d01a0d833
treeb25e179adb667c18e14dbd7088c3a850150f0c68
parent93c312ff21b0a53e701a45741887208297646a1a
V4L/DVB: ir-nec-decoder: Add sysfs node to enable/disable per irrcv

With the help of raw_register/raw_unregister, adds a sysfs group
associated with the decoder, inside the corresponding irrcv node.

Writing 1 to nec_decoder/enabled enables the decoder, while
writing 0 disables it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-nec-decoder.c
drivers/media/IR/ir-raw-event.c