All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Henrik Rydberg <rydberg@euromail.se>
Cc: Jean Delvare <khali@linux-fr.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH 3/8] hwmon: applesmc: Dynamic creation of
Date: Fri, 05 Nov 2010 02:23:48 +0000	[thread overview]
Message-ID: <20101105022348.GA28308@ericsson.com> (raw)
In-Reply-To: <1288511434-5662-4-git-send-email-rydberg@euromail.se>

On Sun, Oct 31, 2010 at 03:50:29AM -0400, Henrik Rydberg wrote:
> The current driver creates temperature files based on a list
> of temperature keys given per device. Apart from slow adaption
> to new machine models, the number of sensors also depends on
> the number of processors. This patch looks up the temperature
> keys dynamically, thereby supporting all models.
> 
> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>

Hi Henrik,

Nice cleanup. Just a coule of minor comments.

> ---
>  drivers/hwmon/applesmc.c |  498 +++++++++++-----------------------------------
>  1 files changed, 113 insertions(+), 385 deletions(-)
> 
> diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
> index 7f030f0..0207618 100644
> --- a/drivers/hwmon/applesmc.c
> +++ b/drivers/hwmon/applesmc.c
[ ...]
> 
> -       pr_info("key=%d\n", s->key_count);
> +       pr_info("key=%d temp=%d\n", s->key_count, s->temp_count);

Is this useful or just noisy ? How about pr_debug instead ?

> 
>         return 0;
>  }

[ ... ] 

> @@ -1429,13 +1122,66 @@ static int applesmc_dmi_match(const struct dmi_system_id *id)
>         pr_info(" - Model %s light sensors and backlight\n",
>                 applesmc_light ? "with" : "without");
> 
> -       applesmc_temperature_set =  dmi_data->temperature_set;
> -       while (temperature_sensors_sets[applesmc_temperature_set][i] != NULL)
> -               i++;
> -       pr_info(" - Model with %d temperature sensors\n", i);
> +

This results in another double empty line.

Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Henrik Rydberg <rydberg@euromail.se>
Cc: Jean Delvare <khali@linux-fr.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH 3/8] hwmon: applesmc: Dynamic creation of temperature files
Date: Thu, 4 Nov 2010 19:23:48 -0700	[thread overview]
Message-ID: <20101105022348.GA28308@ericsson.com> (raw)
In-Reply-To: <1288511434-5662-4-git-send-email-rydberg@euromail.se>

On Sun, Oct 31, 2010 at 03:50:29AM -0400, Henrik Rydberg wrote:
> The current driver creates temperature files based on a list
> of temperature keys given per device. Apart from slow adaption
> to new machine models, the number of sensors also depends on
> the number of processors. This patch looks up the temperature
> keys dynamically, thereby supporting all models.
> 
> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>

Hi Henrik,

Nice cleanup. Just a coule of minor comments.

> ---
>  drivers/hwmon/applesmc.c |  498 +++++++++++-----------------------------------
>  1 files changed, 113 insertions(+), 385 deletions(-)
> 
> diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
> index 7f030f0..0207618 100644
> --- a/drivers/hwmon/applesmc.c
> +++ b/drivers/hwmon/applesmc.c
[ ...]
> 
> -       pr_info("key=%d\n", s->key_count);
> +       pr_info("key=%d temp=%d\n", s->key_count, s->temp_count);

Is this useful or just noisy ? How about pr_debug instead ?

> 
>         return 0;
>  }

[ ... ] 

> @@ -1429,13 +1122,66 @@ static int applesmc_dmi_match(const struct dmi_system_id *id)
>         pr_info(" - Model %s light sensors and backlight\n",
>                 applesmc_light ? "with" : "without");
> 
> -       applesmc_temperature_set =  dmi_data->temperature_set;
> -       while (temperature_sensors_sets[applesmc_temperature_set][i] != NULL)
> -               i++;
> -       pr_info(" - Model with %d temperature sensors\n", i);
> +

This results in another double empty line.

