Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759249AbYJVVJA (ORCPT ); Wed, 22 Oct 2008 17:09:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753799AbYJVVIv (ORCPT ); Wed, 22 Oct 2008 17:08:51 -0400 Received: from yw-out-2324.google.com ([74.125.46.29]:15814 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbYJVVIt (ORCPT ); Wed, 22 Oct 2008 17:08:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=rbq3PDBMwnOVWF9IWbhZpU6NPm1CBWWvIlcq00tKj/YuzoTmKw5VYf0kxKCUX1rR28 XXiTH6FCzf53nC5BRApG2nWWy/88ILMNRKk624OIBSv54IHGPBNWznr6HALEC/m3qxzd 5jil9RhKyduYT5i5vCpOp19YNBPVd0zA54nXY= Message-ID: Date: Wed, 22 Oct 2008 23:08:47 +0200 From: "Markus Rechberger" To: "Linux Kernel Mailing List" , em28xx Subject: [PATCH 5/7] adding lgdt3304 based driver MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_25561_32839333.1224709727715" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 16627 Lines: 228 ------=_Part_25561_32839333.1224709727715 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline lgdt3304.c: frontend driver for the lgdt3304 chip, this driver is not compatible with the lgdt330x. ------=_Part_25561_32839333.1224709727715 Content-Type: text/x-diff; name=em28xx-05.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fmmgjj5b0 Content-Disposition: attachment; filename=em28xx-05.diff Y29tbWl0IGQ3MTZhYTM3OTdiOTY2Mjc3Y2MxNjBmYzFmMDg5MzU3MzY1MzM2YjUKQXV0aG9yOiBN YXJrdXMgUmV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YW5zZmVyKHN0YXRlLT5pMmMsICZpMmNtc2dzLCAxKTsKKwlpZiAocmV0ICE9IDEpIHsK KwkJcHJpbnRrKCIlcyBpMmNfdHJhbnNmZXIgZXJyb3IgJWRcbiIsIF9fRlVOQ1RJT05fXywgcmV0 KTsKKwkJcmV0dXJuIHJldDsKKwl9CisKKwlyZXR1cm4gMDsKK30KKworCitzdGF0aWMgaW50IGxn ZHQzMzA0X3NvZnRfUmVzZXQoc3RydWN0IGR2Yl9mcm9udGVuZCAqZmUpIAoreworCWxnZHQzMzA0 X2kyY193cml0ZV9yZWcoZmUsIDB4MDAwMiwgMHg5YSk7CisJbGdkdDMzMDRfaTJjX3dyaXRlX3Jl ZyhmZSwgMHgwMDAyLCAweDliKTsKKwltZGVsYXkoMjAwKTsKKwlyZXR1cm4gMDsKK30KKworc3Rh dGljIGludCBsZ2R0MzMwNF9zZXRfcGFyYW1ldGVycyhzdHJ1Y3QgZHZiX2Zyb250ZW5kICpmZSwg c3RydWN0IGR2Yl9mcm9udGVuZF9wYXJhbWV0ZXJzICpwYXJhbSkgeworCWludCBlcnIgPSAwOwor CisJc3RhdGljIF9fdTggbGdkdDMzMDRfdnNiOF9kYXRhW10gPSB7CisJCS8qIDE2Yml0ICAsIDhi aXQgKi8KKwkJLyogcmVncyAgICwgdmFsICAqLworCQkweDAwLCAweDAwLCAweDAyLAorCQkweDAw LCAweDAwLCAweDEzLAorCQkweDAwLCAweDBkLCAweDAyLAorCQkweDAwLCAweDBlLCAweDAyLAor CQkweDAwLCAweDEyLCAweDMyLAorCQkweDAwLCAweDEzLCAweGM0LAorCQkweDAxLCAweDEyLCAw eDE3LAorCQkweDAxLCAweDEzLCAweDE1LAorCQkweDAxLCAweDE0LCAweDE4LAorCQkweDAxLCAw eDE1LCAweGZmLAorCQkweDAxLCAweDE2LCAweDJjLAorCQkweDAyLCAweDE0LCAweDY3LAorCQkw eDAyLCAweDI0LCAweDhkLAorCQkweDA0LCAweDI3LCAweDEyLAorCQkweDA0LCAweDI4LCAweDRm LAorCQkweDAzLCAweDA4LCAweDgwLAorCQkweDAzLCAweDA5LCAweDAwLAorCQkweDAzLCAweDBk LCAweDAwLAorCQkweDAzLCAweDBlLCAweDFjLAorCQkweDAzLCAweDE0LCAweGUxLAorCQkweDA1 LCAweDBlLCAweDViLAorCX07CisJCisJLyogbm90IHlldCB0ZXN0ZWQgLi4gKi8KKwlzdGF0aWMg X191OCBsZ2R0MzMwNF9xYW02NF9kYXRhW10gPSB7CisJCS8qIDE2Yml0ICAsIDhiaXQgKi8KKwkJ LyogcmVncyAgICwgdmFsICAqLworCQkweDAwLCAweDAwLCAweDE4LAorCQkweDAwLCAweDBkLCAw eDAyLAorCQkvLzB4MDAsIDB4MGUsIDB4MDIsCisJCTB4MDAsIDB4MTIsIDB4MmEsCisJCTB4MDAs IDB4MTMsIDB4MDAsCisJCTB4MDMsIDB4MTQsIDB4ZTMsCisJCTB4MDMsIDB4MGUsIDB4MWMsCisJ CTB4MDMsIDB4MDgsIDB4NjYsCisJCTB4MDMsIDB4MDksIDB4NjYsCisJCTB4MDMsIDB4MGEsIDB4 MDgsCisJCTB4MDMsIDB4MGIsIDB4OWIsCisJCTB4MDUsIDB4MGUsIDB4NWIsCisJfTsKKworI2lm IDAKKwkvKiBub3QgeWV0IHRlc3RlZCAqLworCXN0YXRpYyBfX3U4IGxnZHQzMzA0X3FhbTI1Nl9k YXRhW10gPSB7CisJCS8qIDE2Yml0ICAsIDhiaXQgKi8KKwkJLyogcmVncyAgICwgdmFsICAqLwor CQkweDAwLCAweDAwLCAweDE5LAorCQkweDAwLCAweDEyLCAweDJhLAorCQkweDAwLCAweDEzLCAw eDgwLAorCQkweDAwLCAweDBkLCAweDAyLAorCQkweDAzLCAweDE0LCAweGUzLAorCisJCTB4MDMs IDB4MGUsIDB4MWMsCisJCTB4MDMsIDB4MDgsIDB4NjYsCisJCTB4MDMsIDB4MDksIDB4NjYsCisJ CTB4MDMsIDB4MGEsIDB4MDgsCisJCTB4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gICBzdHJ1Y3QgaTJjX2FkYXB0 ZXIgKmkyYyk7CisjZWxzZQorc3RhdGljIGlubGluZSBzdHJ1Y3QgZHZiX2Zyb250ZW5kKiBsZ2R0 MzMwNF9hdHRhY2goY29uc3Qgc3RydWN0IGxnZHQzMzA0X2NvbmZpZyAqY29uZmlnLAorCQkJCQkg ICBzdHJ1Y3QgaTJjX2FkYXB0ZXIgKmkyYykKK3sKKwlwcmludGsoS0VSTl9XQVJOSU5HICIlczog ZHJpdmVyIGRpc2FibGVkIGJ5IEtjb25maWdcbiIsIF9fZnVuY19fKTsKKwlyZXR1cm4gTlVMTDsK K30KKyNlbmRpZiAvKiBDT05GSUdfRFZCX0xHRFQgKi8KKworI2VuZGlmIC8qIExHRFQzMzA0X0gg Ki8K ------=_Part_25561_32839333.1224709727715-- -- 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/