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.90_1 #2 (Red Hat Linux)) id 1gMquq-0008QN-Mj for barebox@lists.infradead.org; Wed, 14 Nov 2018 08:52:54 +0000 From: Sascha Hauer Date: Wed, 14 Nov 2018 09:52:33 +0100 Message-Id: <20181114085233.5000-1-s.hauer@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] of: Add .of suffix to device names from devicetree To: Barebox List Cc: Andrey Smirnov UHJldmlvdXMgaW1wbGVtZW50YXRpb24gdXNlZCB0byBhZGQgYSBudW1iZXIgdG8gdGhlIGRldmlj ZSBuYW1lcwpmb3IgZGV2aWNlcyByZWdpc3RlcmVkIGZyb20gdGhlIGRldmljZSB0cmVlIHdoaWNo IGRpZCBub3QgaGF2ZSBhICdyZWcnCnByb3BlcnR5LCB0aHVzIGEgZGV2aWNlIG5vZGUgbmFtZWQg InN0YXRlIiByZXN1bHRlZCBpbiBhIGRldmljZSBuYW1lCiJzdGF0ZS48eD4iLiBDdXJyZW50IGlt cGxlbWVudGF0aW9uIHNraXBzIHRoYXQgbnVtYmVyIGFuZCB3ZSBnZXQgYQpkZXZpY2UgbmFtZWQg InN0YXRlIi4gVGhpcyBjb25mbGljdHMgd2l0aCBvdXIgYmFyZWJveCBzdGF0ZQppbXBsZW1lbnRh dGlvbiB3aGljaCB0cmllcyB0byByZWdpc3RlciBhIGRldmljZSBuYW1lZCAic3RhdGUiIGl0c2Vs Zi4KV2UgY291bGQgcmVuYW1lIHRoZSBzdGF0ZSBkZXZpY2Ugbm9kZXMgb2YgYWxsIG91ciBkZXZp Y2UgdHJlZXMsIGJ1dC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