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 1fYTVS-0007kX-U7 for barebox@lists.infradead.org; Thu, 28 Jun 2018 09:46:29 +0000 Message-ID: <1530179171.22468.48.camel@pengutronix.de> From: Lucas Stach Date: Thu, 28 Jun 2018 11:46:11 +0200 In-Reply-To: <20180628044227.15049-1-andrew.smirnov@gmail.com> References: <20180628044227.15049-1-andrew.smirnov@gmail.com> 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: Re: [PATCH v2 1/2] nvmem: Introduce nvmem_cell_get_and_read() To: Andrey Smirnov , barebox@lists.infradead.org QW0gTWl0dHdvY2gsIGRlbiAyNy4wNi4yMDE4LCAyMTo0MiAtMDcwMCBzY2hyaWViIEFuZHJleSBT bWlybm92Ogo+IEludHJvZHVjZSBudm1lbV9jZWxsX2dldF9hbmRfcmVhZCgpIHRoYXQgY29tYmlu ZXMgZ2V0dGluZyBhIE5WTUVNIGNlbGwKPiBieSBuYW1lIGFuZCByZWFkaW5nIGl0cyBjb250ZW50 cy4KPiAKPiBTaWduZWQtb2ZmLWJ5OiBBbmRyZXkgU21pcm5vdiA8YW5kcmV3LnNtaXJub3ZAZ21h aWwuY29tPgoKRm9yIHRoZSBzZXJpZXM6ClJldmlld2VkLWJ5OiBMdWNhcyBTdGFjaCA8bC5zdGFj aEBwZW5ndXRyb25peC5kZT4KCj4gLS0tCj4gCj4gQ2hhbmdlcyBzaW5jZSBbdjFdOgo+IAo+IMKg wqDCoMKgLSBBZGRlZCBtaXNzaW5nIG5ld2xpbmUgdG8gY29yZS5jCj4gCj4gW3YxXSBodHRwOi8v bGlz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