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 1dLCdP-0002QM-39 for barebox@lists.infradead.org; Wed, 14 Jun 2017 18:03:17 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 14 Jun 2017 20:02:49 +0200 Message-Id: <20170614180249.12644-1-u.kleine-koenig@pengutronix.de> In-Reply-To: <20170614113110.21604-2-u.kleine-koenig@pengutronix.de> References: <20170614113110.21604-2-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 v2 2/2] of_device_is_stdout_path: split off options and support aliases To: barebox@lists.infradead.org U2V2ZXJhbCBkZXZpY2UgdHJlZXMgdXNlIHNvbWV0aGluZyBsaWtlOgoKCXN0ZG91dC1wYXRoID0g InNlcmlhbDA6MTE1MjAwbjgiOwoKQ3VycmVudGx5IG9mX2RldmljZV9pc19zdGRvdXRfcGF0aCBm YWlscyB0byBkbyB0aGUgcmlnaHQgdGhpbmcgaGVyZQpiZWNhdXNlIGl0IGV4cGVjdHMgYW4gYWJz b2x1dGUgbm9kZSBwYXRoIGFuZCBubyBvcHRpb25zLiBTbyBzcGxpdCBvZmYKb3B0aW9ucyAoZXZl cnl0aGluZyBhZnRlciB0aGUgY29sb24pIGFuZCByZXNvbHZlIGFsaWFzZXMuCgpTaWduZWQtb2Zm LWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgot LS0KQ2hhbmdlcyBzaW5jZSAoaW1wbGljaXQpIHYxLCBzZW50IHdpdGggTWVzc2FnZ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