Julia Lawall 86855b0c1f hwmon: 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: Jean Delvare <khali@linux-fr.org>
2009-09-15 17:18:13 +02:00
..
2008-08-15 08:35:43 -07:00
2008-08-15 08:35:44 -07:00
2009-03-30 15:22:04 +02:00
2009-06-16 19:47:57 -07:00
2009-06-16 19:47:57 -07:00
2009-06-16 19:47:57 -07:00
2009-06-16 19:47:57 -07:00
2009-01-07 16:37:34 +01:00
2009-04-01 08:59:21 -07:00
2009-01-07 16:37:32 +01:00
2009-07-11 13:42:37 +02:00
2009-09-15 17:18:13 +02:00
2009-03-30 21:46:43 +02:00
2009-09-15 17:18:13 +02:00