[media] media: lirc_dev: merge struct irctl into struct lirc_dev
authorDavid Härdeman <david@hardeman.nu>
Sun, 25 Jun 2017 12:32:36 +0000 (09:32 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 17:53:07 +0000 (14:53 -0300)
commitb15e39379fe8700fe0ec849a5c5ee2b44cd16381
treeef7d8a0a058a048db765dd87af0bad28727dd39a
parent13f96555d6faa6dc57fb5faedf728447a3188230
[media] media: lirc_dev: merge struct irctl into struct lirc_dev

The use of two separate structs (lirc_dev aka lirc_driver and irctl) makes
it much harder to follow the proper lifetime of the various structs and
necessitates hacks such as keeping a copy of struct lirc_dev inside
struct irctl.

Merging the two structs means that lirc_dev can properly manage the
lifetime of the resulting struct and simplifies the code at the same time.

[mchehab@s-opensource.com: fix merge conflict]
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/lirc_dev.c
drivers/staging/media/lirc/lirc_zilog.c
include/media/lirc_dev.h