From: greg@kroah.com (Greg KH)
To: lm-sensors@vger.kernel.org
Subject: [PATCH 2.6] I2C: Fix macro calls in chip drivers
Date: Thu, 19 May 2005 06:25:13 +0000 [thread overview]
Message-ID: <20040908193817.GF6976@kroah.com> (raw)
In-Reply-To: <20040825224408.67c8d4bd.khali@linux-fr.org>
On Wed, Aug 25, 2004 at 10:44:08PM +0200, Jean Delvare wrote:
> Hi Greg,
>
> I noticed that some I2C chip drivers (all written or reviewed by me, I
> feel ashamed to say) misuse macros. Passing function calls
> (simple_strtol in this case) to macros evaluating their argument up to 4
> times is certainly not wise and obviously performs poorly. It is not
> critical in that it happens only when writing to the chips (setting
> limits), which doesn't happen that often. However I'd say it's worth
> fixing.
>
> Thus, the patch below fixes that, by moving the function calls outside
> of the macro calls.
Applied, thanks.
greg k-h
prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 [PATCH 2.6] I2C: Fix macro calls in chip drivers Jean Delvare
2005-05-19 6:25 ` Greg KH [this message]
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=20040908193817.GF6976@kroah.com \
--to=greg@kroah.com \
--cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.