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 1fY6OX-0003Pv-W6 for barebox@lists.infradead.org; Wed, 27 Jun 2018 09:05:47 +0000 Message-ID: <1530090334.22468.15.camel@pengutronix.de> From: Lucas Stach Date: Wed, 27 Jun 2018 11:05:34 +0200 In-Reply-To: <20180627035842.17858-1-andrew.smirnov@gmail.com> References: <20180627035842.17858-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 1/2] nvmem: Introduce nvmem_cell_get_and_read() To: Andrey Smirnov , barebox@lists.infradead.org QW0gRGllbnN0YWcsIGRlbiAyNi4wNi4yMDE4LCAyMDo1OCAtMDcwMCBzY2hyaWViIEFuZHJleSBT bWlybm92Ogo+IEludHJvZHVjZSBudm1lbV9jZWxsX2dldF9hbmRfcmVhZCgpIHRoYXQgY29tYmlu ZXMgZ2V0dGluZyBhIE5WTUVNIGNlbGwKPiBieSBuYW1lIGFuZCByZWFkaW5nIGl0cyBjb250ZW50 cy4KPiAKPiA+IFNpZ25lZC1vZmYtYnk6IEFuZHJleSBTbWlybm92IDxhbmRyZXcuc21pcm5vdkBn bWFpbC5jb20+Cj4gLS0tCj4gwqBkcml2ZXJzL252bWVtL2NvcmUuY8KgwqDCoMKgwqDCoMKgwqDC oMKgwqB8IDIzICsrKysrKysrKysrKysrKysrKysrKysrCj4gwqBpbmNsdWRlL2xpbnV4L252bWVt LWNvbnN1bWVyLmggfCAxMCArKysrKysrKysrCj4gwqAyIGZpbGVzIGNoYW5nZWQsIDMzIGluc2Vy dGlvbnMoKykKPiAKPiBkaWZ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