# Re: \[PATCH\] dmaengine: ti: k3-psil: optimize struct psil\_endpoint\_config for size

- From: Vinod Koul \<vkoul@kernel.org\>
- Date: 2021-02-01 06:04:09 
- List: dmaengine
- Page: https://ratatoskr.run/dmaengine/2021/02/6253203
- Thread: https://ratatoskr.run/dmaengine/2021/01/6252004/t.md

```text
On 29-01-21, 21:31, Grygorii Strashko wrote:
> 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

Applied, thanks

-- 
~Vinod
```
