From: Ingo Oeser <ioe-lkml@rameria.de>
To: "H Hartley Sweeten" <hartleys@visionengravers.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: drivers/dma/mv_xor.c: use resource_size()
Date: Mon, 23 Nov 2009 22:34:41 +0100 [thread overview]
Message-ID: <200911232234.41411.ioe-lkml@rameria.de> (raw)
In-Reply-To: <BD79186B4FD85F4B8E60E381CAEE190901EE5BF5@mi8nycmail19.Mi8.com>
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
next prev parent reply other threads:[~2009-11-23 21:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AcpsZyWcnPwxPJjOTguzevF7zf1RpA==>
2009-11-23 18:02 ` H Hartley Sweeten
2009-11-23 21:34 ` Ingo Oeser [this message]
2009-11-23 22:04 ` H Hartley Sweeten
2009-11-24 0:30 ` Dan Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911232234.41411.ioe-lkml@rameria.de \
--to=ioe-lkml@rameria.de \
--cc=hartleys@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®