]> git.karo-electronics.de Git - linux-beck.git/commit
V4L/DVB: ir: use a real device instead of a virtual class
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 11 Mar 2010 15:41:56 +0000 (12:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:47:03 +0000 (00:47 -0300)
commit945cdfa2c99e2a3f5ead11519ba11ed1df2dd5c1
tree0a0a62bca91befd1e607ca6b138df2fd2083fea8
parent8b0d2a052733d0a0e8ed59aeb8c7e6c90fdb793e
V4L/DVB: ir: use a real device instead of a virtual class

Change the ir-sysfs approach to create irrcv0 as a device, instead of
using class_dev. Also, change the way input is registered, in order
to make its parent to be the irrcv device.

Due to this change, now the event device is created under
/sys/class/ir/irrcv class:

/sys/class/irrcv/irrcv0/
|-- current_protocol
|-- device -> ../../../1-3
|-- input9
|   |-- capabilities
|   |   |-- abs
...

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