From: drewie@freemail.hu (Andras BALI)
To: lm-sensors@vger.kernel.org
Subject: lm77 on national sc1100
Date: Thu, 19 May 2005 06:25:05 +0000 [thread overview]
Message-ID: <1089228348.4800.37.camel@null> (raw)
In-Reply-To: <1088690691.2862.25.camel@null>
On Wed, 2004-07-07 at 14:21, Jean Delvare wrote:
> > Sorry for the late answer, I didn't receive your mail, just found
> > it in the mailing list archive.
[...]
> And I thought "in the worse case he'll get it twice". Looks like I was
> wrong...
Anyway, that's my fault. I know that this free mail server sucks, but
I've been using it for quite a long time now.
> Still your comment "Register values" is now misleading, you should
> consider changing it.
Fixed.
> 1* Alignment. Kernel folks are being a bit strict when it comes to
> alignment. You are not allowed to use spaces to align your defines, nor
> your structure members. I know it's a bit restrictive, but that's the
> way it goes.
Okay, I fired up visible-whitespace-mode in emacs, hope I managed to
nuke all the spaces.
> 2* Do you have a personal need for exporting the configuration register
> to user-space?
No, actually I don't - I just thought that if all the registers are
shown, why skip this? But I admit that it might be dangerous so I
removed it.
> 3* Watch your indentation. In several places you have 8 spaces instead
> of a tab (reading the patch is an easy way to catch them). There are
> also problem on "goto exit_free" lines.
I hope that all of these are fixed, too.
> 4* According to out sysfs-interface standard, the alarms file should be
> named "alarms", not "alarm".
Fixed.
> 5* Is it just me or:
> + if (((cur & 0x00f0) != 0xf && (cur & 0x00f0) != 0x0)
> + || ((hyst & 0x00f0) != 0xf && (hyst & 0x00f0) != 0x0)
> + || ((crit & 0x00f0) != 0xf && (crit & 0x00f0) != 0x0)
> + || ((min & 0x00f0) != 0xf && (min & 0x00f0) != 0x0)
> + || ((max & 0x00f0) != 0xf && (max & 0x00f0) != 0x0))
> is broken? I guess you'd need to test != 0xf0, not 0xf.
Correct. I wonder how I missed that... :P
> 6* It's a bit weird that you use a wrapper to read from the smbus and
> still read the alarm bits directly.
Fixed.
> 7* Don't define an ID for the LM77. It's not needed, you can just omit it.
Actually I had no idea what that ID does, I just saw that the LM75
driver had one and that's why I kept it there. Removed.
> Sorry to insist on things you might consider are details. They certainly
> are, but if I don't have you correct them now, chances are that your
> patch will not be accepted by kernel folks. It's also important that all
> our drivers are as similar as possible for the ease of maintainance.
I understand this and do not underestimate the importance of these
details (and of course I like to read well-aligned code - that's one
thing I learnt from Python :-) ). Thanks again for your time and
support, I hope this time I managed to get it right (well, if not, next
time :)
Thanks,
Andras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-2.6.7-mm6-lm77.patch
Type: text/x-patch
Size: 14939 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040707/a099cdb3/linux-2.6.7-mm6-lm77.bin
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 lm77 on national sc1100 Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Andras BALI [this message]
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` 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=1089228348.4800.37.camel@null \
--to=drewie@freemail.hu \
--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.