From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, linuxppc64-dev@ozlabs.org
Subject: Re: [PATCH] ppc64: Thermal control for SMU based machines
Date: Wed, 12 Oct 2005 10:24:51 +1000 [thread overview]
Message-ID: <1129076691.17365.250.camel@gaston> (raw)
In-Reply-To: <20051011171315.2fe087e7.akpm@osdl.org>
On Tue, 2005-10-11 at 17:13 -0700, Andrew Morton wrote:
> Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> >
> > +#define BUILD_SHOW_FUNC_FIX(name, data) \
> > +static ssize_t show_##name(struct device *dev, \
> > + struct device_attribute *attr, \
> > + char *buf) \
> > +{ \
> > + ssize_t r; \
> > + s32 val = 0; \
> > + data->ops->get_value(data, &val); \
> > + r = sprintf(buf, "%d.%03d", FIX32TOPRINT(val)); \
> > + return r; \
> > +} \
> > +static DEVICE_ATTR(name,S_IRUGO,show_##name, NULL);
> > +
> > +
> > +#define BUILD_SHOW_FUNC_INT(name, data) \
> > +static ssize_t show_##name(struct device *dev, \
> > + struct device_attribute *attr, \
> > + char *buf) \
> > +{ \
> > + s32 val = 0; \
> > + data->ops->get_value(data, &val); \
> > + return sprintf(buf, "%d", val); \
> > +} \
>
> Someone needs a tab key ;)
Ahh no, the problem here is that stupid emacs is very bad with tab
and multi-line macros and just turns the whole thing into shit, so
I used spaces. Sorry, I'm not an emacs guru and don't know how to
work around that ...
Ben.
next prev parent reply other threads:[~2005-10-12 0:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 5:36 [PATCH] ppc64: Thermal control for SMU based machines Benjamin Herrenschmidt
2005-10-04 16:44 ` Nish Aravamudan
2005-10-04 21:59 ` Benjamin Herrenschmidt
2005-10-12 0:03 ` Andrew Morton
2005-10-12 0:20 ` Benjamin Herrenschmidt
2005-10-12 0:10 ` Andrew Morton
2005-10-12 0:23 ` Benjamin Herrenschmidt
2005-10-12 7:34 ` Eric Piel
2005-10-12 7:40 ` Benjamin Herrenschmidt
2005-10-12 0:13 ` Andrew Morton
2005-10-12 0:23 ` Benjamin Herrenschmidt
2005-10-12 0:24 ` Benjamin Herrenschmidt [this message]
2005-10-18 20:57 ` linas
2005-10-18 21:23 ` Andrew Morton
[not found] <200511080502.jA852dWI011502@hera.kernel.org>
2005-11-13 17:47 ` Geert Uytterhoeven
2005-11-13 21:00 ` Benjamin Herrenschmidt
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=1129076691.17365.250.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc64-dev@ozlabs.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