From: Julia Lawall Date: Tue, 15 Sep 2009 15:18:13 +0000 (+0200) Subject: hwmon: Use resource_size X-Git-Tag: v2.6.32-rc1~664^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86855b0c1fd75338c67cabbf85d64d033612c47b;p=pandora-kernel.git 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/) // @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // Signed-off-by: Julia Lawall Signed-off-by: Jean Delvare --- Reading git-diff-tree failed