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 1gn8Zf-0001nz-06 for barebox@lists.infradead.org; Fri, 25 Jan 2019 20:59:40 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 25 Jan 2019 21:59:35 +0100 Message-Id: <20190125205935.15135-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20190125205935.15135-1-u.kleine-koenig@pengutronix.de> References: <20190125205935.15135-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 2/2] i2c_probe: Use a quick write transfer instead of writing a zero To: barebox@lists.infradead.org VGhpcyBtYXRjaGVzIHRoZSBtZXRob2QgaW1wbGVtZW50ZWQgaW4gaTJjZGV0ZWN0KDgpIHdoZW4g dXNpbmcgaXRzIC1xCm9wdGlvbi4KCldpdGggdGhpcyBjaGFuZ2UgYW4gcng4MTMwIFJUQyBpcyBk ZXRlY3RhYmxlIHVzaW5nIGkyY19wcm9iZS4gVGhpcwpmYWlsZWQgYmVmb3JlIGJlY2F1c2UgdGhp cyBjaGlwIGFja3MgdGhlIGZpcnN0IGJ5dGUgKGNvbnRhaW5pbmcgaXRzCmFkZHJlc3MgYW5kIHRo ZSBSL8yFVyBiaXQpIGJ1dCBuYWNrcyB0aGUgZm9sbG93aW5nIDAgKHJlcHJlc2VudGluZyB0aGUK dGFyZ2V0IGFkZHJlc3MgdG8gd3JpdGUgbm90aGluZyB0bykgd2hpY2ggbWFrZXMgaTJjX3dyaXRl X3JlZygpIHJldHVybgp3aXRoIGFuIGVycm9yIGFuZCBzbyB0a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