From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.rapiddevelopmentkit.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYvPb-0001UC-Fg for barebox@lists.infradead.org; Tue, 30 Sep 2014 11:16:08 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 4037FA00308 for ; Tue, 30 Sep 2014 13:15:52 +0200 (CEST) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Tue, 30 Sep 2014 13:15:29 +0200 Message-Id: <1412075730-5946-4-git-send-email-t.gamez@phytec.de> In-Reply-To: <1412075730-5946-1-git-send-email-t.gamez@phytec.de> References: <1412075730-5946-1-git-send-email-t.gamez@phytec.de> MIME-Version: 1.0 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCHv3 4/5] of: Added of_set_property_to_child_phandle To: barebox@lists.infradead.org U2V0IGEgcHJvcGVydHkgdG8gYSBwaGFuZGxlIG9mIGEgY2hpbGQgbm9kZS4gVGhpcyBtYXkgYmUg dXNlZApmb3Igc2VsZWN0aW9ucyBsaWtlIGRpc3BsYXktdGltaW5ncy4KClNpZ25lZC1vZmYtYnk6 IFRlcmVzYSBHw6FtZXogPHQuZ2FtZXpAcGh5dGVjLmRlPgotLS0KIGRyaXZlcnMvb2YvYmFzZS5j IHwgMjEgKysrKysrKysrKysrKysrKysrKysrCiBpbmNsdWRlL29mLmggICAgICB8ICAxICsKIDIg ZmlsZXMgY2hhbmdlZCwgMjIgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL2RyaXZlcnMvb2Yv YmFzZS5jIGIvZHJpdmVycy9vZi9iYXNlLmMKaW5kZXggZjM2M2NjMS4u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