Re: [PATCH] ASoC: SOF: imx: use resource_size

2020-07-30 Thread Mark Brown
On Sun, 26 Jul 2020 10:25:33 +0200, Julia Lawall wrote: > Use resource_size rather than a verbose computation on > the end and start fields. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > > @@ struct resource ptr; @@ > - (ptr.end - ptr.start + 1)

[PATCH] ASoC: SOF: imx: use resource_size

2020-07-26 Thread Julia Lawall
Use resource_size rather than a verbose computation on the end and start fields. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) @@ struct resource ptr; @@ - (ptr.end - ptr.start + 1) + resource_size() Signed-off-by: Julia Lawall ---