All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] revisiting __SENSOR_DEVICE_ATTR() and array
Date: Sun, 18 Dec 2005 17:33:15 +0000	[thread overview]
Message-ID: <20051218183315.365af55b.khali@linux-fr.org> (raw)
In-Reply-To: <439A7911.5020904@gmail.com>

Hi Jim,

> Start converting adm1026 to use arrays of sensor device attributes.
> This is compile-tested only, and needs someone with hardware to
> clean it up, fix the overlooked bits, and test it.
> 
> Signed-off-by:  Jim Cromie <jim.cromie at gmail.com>

The compiler complains about unused functions, and is right:

> +static struct sensor_device_attribute sda_in_min[] = {
> +	SENSOR_ATTR(in0_min, S_IRUGO, show_in, set_in_min, 0),

show_in should be show_in_min...

> +static struct sensor_device_attribute sda_in_max[] = {
> +	SENSOR_ATTR(in0_max, S_IRUGO, show_in, set_in_max, 0),

... and show_in_max.

> +static struct sensor_device_attribute sda_fan_min[] = {
> +	SENSOR_ATTR(fan1_min, S_IRUGO, show_fan, set_fan_min, 0),

show_fan should be show_fan_min...

> +static struct sensor_device_attribute sda_fan_div[] = {
> +	SENSOR_ATTR(fan1_div, S_IRUGO, show_fan, set_fan_div, 0),

... and show_fan_div.

I also had to edit the patch in order to apply it, due to recent
patches to the adm1026 driver.

Can you respin it based on 2.6.15-rc5-mm1 or later, fixing the bugs
above?

I'll need someone to test this patch on a real ADM1026 device before I
can accept it.

Thanks,
-- 
Jean Delvare


  parent reply	other threads:[~2005-12-18 17:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-10  6:43 [lm-sensors] revisiting __SENSOR_DEVICE_ATTR() and array Jim Cromie
2005-12-10 10:21 ` Jean Delvare
2005-12-14  4:44 ` Jim Cromie
2005-12-16  4:39 ` Mark M. Hoffman
2005-12-16 17:28 ` Jim Cromie
2005-12-18 16:43 ` Jean Delvare
2005-12-18 17:33 ` Jean Delvare [this message]
2005-12-19 11:52 ` Jim Cromie
2005-12-19 16:52 ` Jim Cromie
2005-12-24 15:46 ` Jean Delvare
2005-12-24 16:04 ` Jean Delvare

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=20051218183315.365af55b.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --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.