[media] media: rc: reduce size of struct ir_raw_event
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 17 Mar 2016 19:39:13 +0000 (16:39 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 7 May 2016 13:34:17 +0000 (10:34 -0300)
commit5f61ff86116cf637ae926f44c1857716ec89e9fb
treefc8c46bb2e65c6d998e876dbdeccd55db132a324
parent18693843870bfc3ebd682874c1171398f4c8a002
[media] media: rc: reduce size of struct ir_raw_event

struct ir_raw_event currently has a size of 12 bytes on most (all?)
architectures. This can be reduced to 8 bytes whilst maintaining
full backwards compatibility.
This saves 2KB in size of struct ir_raw_event_ctrl (as element
kfifo is reduced by 512 * 4 bytes) and it allows to copy the
full struct ir_raw_event with a single 64 bit operation.

Successfully tested with the Nuvoton driver and successfully
compile-tested with the ene_ir driver (as it uses the carrier /
duty_cycle elements).

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/rc-core.h
This page took 0.024744 seconds and 5 git commands to generate.