72398e4b1a
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: Dmitry Torokhov <dtor@mail.ru> |
||
---|---|---|
.. | ||
apanel.c | ||
ati_remote.c | ||
ati_remote2.c | ||
atlas_btns.c | ||
cm109.c | ||
cobalt_btns.c | ||
dm355evm_keys.c | ||
hp_sdc_rtc.c | ||
ixp4xx-beeper.c | ||
Kconfig | ||
keyspan_remote.c | ||
m68kspkr.c | ||
Makefile | ||
pcf50633-input.c | ||
pcspkr.c | ||
powermate.c | ||
rb532_button.c | ||
rotary_encoder.c | ||
sgi_btns.c | ||
sparcspkr.c | ||
twl4030-pwrbutton.c | ||
uinput.c | ||
wistron_btns.c | ||
yealink.c | ||
yealink.h |