From: Julia Lawall Date: Sun, 5 Jul 2009 06:37:50 +0000 (+0200) Subject: i2c: Use resource_size X-Git-Tag: v2.6.31-rc4~48^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=593308259bbd335eda9c5280cdd1f7883c746211;p=pandora-kernel.git 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/) // @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // Signed-off-by: Julia Lawall Signed-off-by: Ben Dooks --- Reading git-diff-tree failed