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 1VeZgf-0006gk-DG for barebox@lists.infradead.org; Fri, 08 Nov 2013 00:12:34 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 8 Nov 2013 01:11:57 +0100 Message-Id: <1383869517-25032-1-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <20131107160424.GL26639@ns203013.ovh.net> References: <20131107160424.GL26639@ns203013.ovh.net> 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 aGMgZHJpdmVyLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5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