Julia Lawall 593308259b i2c: Use resource_size
Use the function resource_size, which reduces the chance of introducing
off-by-one errors in calculating the resource size.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct resource *res;
@@

- (res->end - res->start) + 1
+ resource_size(res)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2009-07-15 00:03:56 +01:00
..
2009-05-05 08:39:24 +02:00
2009-05-05 08:39:24 +02:00
2009-05-05 08:39:24 +02:00
2009-02-24 19:19:48 +01:00
2009-06-16 22:42:16 +01:00
2009-06-16 22:42:16 +01:00
2009-06-16 22:42:16 +01:00
2009-07-15 00:03:56 +01:00
2009-06-16 22:42:16 +01:00
2009-05-05 08:39:24 +02:00
2008-01-27 18:14:45 +01:00
2009-05-05 08:39:24 +02:00
2009-06-16 22:42:16 +01:00
2009-05-05 08:39:24 +02:00
2009-06-16 22:42:16 +01:00
2009-07-15 00:03:56 +01:00
2009-06-16 22:42:16 +01:00
2009-06-16 22:42:16 +01:00
2009-06-16 22:42:16 +01:00
2009-04-07 10:23:34 +01:00
2009-04-07 10:23:34 +01:00
2009-07-15 00:03:56 +01:00
2009-07-15 00:03:56 +01:00
2009-05-05 08:39:24 +02:00
2009-05-05 08:39:24 +02:00
2009-05-05 08:39:24 +02:00
2008-04-11 12:07:05 +02:00
2009-06-16 22:42:16 +01:00
2009-01-26 21:19:52 +01:00
2009-06-25 11:22:12 -07:00