NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/40420
The following reply was made to PR kern/40420; it has been noted by GNATS.
From: Paul Goyette <paul%whooppee.com@localhost>
To: Takahiro HAYASHI <hash%abox3.so-net.ne.jp@localhost>
Cc: tkhr.hash%gmail.com@localhost, John Nemeth <jnemeth%netbsd.org@localhost>,
gnats-bugs%netbsd.org@localhost
Subject: Re: kern/40420
Date: Sun, 21 Feb 2010 10:24:03 -0800 (PST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-2127810690-1266776621=:6053
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed
Content-ID: <Pine.NEB.4.64.1002211023491.6053%quicky.whooppee.com@localhost>
On Mon, 22 Feb 2010, Takahiro HAYASHI wrote:
> Sorry for late response.
No problem! Thanks for the reply.
> I'm afraid that the name "smsc" will conflict with sys/dev/isa/smsc.c.
> That's why I name this driver "smsctemp".
> As you say, name of "smsctemp" may not be suitable, i think.
> How about "smschwmon"?
Yes, I found that the hard way!
I have taken the liberty of renaming it to smcsmon(4). I've made a few
other minor changes in the sources (most notably, I replaced the calls
to iic_exec() with calls to iic_smbus_{read,write}_byte()) and I've
written a basic smcsmon(4) man page. The rest of the code looked pretty
clean to me. (I personally don't like using the
{ member1 = value1, member2 = value2, ... }
method of initializing the array of sensor descriptors, but it is done
that way in other drivers, so I left it alone.)
I have attached the revised files here - please let me know if this
meets with your approval, and I will commit.
-------------------------------------------------------------------------
| Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
--0-2127810690-1266776621=:6053
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=smscmonvar.h
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.1002211023410.6053%quicky.whooppee.com@localhost>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=smscmonvar.h
LyogJE5ldEJTRCQgKi8NCg0KLyoNCiAqIENvcHlyaWdodCAoYykgMjAwOSBU
YWthaGlybyBIYXlhc2hpDQogKiBBbGwgcmlnaHRzIHJlc2VydmVkLg0KICoN
CiAqIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5h
cnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dA0KICogbW9kaWZpY2F0aW9uLCBh
cmUgcGVybWl0dGVkIHByb3ZpZGVkIHRoYXQgdGhlIGZvbGxvd2luZyBjb25k
aXRpb25zDQogKiBhcmUgbWV0Og0KICogMS4gUmVkaXN0cmlidXRpb25zIG9m
IHNvdXJjZSBjb2RlIG11c3QgcmV0YWluIHRoZSBhYm92ZSBjb3B5cmlnaHQN
CiAqICAgIG5vdGljZSwgdGhpcyBsaXN0IG9mIGNvbmRpdGlvbnMgYW5kIHRo
ZSBmb2xsb3dpbmcgZGlzY2xhaW1lci4NCiAqIDIuIFJlZGlzdHJpYnV0aW9u
cyBpbiBiaW5hcnkgZm9ybSBtdXN0IHJlcHJvZHVjZSB0aGUgYWJvdmUgY29w
eXJpZ2h0DQogKiAgICBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25z
IGFuZCB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIgaW4gdGhlDQogKiAgICBk
b2N1bWVudGF0aW9uIGFuZC9vciBvdGhlciBtYXRlcmlhbHMgcHJvdmlkZWQg
d2l0aCB0aGUgZGlzdHJpYnV0aW9uLg0KICoNCiAqIFRISVMgU09GVFdBUkUg
SVMgUFJPVklERUQgQlkgVEhFIE5FVEJTRCBGT1VOREFUSU9OLCBJTkMuIEFO
RCBDT05UUklCVVRPUlMNCiAqIGBgQVMgSVMnJyBBTkQgQU5ZIEVYUFJFU1Mg
T1IgSU1QTElFRCBXQ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Lw0KCWludAkJdm1heDsJCS8qIHZhbHVlIGluIHVW
IGZvciAweGZmICovDQp9Ow0KDQojZW5kaWYgLyogX0RFVl9JMkNfU01TQ1ZB
Ul9IXyAqLw0K
--0-2127810690-1266776621=:6053
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=smscmon.c
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.1002211023411.6053%quicky.whooppee.com@localhost>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=smscmon.c
LyogJE5ldEJTRCQgKi8NCg0KLyoNCiAqIENvcHlyaWdodCAoYykgMjAwOSBU
YWthaGlybyBIYXlhc2hpDQogKiBBbGwgcmlnaHRzIHJlc2VydmVkLg0KICoN
CiAqIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5h
cnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dA0KICogbW9kaWZpY2F0aW9uLCBh
cmUgcGVybWl0dGVkIHByb3ZpZGVkIHRoYXQgdGhlIGZvbGxvd2luZyBjb25k
aXRpb25zDQogKiBhcmUgbWV0Og0KICogMS4gUmVkaXN0cmlidXRpb25zIG9m
IHNvdXJjZSBjb2RlIG11c3QgcmV0YWluIHRoZSBhYm92ZSBjb3B5cmlnaHQN
CiAqICAgIG5vdGljZSwgdGhpcyBsaXN0IG9mIGNvbmRpdGlvbnMgYW5kIHRo
ZSBmb2xsb3dpbmcgZGlzY2xhaW1lci4NCiAqIDIuIFJlZGlzdHJpYnV0aW9u
cyBpbiBiaW5hcnkgZm9ybSBtdXN0IHJlcHJvZHVjZSB0aGUgYWJvdmUgY29w
eXJpZ2h0DQogKiAgICBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25z
IGFuZCB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIgaW4gdGhlDQogKiAgICBk
b2N1bWVudGF0aW9uIGFuZC9vciBvdGhlciBtYXRlcmlhbHMgcHJvdmlkZWQg
d2l0aC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2lkDQpz
bXNjbW9uX3JlZnJlc2goc3RydWN0IHN5c21vbl9lbnZzeXMgKnNtZSwgZW52
c3lzX2RhdGFfdCAqZWRhdGEpDQp7DQoJc3RydWN0IHNtc2Ntb25fc2MgKnNj
ID0gc21lLT5zbWVfY29va2llOw0KDQoJc2MtPnNtc2Ntb25fc2Vuc29yc1tl
ZGF0YS0+c2Vuc29yXS5yZWZyZXNoKHNjLCBlZGF0YSk7DQp9DQo=
--0-2127810690-1266776621=:6053
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=smscmon.4
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.1002211023412.6053%quicky.whooppee.com@localhost>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=smscmon.4
LlwiCSROZXRCU0Q6IHNtc2MuNCx2IDEuNSAyMDA5LzA1LzEzIDEyOjQyOjAy
IHdpeiBFeHAgJA0KLlwiDQouXCIgQ29weXJpZ2h0IChjKSAyMDA5IFRha2Fo
aXJvIEhheWFzaGkNCi5cIiBBbGwgcmlnaHRzIHJlc2VydmVkLg0KLlwiDQou
XCIgUmVkaXN0cmlidXRpb24gYW5kIHVzZSBpbiBzb3VyY2UgYW5kIGJpbmFy
eSBmb3Jtcywgd2l0aCBvciB3aXRob3V0DQouXCIgbW9kaWZpY2F0aW9uLCBh
cmUgcGVybWl0dGVkIHByb3ZpZGVkIHRoYXQgdGhlIGZvbGxvd2luZyBjb25k
aXRpb25zDQouXCIgYXJlIG1ldDoNCi5cIiAxLiBSZWRpc3RyaWJ1dGlvbnMg
b2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdo
dA0KLlwiICAgIG5vdGljZSwgdGhpcyBsaXN0IG9mIGNvbmRpdGlvbnMgYW5k
IHRoZSBmb2xsb3dpbmcgZGlzY2xhaW1lci4NCi5cIiAyLiBSZWRpc3RyaWJ1
dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb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