OSDN Git Service

[media] media: lirc_dev: introduce lirc_allocate_device and lirc_free_device
authorDavid Härdeman <david@hardeman.nu>
Sun, 25 Jun 2017 12:32:15 +0000 (09:32 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 17:19:17 +0000 (14:19 -0300)
commit6ecccc379b7334c02f90a401dafea6fce5c91310
tree9aa09293565f80cbb216600b91b47ece50b1dbfc
parent5ddc9c098dc3f91243840cec12a2170e9ab9f33a
[media] media: lirc_dev: introduce lirc_allocate_device and lirc_free_device

Introduce two new functions so that the API for lirc_dev matches that
of the rc-core and input subsystems.

This means that lirc_dev structs are managed using the usual four
functions:

lirc_allocate_device
lirc_free_device
lirc_register_device
lirc_unregister_device

The functions are pretty simplistic at this point, later patches will put
more flesh on the bones of both.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/lirc_dev.c
include/media/lirc_dev.h