From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL6WP-0003zR-4X for barebox@lists.infradead.org; Wed, 14 Jun 2017 11:31:38 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 14 Jun 2017 13:31:10 +0200 Message-Id: <20170614113110.21604-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20170614113110.21604-1-u.kleine-koenig@pengutronix.de> References: <20170614113110.21604-1-u.kleine-koenig@pengutronix.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 2/2] of_device_is_stdout_path: split off options and support aliases To: barebox@lists.infradead.org U2V2ZXJhbCBkZXZpY2UgdHJlZXMgdXNlIHNvbWV0aGluZyBsaWtlOgoKCXN0ZG91dC1wYXRoID0g InNlcmlhbDA6MTE1MjAwbjgiOwoKQ3VycmVudGx5IG9mX2RldmljZV9pc19zdGRvdXRfcGF0aCBm YWlscyB0byBkbyB0aGUgcmlnaHQgdGhpbmcgaGVyZQpiZWNhdXNlIGl0IGV4cGVjdHMgYW4gYWJz b2x1dGUgbm9kZSBwYXRoIGFuZCBubyBvcHRpb25zLiBTbyBzcGxpdCBvZmYKb3B0aW9ucyAoZXZl cnl0aGluZyBhZnRlciB0aGUgY29sb24pIGFuZCByZXNvbHZlIGFsaWFzZXMuCgpTaWduZWQtb2Zm LWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgot LS0KIGRyaXZlcnMvb2YvYmFzZS5jIHwgMTIgKysrKysrKysrKystCiAxIGZpbGUgY2hhbm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