From: Jordan Crouse <jordan.crouse@amd.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] hwmon: Add a driver for the ADT7475 thermal sensor
Date: Mon, 15 Sep 2008 16:28:33 +0000 [thread overview]
Message-ID: <20080915162833.GF6932@cosmic.amd.com> (raw)
In-Reply-To: <20080908174853.GG24308@cosmic.amd.com>
On 14/09/08 16:49 +0200, Jean Delvare wrote:
> Hi Hans, Jordan,
>
> Le samedi 13 septembre 2008, Hans de Goede a écrit :
> > Jordan Crouse wrote:
> > > Okay - I have generated a new patch. I implemented all of your suggestions -
> > > the only one I had any concerns about was the hystersis (hystersis makes
> > > more sense to me as an offset rather then an absolute), but consistancy
> > > among hwmon drivers is rather more important.
> > >
> > > There is one possible issue in the patch - I pulled the decimal point
> > > from the pwmX_freq numbers since I wasn't sure if we wanted to express
> > > the number in milihertz. If we do, then it is an easy fix.
> > >
> > > Compile tested and run on an ADT7475 platform.
> > >
> >
> > Hi Jordan et all,
> >
> > I've given this a quick review (not as thorough as I would have liked to do but
> > I simply don't have enough time for a really thorough review) and I've found no
> > issues. So this patch is now:
> >
> > Reviewed-by: Hans de Goede <hdegoede@redhat.com>
>
> Am I the only one seeing these warnings at build time?
>
> CC [M] drivers/hwmon/adt7475.o
> drivers/hwmon/adt7475.c: In function ‘adt7475_update_device’:
> drivers/hwmon/adt7475.c:1043: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:1044: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:1045: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c: In function ‘set_temp’:
> drivers/hwmon/adt7475.c:381: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:381: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:382: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:382: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:384: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:384: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:385: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:385: warning: array subscript is above array bounds
> drivers/hwmon/adt7475.c:388: warning: array subscript is above array bounds
>
> Apparently struct adt7475_data should be changed from
> s16 temp[6][3];
> to
> s16 temp[7][3];
Ohh - geeze. I had that changed in my development tree, but not in my
pristine tree. Argh! I'll send up a new patch with that and the
other fix Hans identified.
Jordan
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2008-09-15 16:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 17:48 [lm-sensors] hwmon: Add a driver for the ADT7475 thermal sensor Jordan Crouse
2008-09-08 23:43 ` Jordan Crouse
2008-09-09 7:11 ` Jean Delvare
2008-09-13 21:30 ` Hans de Goede
2008-09-14 14:49 ` Jean Delvare
2008-09-14 17:50 ` Hans de Goede
2008-09-15 16:28 ` Jordan Crouse [this message]
2008-09-15 20:27 ` Jordan Crouse
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=20080915162833.GF6932@cosmic.amd.com \
--to=jordan.crouse@amd.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.