[media] ir-core: make struct rc_dev the primary interface
authorDavid Härdeman <david@hardeman.nu>
Fri, 29 Oct 2010 19:08:23 +0000 (16:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:37 +0000 (08:16 -0200)
commitd8b4b5822f51e2142b731b42c81e3f03eec475b2
treefce9a9b7ca5031adc95fbd6be118352fb2527da5
parent4c7b355df6e7f05304e05f6b7a286e59a5f1cc54
[media] ir-core: make struct rc_dev the primary interface

This patch merges the ir_input_dev and ir_dev_props structs into a single
struct called rc_dev. The drivers and various functions in rc-core used
by the drivers are also changed to use rc_dev as the primary interface
when dealing with rc-core.

This means that the input_dev is abstracted away from the drivers which
is necessary if we ever want to support multiple input devs per rc device.

The new API is similar to what the input subsystem uses, i.e:
rc_device_alloc()
rc_device_free()
rc_device_register()
rc_device_unregister()

[mchehab@redhat.com: Fix compilation on mceusb and cx231xx, due to merge conflicts]
Signed-off-by: David Härdeman <david@hardeman.nu>
Acked-by: Jarod Wilson <jarod@redhat.com>
Tested-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
44 files changed:
drivers/media/dvb/dm1105/dm1105.c
drivers/media/dvb/dvb-usb/af9015.c
drivers/media/dvb/dvb-usb/anysee.c
drivers/media/dvb/dvb-usb/dib0700.h
drivers/media/dvb/dvb-usb/dib0700_core.c
drivers/media/dvb/dvb-usb/dib0700_devices.c
drivers/media/dvb/dvb-usb/dvb-usb-remote.c
drivers/media/dvb/dvb-usb/dvb-usb.h
drivers/media/dvb/dvb-usb/lmedm04.c
drivers/media/dvb/mantis/mantis_common.h
drivers/media/dvb/mantis/mantis_input.c
drivers/media/dvb/siano/smscoreapi.c
drivers/media/dvb/siano/smsir.c
drivers/media/dvb/siano/smsir.h
drivers/media/dvb/ttpci/budget-ci.c
drivers/media/rc/ene_ir.c
drivers/media/rc/ene_ir.h
drivers/media/rc/imon.c
drivers/media/rc/ir-jvc-decoder.c
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/ir-nec-decoder.c
drivers/media/rc/ir-rc5-decoder.c
drivers/media/rc/ir-rc5-sz-decoder.c
drivers/media/rc/ir-rc6-decoder.c
drivers/media/rc/ir-sony-decoder.c
drivers/media/rc/mceusb.c
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h
drivers/media/rc/rc-core-priv.h
drivers/media/rc/rc-main.c
drivers/media/rc/rc-raw.c
drivers/media/rc/streamzap.c
drivers/media/video/bt8xx/bttv-input.c
drivers/media/video/cx231xx/cx231xx.h
drivers/media/video/cx23885/cx23885-input.c
drivers/media/video/cx23885/cx23885.h
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
drivers/staging/tm6000/tm6000-input.c
include/media/ir-common.h
include/media/ir-core.h
include/media/ir-kbd-i2c.h