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 1cILsr-0000S1-Ly for barebox@lists.infradead.org; Sat, 17 Dec 2016 20:47:10 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sat, 17 Dec 2016 21:46:44 +0100 Message-Id: <20161217204644.4419-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] ata/ahci: simplify ahci_read_id To: barebox@lists.infradead.org VGhpcyBpcyBhIGR1bW15IGNvbW1pdCBsb2cgYm9keSBiZWNhdXNlIEkgY29uc2lkZXIgdGhlIGNo YW5nZSB0byB0cml2aWFsCnRvIHdyaXRlIHNvbWV0aGluZyBzZW5zaWJsZS4KClNpZ25lZC1vZmYt Ynk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVuZ3V0cm9uaXguZGU+Ci0t LQogZHJpdmVycy9hdGEvYWhjaS5jIHwgNiArLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2Vy dGlvbigrKSwgNSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL2F0YS9haGNpLmMg Yi9kcml2ZXJzL2F0YS9haGNpLmMKaW5kZXggYzMxYjMzN2JhMjMxLi5jZWEwMzFhZjVhODQgMTAw NjQ0Ci0tLSBhL2RyaXZlcnMvYXRhL2FoY2kuYworKysgYi9kcml2ZXJzL2F0YS9haGNpLmMKQEAg LTIxNiwxMSArMjE2LDcgQEAgc3RhdGljIGludCBhaGNpX3JlYWRfaWQoc3RydWN0IG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