Re: drivers/dma/mv_xor.c: use resource_size()
From: Ingo Oeser
Date: Mon Nov 23 2009 - 16:40:40 EST
Hi,
On Monday 23 November 2009, H Hartley Sweeten wrote:
> Use resource_size() for devm_ioremap.
This pattern foo = do_with_res(res->start, resource_size(res)) seem to happen quite often.
What about creating inline functions like
foo = do_with_full_res(res)
?
That would save some code and make it obviously correct.
Best Regards
Ingo Oeser
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/