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] [PATCH] Add MAX6650 support
Date: Sun, 11 Mar 2007 14:40:23 +0000	[thread overview]
Message-ID: <20070311154023.55b759d0.khali@linux-fr.org> (raw)
In-Reply-To: <200701171359.46334.hjk@linutronix.de>

Hi Hans,

On Mon, 5 Mar 2007 12:34:21 +0100, Hans-J?rgen Koch wrote:
> Hi Jean,
> I updated the driver once again. Basically, I made these changes:
> 
> * "mode" is now not only a module parameter, but also a sysfs file. This is 
> needed to simply switch the fan fully on/off. Depending on the other 
> settings, this might not be possible with the "speed" attribute alone.
> 
> * Setting "speed" really only sets the speed value. The original 
> implementation changed "mode" between "off" and "closed loop" when speed was 
> 0 or >0, respectively. I consider this bad style, a driver should do what 
> it's told to do and not make guesses about what the user might wish.
> 
> * Updated documentation.
> 
> I left the other values as module parameters. I think it's unlikely that 
> somebody wants to set these to different values if he has more than one chip. 
> Of course we could make all of them sysfs files, too, but I think this is not 
> necessary. Let's wait and see if somebody actually wants that.

I can't get this version to compile:

  CC [M]  drivers/hwmon/max6650.o
drivers/hwmon/max6650.c: In function `max6650_attach_adapter':
drivers/hwmon/max6650.c:350: error: incompatible type for argument 1 of `dev_driver_string'
drivers/hwmon/max6650.c:350: error: invalid type argument of `->'
drivers/hwmon/max6650.c:354: error: incompatible type for argument 1 of `dev_driver_string'
drivers/hwmon/max6650.c:354: error: invalid type argument of `->'
drivers/hwmon/max6650.c: In function `max6650_detect':
drivers/hwmon/max6650.c:374: error: incompatible type for argument 1 of `dev_driver_string'
drivers/hwmon/max6650.c:374: error: invalid type argument of `->'
drivers/hwmon/max6650.c:377: error: incompatible type for argument 1 of `dev_driver_string'
drivers/hwmon/max6650.c:377: error: invalid type argument of `->'
drivers/hwmon/max6650.c:423: error: incompatible type for argument 1 of `dev_driver_string'
drivers/hwmon/max6650.c:423: error: invalid type argument of `->'
drivers/hwmon/max6650.c:455: error: incompatible type for argument 1 of `dev_driver_string'
drivers/hwmon/max6650.c:455: error: invalid type argument of `->'
make[2]: *** [drivers/hwmon/max6650.o] Error 1
make[1]: *** [drivers/hwmon] Error 2
make: *** [drivers] Error 2

I guess you didn't try with debug enabled...

Also, Corentin Labbe made interesting comments here:
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-March/019017.html
(at the end of the post)
Please fix the problems he mentioned.

Thanks,
-- 
Jean Delvare


  parent reply	other threads:[~2007-03-11 14:40 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 12:59 [lm-sensors] [PATCH] Add MAX6650 support Hans-Jürgen Koch
2007-01-22  8:36 ` Jean Delvare
2007-02-11 15:44 ` corentin.labbe
2007-02-11 16:22 ` Hans-Jürgen Koch
2007-02-12 13:48 ` Hans-Jürgen Koch
2007-02-27 15:21 ` [lm-sensors] " Matej Kenda
2007-02-27 15:35 ` [lm-sensors] " Jean Delvare
2007-02-27 16:17 ` Hans-Jürgen Koch
2007-02-27 16:29 ` Matej Kenda
2007-02-27 17:03 ` Matej Kenda
2007-02-27 17:13 ` Hans-Jürgen Koch
2007-02-27 18:07 ` Jean Delvare
2007-02-27 19:58 ` Hans-Jürgen Koch
2007-02-28 11:44 ` Hans-Jürgen Koch
2007-02-28 15:57 ` Matej Kenda
2007-02-28 16:08 ` Hans-Jürgen Koch
2007-03-01  7:15 ` Jean Delvare
2007-03-01  7:34 ` Jean Delvare
2007-03-01 10:11 ` Hans-Jürgen Koch
2007-03-01 17:34 ` corentin.labbe
2007-03-02 11:32 ` Jean Delvare
2007-03-05 11:34 ` Hans-Jürgen Koch
2007-03-11 14:40 ` Jean Delvare [this message]
2007-03-11 15:21 ` Jean Delvare
2007-03-11 21:08 ` Hans-Jürgen Koch
2007-03-12 13:50 ` Jean Delvare
2007-03-12 14:44 ` Hans-Jürgen Koch
2007-03-12 16:49 ` Jean Delvare
2007-03-13 13:25 ` Hans-Jürgen Koch
2007-03-15 20:10 ` Jean Delvare
2007-03-16 16:44 ` Hans-Jürgen Koch
2007-03-16 19:17 ` Jean Delvare
2007-03-16 21:07 ` Hans-Jürgen Koch
2007-03-16 21:19 ` Hans-Jürgen Koch
2007-03-16 21:19 ` Thomas Gleixner
2007-03-16 21:33 ` Thomas Gleixner
2007-03-17 13:39 ` Jean Delvare
2007-03-17 14:23 ` Hans-Jürgen Koch

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=20070311154023.55b759d0.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.