All of lore.kernel.org
 help / color / mirror / Atom feed
From: mhoffman@lightlink.com (Mark M. Hoffman)
To: lm-sensors@vger.kernel.org
Subject: [PATCH 2.6] ADM1030 and Co sensors chips support for 2.6.7-mm1
Date: Thu, 19 May 2005 06:25:03 +0000	[thread overview]
Message-ID: <20040630020455.GG3064@jupiter.solarsys.private> (raw)
In-Reply-To: <20040622195209.77f852a6.alex@alexdalton.org>

Hi Alexandre:

Just a couple nits to pick...

* Alexandre d'Alton <alex@alexdalton.org> [2004-06-22 19:52:09 +0200]:

(liberal snips)

> +#define AUTO_TEMP_MAX_FROM_REG(reg)		\
> +	AUTO_TEMP_RANGE_FROM_REG(reg) +		\
> +	AUTO_TEMP_MIN_FROM_REG(reg)

Should add outer parens there.

> +#define fan_auto_channel_offset(offset)						\
> +static ssize_t show_fan_auto_channel_##offset (struct device *dev, char *buf)	\
> +{										\
> +	return show_fan_auto_channel(dev, buf, 0x##offset - 1);			\
> +}										\
> +static ssize_t set_fan_auto_channel_##offset (struct device *dev,		\
> +	const char *buf, size_t count)						\
> +{										\
> +	return set_fan_auto_channel(dev, buf, count, 0x##offset - 1);		\
> +}										\
> +static DEVICE_ATTR(auto_fan##offset##_channel, S_IRUGO | S_IWUSR,		\
> +		   show_fan_auto_channel_##offset,				\
> +		   set_fan_auto_channel_##offset)

A recent driver core patch *necessitates* the trailing semicolon for DEVICE_ATTR().

> +static DEVICE_ATTR(auto_temp##offset##_off, S_IRUGO,				\
> +		   show_auto_temp_##offset##_off, NULL);			\
> +static DEVICE_ATTR(auto_temp##offset##_min, S_IRUGO | S_IWUSR,			\
> +		   show_auto_temp_##offset##_min, set_auto_temp_##offset##_min);\
> +static DEVICE_ATTR(auto_temp##offset##_max, S_IRUGO | S_IWUSR,			\
> +		   show_auto_temp_##offset##_max, set_auto_temp_##offset##_max)

Likewise for the last of these three.

> +static DEVICE_ATTR(fan##offset##_pwm, S_IRUGO | S_IWUSR,		\
> +		   show_pwm_##offset, set_pwm_##offset)

And here... eh, there are more but you get the point.

Regards,

-- 
Mark M. Hoffman
mhoffman@lightlink.com

  parent reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 [PATCH 2.6] ADM1030 and Co sensors chips support for 2.6.7-mm1 Alexandre d'Alton
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Alexandre d'Alton
2005-05-19  6:25 ` Mark M. Hoffman [this message]
2005-05-19  6:25 ` Alexandre d'Alton
2005-05-19  6:25 ` Mark M. Hoffman
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH

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=20040630020455.GG3064@jupiter.solarsys.private \
    --to=mhoffman@lightlink.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.