From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] PATCH: libsensors and sensors prog support for
Date: Fri, 02 Jun 2006 13:50:32 +0000 [thread overview]
Message-ID: <20060602155032.ac9a633c.khali@linux-fr.org> (raw)
In-Reply-To: <4470B176.5000703@hhs.nl>
Hi Hans,
> Here is a new version of the Abit uGuru userspace support, I fixed
> everything from Jean's review.
>
> I did this patch against 2.10.0 not CVS, but I checked that it applies
> against CVS too.
Sorry by I'd have one more objection:
> +void print_abituguru(const sensors_chip_name *name)
> +{
> + int i;
> +
> + for (i=0;i<11;i++)
> + print_abituguru_in(name, SENSORS_ABITUGURU_IN(i),
> + SENSORS_ABITUGURU_IN_MIN(i), SENSORS_ABITUGURU_IN_MIN_ALARM(i),
> + SENSORS_ABITUGURU_IN_MAX(i), SENSORS_ABITUGURU_IN_MAX_ALARM(i));
> +
> + for (i=1;i<=7;i++)
> + print_abituguru_temp(name, SENSORS_ABITUGURU_TEMP(i),
> + SENSORS_ABITUGURU_TEMP_ALARM(i), SENSORS_ABITUGURU_TEMP_MAX(i),
> + SENSORS_ABITUGURU_TEMP_CRIT(i));
> +
> + for (i=1;i<=6;i++)
> + print_abituguru_fan(name, SENSORS_ABITUGURU_FAN(i),
> + SENSORS_ABITUGURU_FAN_ALARM(i), SENSORS_ABITUGURU_FAN_MIN(i));
> +}
This looks inefficient to me. You could pass only name and i as
parameters to the three sub-functions. What do you think?
Thanks,
--
Jean Delvare
next prev parent reply other threads:[~2006-06-02 13:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-21 18:29 [lm-sensors] PATCH: libsensors and sensors prog support for Hans de Goede
2006-05-27 21:43 ` Jean Delvare
2006-05-28 19:24 ` Hans de Goede
2006-05-29 9:30 ` Jean Delvare
2006-05-29 9:48 ` Rudolf Marek
2006-05-29 9:51 ` Hans de Goede
2006-05-29 9:59 ` Axel Thimm
2006-05-29 10:03 ` [lm-sensors] PATCH: libsensors and sensors prog support Rudolf Marek
2006-05-29 10:03 ` [lm-sensors] PATCH: libsensors and sensors prog support for Axel Thimm
2006-05-29 21:16 ` [lm-sensors] PATCH: libsensors and sensors prog support Hans de Goede
2006-06-01 14:29 ` [lm-sensors] PATCH: libsensors and sensors prog support for Hans de Goede
2006-06-02 13:50 ` Jean Delvare [this message]
2006-06-02 17:20 ` Hans de Goede
2006-06-02 18:56 ` 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=20060602155032.ac9a633c.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.