[patch 3/3] 2.5.36 i2c new adapter i2c-pport driver

Albert Cranford (ac9410@attbi.com)
Wed, 18 Sep 2002 02:07:38 -0400 (EDT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--0-1875503274-1032329258=:358
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello Linus,
Patch adds new i2c adapter parallel port driver.
Albert

-- 
ac9410@attbi.com

--0-1875503274-1032329258=:358 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=3-pport-patch Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.44.0209180207380.358@home1> Content-Description: Content-Disposition: attachment; filename=3-pport-patch

LS0tIC9kZXYvbnVsbAkxOTk0LTA3LTE3IDE5OjQ2OjE4LjAwMDAwMDAwMCAt MDQwMA0KKysrIGxpbnV4L2RyaXZlcnMvaTJjL2kyYy1wcG9ydC5jCTIwMDIt MDktMTcgMDk6MDQ6MzkuMDAwMDAwMDAwIC0wNDAwDQpAQCAtMCwwICsxLDIz NiBAQA0KKy8qIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gKi8NCisv KiBpMmMtcHBvcnQuYyBpMmMtaHcgYWNjZXNzICBmb3IgcHJpbWl0aXZlIGky YyBwYXIuIHBvcnQgYWRhcHRlcgkgICAgICovDQorLyogLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLSAqLw0KKy8qICAgQ29weXJpZ2h0IChDKSAyMDAx ICAgIERhbmllbCBTbW9saWsNCisNCisgICAgVGhpcyBwcm9ncmFtIGlzIGZy ZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBt b2RpZnkNCisgICAg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4iKTsNCitNT0RVTEVfREVTQ1JJUFRJT04oIkkyQy1C dXMgYWRhcHRlciByb3V0aW5lcyBmb3IgUHJpbWl0aXZlIHBhcmFsbGVsIHBv cnQgYWRhcHRlciIpDQorOw0KK01PRFVMRV9QQVJNKGJhc2UsICJpIik7DQor DQorbW9kdWxlX2luaXQoaTJjX2JpdHBwb3J0X2luaXQpOw0KK21vZHVsZV9l eGl0KGkyY19iaXRwcG9ydF9leGl0KTsNCg== --0-1875503274-1032329258=:358-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/