treewide: Convert uses of struct resource to resource_size(ptr)
authorJoe Perches <joe@perches.com>
Thu, 9 Jun 2011 16:13:32 +0000 (09:13 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 10 Jun 2011 12:55:36 +0000 (14:55 +0200)
Several fixes as well where the +1 was missing.

Done via coccinelle scripts like:

@@
struct resource *ptr;
@@

- ptr->end - ptr->start + 1
+ resource_size(ptr)

and some grep and typing.

Mostly uncompiled, no cross-compilers.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found