From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail16.tpgi.com.au ([203.12.160.231]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PdWrX-0004ci-DU for barebox@lists.infradead.org; Thu, 13 Jan 2011 23:45:52 +0000 From: Marc Reilly Date: Fri, 14 Jan 2011 10:45:18 +1100 References: <1294845697-2729-1-git-send-email-eric@eukrea.com> In-Reply-To: <1294845697-2729-1-git-send-email-eric@eukrea.com> MIME-Version: 1.0 Message-Id: <201101141045.18241.marc@cpdesign.com.au> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] i2c-imx: sync with kernel's driver To: barebox@lists.infradead.org T24gVGh1cnNkYXksIEphbnVhcnkgMTMsIDIwMTEgMDI6MjE6MzcgYW0gRXJpYyBCw6luYXJkIHdy b3RlOgo+IHN0cmFuZ2UgYmVoYXZpb3VyIHdhcyBvYnNlcnZlZCB3aXRoIGFjdHVhbCBkcml2ZXIg OiBidXMgbG9jaywgcHJvYmUgb2YKPiBhYnNlbnQgYWRyZXNzZXMsIHdyb25nIGRhdGEgcmVhZC4K PiBUaGlzIHBhdGNoIHN5bmMgdGhlIGRyaXZlciB3aXRoIGxpbnV4J3Mgb25lIGFuZCBhZnRlciBh IGZldyB0ZXN0cywgd2UKPiBkb24ndCBzZWUgYW55bW9yZSBzdHJhbmdlIGJlaGF2aW91ciAodGVz dGVkIG9uIGkuTVgyNykuCj4gCj4gU2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1 a3JlYS5jb20+CgpGV0lXLCBUaGlzIHBhdGNoIGRvZXNuJ3Qgc2VlbSB0byBicmVhayBhbnl0aGlu ZyBmb3IgbWUsIGJ1dCBJIGFsc28gd2Fzbid0IApzZ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