commit | a02158d62faa19d3cad8caf481253998a6c47934 | [log] [tgz] |
---|---|---|
author | Julia Lawall <Julia.Lawall@inria.fr> | Wed Jan 01 18:49:44 2020 +0100 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 02 16:31:03 2020 -0800 |
tree | 986f4040642244f961c9adbd7b99b3d58caf7504 | |
parent | 6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2 [diff] |
fsl/fman: use resource_size Use resource_size rather than a verbose computation on the end and start fields. The semantic patch that makes these changes is as follows: (http://coccinelle.lip6.fr/) <smpl> @@ struct resource ptr; @@ - (ptr.end + 1 - ptr.start) + resource_size(&ptr) @@ struct resource *ptr; @@ - (ptr->end + 1 - ptr->start) + resource_size(ptr) </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Signed-off-by: David S. Miller <davem@davemloft.net>