From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eusmtp01.atmel.com ([212.144.249.242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XEEME-0005Br-DB for barebox@lists.infradead.org; Mon, 04 Aug 2014 09:15:11 +0000 Message-ID: <53DF4EF6.8050408@atmel.com> Date: Mon, 4 Aug 2014 17:14:30 +0800 From: Bo Shen MIME-Version: 1.0 References: <1407141112-3868-1-git-send-email-poggi.raph@gmail.com> <1407141112-3868-2-git-send-email-poggi.raph@gmail.com> In-Reply-To: <1407141112-3868-2-git-send-email-poggi.raph@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH V2 1/2] i2c: at91: add support of device tree To: =?UTF-8?B?UmFwaGHDq2wgUG9nZ2k=?= , barebox@lists.infradead.org SGkgUmFwaGHDq2wgUG9nZ2ksCgpPbiAwOC8wNC8yMDE0IDA0OjMxIFBNLCBSYXBoYcOrbCBQb2dn aSB3cm90ZToKPiBTaWduZWQtb2ZmLWJ5OiBSYXBoYcOrbCBQb2dnaSA8cG9nZ2kucmFwaEBnbWFp bC5jb20+Cj4gLS0tCj4gICBkcml2ZXJzL2kyYy9idXNzZXMvaTJjLWF0OTEuYyB8ICAgNjYgKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLS0KPiAgIDEgZmlsZSBjaGFuZ2Vk LCA1OCBpbnNlcnRpb25zKCspLCA4IGRlbGV0aW9ucygtKQo+Cj4gZGlmZiAtLWdpdCBhL2RyaXZl cnMvaTJjL2J1c3Nlcy9pMmMtYXQ5MS5jIGIvZHJpdmVycy9pMmMvYnVzc2VzL2kyYy1hdDkxLmMK PiBpbmRleCAzOTlmNmE5Li45NDRhOGIzIDEwMDY0NAo+I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