dmaengine: ti: k3-psil: optimize struct psil_endpoint_config for size
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 29 Jan 2021 19:31:17 +0000 (21:31 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 1 Feb 2021 05:59:11 +0000 (11:29 +0530)
commita0f2a1cb65c9d8a66853e1b67184022663950f6d
tree6aa420dd06c4df522b5a5f8a294b41bad7b0fc24
parentcd90f69f597a44b1e193267fa53798e9a5ae2794
dmaengine: ti: k3-psil: optimize struct psil_endpoint_config for size

Optimize struct psil_endpoint_config for size by
- reordering fields
- grouping bitfields
- change mapped_channel_id type to s16 (32K channel is enough)
- default_flow_id type to s16 as it's assigned to -1

before:
text            data     bss    dec         hex filename
12654100 5211472  666904 18532476 11ac87c vmlinux

after:
12654100 5208528  666904 18529532 11abcfc vmlinux

diff: 2944 bytes

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/20210129193117.28833-1-grygorii.strashko@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/dma/k3-psil.h