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-0003zQ-55 for barebox@lists.infradead.org; Wed, 14 Jun 2017 11:31:40 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 14 Jun 2017 13:31:09 +0200 Message-Id: <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 1/2] of_device_is_stdout_path: simplify To: barebox@lists.infradead.org VGVzdCBmb3IgZGV2LT5kZXZpY2Vfbm9kZSBiZWluZyBOVUxMIGVhcmxpZXIgd2hpY2ggYXQgdGhl IGVuZCBvZiB0aGUKZnVuY3Rpb24gYWxsb3dzIHRvIHNpbXBsaWZ5IHRoZSBjYWxjdWxhdGlvbiBv ZiB0aGUgcmV0dXJuIHZhbHVlCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5r bGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgotLS0KIGRyaXZlcnMvb2YvYmFzZS5jIHwgMTAg KysrKy0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0aW9ucygrKSwgNiBkZWxldGlvbnMo LSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL29mL2Jhc2UuYyBiL2RyaXZlcnMvb2YvYmFzZS5jCmlu ZGV4IGM5YmRkOTE4MTBmMi4uNTkyZWJiMDE1YTczIDEwMDY0NAotLS0gYS9kcml2ZXJzL29mL2Jh c2UuYworKysgYi9kcml2ZXJzL29mL2Jhc2UuYwpAQCAtMjAwMCw2IC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