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.85_2 #1 (Red Hat Linux)) id 1cEueZ-0000gE-Ao for barebox@lists.infradead.org; Thu, 08 Dec 2016 09:06:13 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 8 Dec 2016 10:05:44 +0100 Message-Id: <20161208090544.10267-3-u.kleine-koenig@pengutronix.de> In-Reply-To: <20161208090544.10267-1-u.kleine-koenig@pengutronix.de> References: <20161208090544.10267-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 3/3] spi: mvebu: various non-critical improvements to armada_370_xp_spi_set_baudrate To: barebox@lists.infradead.org IC0gSW5pdGlhbGl6ZSBwZGl2IGluIGRlY2xhcmF0aW9uCiAtIGZpeCBmb3JtYXQgc3BlY2lmaWVy cwogLSBzaW1wbGlmeSByYW5nZSBjaGVjaywgcGRpdiBjYW4gbmV2ZXIgYmUgPiA3CgpTaWduZWQt b2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRl PgotLS0KIGRyaXZlcnMvc3BpL212ZWJ1X3NwaS5jIHwgNyArKystLS0tCiAxIGZpbGUgY2hhbmdl ZCwgMyBpbnNlcnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RyaXZlcnMv c3BpL212ZWJ1X3NwaS5jIGIvZHJpdmVycy9zcGkvbXZlYnVfc3BpLmMKaW5kZXggMzE5ZDIxMzg3 MmUwLi41OGFjNjA1N2FmZTMgMTAwNjQ0Ci0tLSB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