media: ite-cir: move runtime information into driver data
authorSean Young <sean@mess.org>
Sun, 21 Feb 2021 20:16:45 +0000 (21:16 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:41 +0000 (11:59 +0100)
commit0b16cd575d6d8be4327918576ffa02bbdfc523e6
treefd1dfa26743932250f8220b9619fc0173ecf4b9e
parentcc83573c46f6d12eb83cd3965a76d0890b879f17
media: ite-cir: move runtime information into driver data

The carrier, duty cycle etc are not device dependent, and they can be
changed at runtime. By moving them into the allocated struct, we can make
the device specific structures smaller, and we no longer need to copy
the struct.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/ite-cir.c
drivers/media/rc/ite-cir.h