From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeNBR-0003yc-9f for barebox@lists.infradead.org; Thu, 07 Nov 2013 10:51:30 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 7 Nov 2013 11:51:02 +0100 Message-Id: <1383821462-29348-1-git-send-email-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] mci: mxs: support overwriting the device name via platform data To: barebox@lists.infradead.org VGhlIGN1cnJlbnQgaW1wbGVtZW50YXRpb24gb2YgdGhlIGJvb3Rsb2FkZXIgc3BlY2lmaWNhdGlv biBkZXBlbmRzIG9uIHRoZQpoYXJkd2FyZSBuYW1lIGFuZCB0aGUgbmFtZSBvZiB0aGUgZGV2aWNl IGluIC9kZXYgdG8gbWF0Y2guIEFzIHRoZSBkZWZhdWx0CmhhcmR3YXJlIG5hbWUgaXMgbWNpWCBh bmQgdGhlIGRldmljZSBuYW1lIGlzIGRpc2tZIHRoZSBib290bG9hZGVyIHNwZWMKY2Fubm90IGJl IHVzZWQgYXMgaXMuCgpUaGlzIHBhdGNoIGltcGxlbWVudHMgYSB3YXkgdG8gb3ZlcndyaXRlIHRo ZSBkZXZpY2UgbmFtZSBzaW1pbGFyIHRvIHdoYXQgaXMKcG9zc2libGUgZm9yIHRoZSBpbXgtZXNk aGMgZHJpdmVyLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtv ZW5pZ0BwZW5ndXRyb25peC5kZT4KLS0tCiBhcmNoL2FybS9tYWNo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