media: lirc: merge lirc_dev_fop_ioctl and ir_lirc_ioctl
authorSean Young <sean@mess.org>
Sat, 23 Sep 2017 16:05:59 +0000 (12:05 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Dec 2017 15:35:17 +0000 (10:35 -0500)
commit95bc71e199e50487054adfd8222c5105deddbbd9
tree5a7ca06fdb4a8e29a8488bffe9e34c3431759a13
parent6b514c4a50cbbb9bd2080a95ed83d834b11f1e40
media: lirc: merge lirc_dev_fop_ioctl and ir_lirc_ioctl

Calculate lirc features when necessary, and add LIRC_{S,G}ET_REC_MODE
cases to ir_lirc_ioctl.

This makes lirc_dev_fop_ioctl() unnecessary since all cases are
already handled by ir_lirc_ioctl().

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/lirc_dev.c
include/media/lirc_dev.h