Guenter

  reply	other threads:[~2010-11-05  2:23 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-31  7:50 [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Henrik Rydberg
2010-10-31  7:50 ` [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Henrik Rydberg
2010-10-31  7:50 ` [lm-sensors] [PATCH 1/8] hwmon: applesmc: Relax the severity of Henrik Rydberg
2010-10-31  7:50   ` [PATCH 1/8] hwmon: applesmc: Relax the severity of device init failure Henrik Rydberg
2010-11-02 16:03   ` [lm-sensors] [PATCH 1/8] hwmon: applesmc: Relax the severity of Guenter Roeck
2010-11-02 16:03     ` [lm-sensors] [PATCH 1/8] hwmon: applesmc: Relax the severity of device init failure Guenter Roeck
2010-11-03 14:45     ` [lm-sensors] [PATCH 1/8] hwmon: applesmc: Relax the severity of Henrik Rydberg
2010-11-03 14:45       ` [lm-sensors] [PATCH 1/8] hwmon: applesmc: Relax the severity of device init failure Henrik Rydberg
2010-10-31  7:50 ` [lm-sensors] [PATCH 2/8] hwmon: applesmc: Introduce a register Henrik Rydberg
2010-10-31  7:50   ` [PATCH 2/8] hwmon: applesmc: Introduce a register lookup table Henrik Rydberg
2010-11-04  4:21   ` [lm-sensors] [PATCH 2/8] hwmon: applesmc: Introduce a register Guenter Roeck
2010-11-04  4:21     ` [lm-sensors] [PATCH 2/8] hwmon: applesmc: Introduce a register lookup table Guenter Roeck
2010-11-04  8:20     ` [lm-sensors] [PATCH 2/8] hwmon: applesmc: Introduce a register Henrik Rydberg
2010-11-04  8:20       ` [lm-sensors] [PATCH 2/8] hwmon: applesmc: Introduce a register lookup table Henrik Rydberg
2010-10-31  7:50 ` [lm-sensors] [PATCH 3/8] hwmon: applesmc: Dynamic creation of Henrik Rydberg
2010-10-31  7:50   ` [PATCH 3/8] hwmon: applesmc: Dynamic creation of temperature files Henrik Rydberg
2010-11-05  2:23   ` Guenter Roeck [this message]
2010-11-05  2:23     ` [lm-sensors] " Guenter Roeck
2010-10-31  7:50 ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new temperature Henrik Rydberg
2010-10-31  7:50   ` [PATCH 4/8] hwmon: applesmc: Handle new temperature format Henrik Rydberg
2010-11-05  2:32   ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new Guenter Roeck
2010-11-05  2:32     ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new temperature format Guenter Roeck
2010-11-05  2:35   ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new Guenter Roeck
2010-11-05  2:35     ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new temperature format Guenter Roeck
2010-11-05  8:34     ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new Henrik Rydberg
2010-11-05  8:34       ` [lm-sensors] [PATCH 4/8] hwmon: applesmc: Handle new temperature format Henrik Rydberg
2010-10-31  7:50 ` [lm-sensors] [PATCH 5/8] hwmon: applesmc: Extract all features Henrik Rydberg
2010-10-31  7:50   ` [PATCH 5/8] hwmon: applesmc: Extract all features generically Henrik Rydberg
2010-11-05  2:50   ` [lm-sensors] [PATCH 5/8] hwmon: applesmc: Extract all features Guenter Roeck
2010-11-05  2:50     ` [lm-sensors] [PATCH 5/8] hwmon: applesmc: Extract all features generically Guenter Roeck
2010-11-05  8:52     ` [lm-sensors] [PATCH 5/8] hwmon: applesmc: Extract all features Henrik Rydberg
2010-11-05  8:52       ` [lm-sensors] [PATCH 5/8] hwmon: applesmc: Extract all features generically Henrik Rydberg
2010-10-31  7:50 ` [lm-sensors] [PATCH 6/8] hwmon: applesmc: Dynamic creation of fan Henrik Rydberg
2010-10-31  7:50   ` [PATCH 6/8] hwmon: applesmc: Dynamic creation of fan files Henrik Rydberg
2010-11-05  2:59   ` [lm-sensors] [PATCH 6/8] hwmon: applesmc: Dynamic creation of Guenter Roeck
2010-11-05  2:59     ` [lm-sensors] [PATCH 6/8] hwmon: applesmc: Dynamic creation of fan files Guenter Roeck
2010-11-05  8:56     ` [lm-sensors] [PATCH 6/8] hwmon: applesmc: Dynamic creation of Henrik Rydberg
2010-11-05  8:56       ` [lm-sensors] [PATCH 6/8] hwmon: applesmc: Dynamic creation of fan files Henrik Rydberg
2010-10-31  7:50 ` [lm-sensors] [PATCH 7/8] hwmon: applesmc: Simplify feature sysfs Henrik Rydberg
2010-10-31  7:50   ` [PATCH 7/8] hwmon: applesmc: Simplify feature sysfs handling Henrik Rydberg
2010-11-05  3:07   ` [lm-sensors] [PATCH 7/8] hwmon: applesmc: Simplify feature Guenter Roeck
2010-11-05  3:07     ` [lm-sensors] [PATCH 7/8] hwmon: applesmc: Simplify feature sysfs handling Guenter Roeck
2010-10-31  7:50 ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright Henrik Rydberg
2010-10-31  7:50   ` [PATCH 8/8] hwmon: applesmc: Update copyright information Henrik Rydberg
2010-11-05  3:09   ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright Guenter Roeck
2010-11-05  3:09     ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright information Guenter Roeck
2010-11-05  9:00     ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright Henrik Rydberg
2010-11-05  9:00       ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright information Henrik Rydberg
2010-11-05 11:45       ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright Guenter Roeck
2010-11-05 11:45         ` [lm-sensors] [PATCH 8/8] hwmon: applesmc: Update copyright information Guenter Roeck
2010-10-31  8:31 ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Joe Perches
2010-10-31  8:31   ` [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Joe Perches
2010-10-31  8:44   ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Henrik Rydberg
2010-10-31  8:44     ` [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Henrik Rydberg
2010-10-31  8:55     ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Joe Perches
2010-10-31  8:55       ` [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Joe Perches
2010-10-31 10:05     ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Jean Delvare
2010-10-31 10:05       ` [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Jean Delvare
2010-11-03 13:48 ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Guenter Roeck
2010-11-03 13:48   ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Guenter Roeck
2010-11-03 14:43   ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration Henrik Rydberg
2010-11-03 14:43     ` [lm-sensors] [PATCH 0/8] hwmon: applesmc: Dynamic configuration rewrite Henrik Rydberg

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=20101105022348.GA28308@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=rydberg@euromail.se \
    /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.