From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phycore.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWix6-0002xO-0A for barebox@lists.infradead.org; Wed, 24 Sep 2014 09:33:36 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id EE2DAA0047F for ; Wed, 24 Sep 2014 11:33:20 +0200 (CEST) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Wed, 24 Sep 2014 11:33:10 +0200 Message-Id: <1411551191-27938-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: [PATCH 1/2] of: Added of_set_property_to_child_phandle To: barebox@lists.infradead.org U2V0IGEgcHJvcGVydHkgdG8gYSBwaGFuZGxlIG9mIGEgY2hpbGQgbm9kZS4gVGhpcyBtYXkgYmUg dXNlZApmb3Igc2VsZWN0aW9ucyBsaWtlIGRpc3BsYXktdGltaW5ncy4KClNpZ25lZC1vZmYtYnk6 IFRlcmVzYSBHw6FtZXogPHQuZ2FtZXpAcGh5dGVjLmRlPgotLS0KIGRyaXZlcnMvb2YvYmFzZS5j IHwgICAyMSArKysrKysrKysrKysrKysrKysrKysKIGluY2x1ZGUvb2YuaCAgICAgIHwgICAgMSAr CiAyIGZpbGVzIGNoYW5nZWQsIDIyIGluc2VydGlvbnMoKyksIDAgZGVsZXRpb25zKC0pCgpkaWZm IC0tZ2l0IGEvZHJpdmVycy9vZi9iYXNlLmMgYi9kcml2ZXJzL29mL2Jhc2UuYwppbmRleCBjNDQw YTY5Li5lYjVlMWExIDEwMDY0NAotLS0gYS9kcml2ZXJzL29mL2Jhc2UuYworKysgYi9kc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