From: greg@kroah.com (Greg KH)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH 02/10] w83627ehf: Add voltage inputs support
Date: Sat, 25 Mar 2006 20:48:44 +0000 [thread overview]
Message-ID: <20060325204844.GA5813@kroah.com> (raw)
In-Reply-To: <20060323162522.f46f7072.khali@linux-fr.org>
On Sat, Mar 25, 2006 at 01:04:36PM -0500, Mark M. Hoffman wrote:
> Hi all:
>
> * Jean Delvare <khali at linux-fr.org> [2006-03-23 16:25:22 +0100]:
> > From: Rudolf Marek <r.marek at sh.cvut.cz>
> > Content-Disposition: inline; filename=hwmon-w83627ehf-add-voltages.patch
> >
> > Add the voltage measuring support to W83627EHF. The code is based
> > on the patch provided by Yuan Mu from Winbond.
> >
>
> [snip]
>
> > +static inline u8 in_to_reg(u32 val, u8 nr)
> > +{
> > + return SENSORS_LIMIT(((val + (scale_in[nr] / 2)) / scale_in[nr]), 0, 255);
> > +}
>
> This reminds me... it seems that static inlines (outside of header files)
> are discouraged now - see chapter 14 of CodingStyle. It would be pointless
> to take them all out of drivers/hwmon/*.c now, but we probably shouldn't
> add any more of them.
Yeah, especially for stuff like this that it doesn't make sense to
inline as there's no speed benifit, and only code bloat :)
thanks,
greg k-h
prev parent reply other threads:[~2006-03-25 20:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-23 15:25 [lm-sensors] [PATCH 02/10] w83627ehf: Add voltage inputs support Jean Delvare
2006-03-25 18:04 ` Mark M. Hoffman
2006-03-25 20:48 ` 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=20060325204844.GA5813@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.