Received: by 10.223.185.116 with SMTP id b49csp6510879wrg; Wed, 28 Feb 2018 10:36:30 -0800 (PST) X-Google-Smtp-Source: AH8x224cwRCJ5kRhcHTvw0Zw8tQGhv6rbO3WnxXJIpdxaznnhbxF4kf9O84KEjgGAfPfwv6+JM5F X-Received: by 10.101.90.203 with SMTP id d11mr14780887pgt.366.1519842990164; Wed, 28 Feb 2018 10:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519842990; cv=none; d=google.com; s=arc-20160816; b=Qv6nCElgOCuZqEkCOxmL3l/1uLEyv59k72PIkS19msX4rPoVqM9/jYCcTJGSspS2Ej zgN4T6PVINZ3h00mbTdwVOu/wPn2ibbXdKnwSGvJv+crBNWkbiej0UnyANxk7TcDxaYa v9OMAswCA5XSleB6znMeXowJitQcd93CbEfYCBw04M2VlgbOe8D+1lyX1Xix0G6PMvqE niVtUJewPQeF3yNF7qn2hILHcPdIOaLy1Xu1mt03XxTOgdpqQ03vZqAO77MVY3miq7Sh d/dcK8esyWN32JMrwWColpVSZ5d8DwzOFOsFKHjegF9RrpzYKLo0KsFoAZIQErfaEO/f wS9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=p1vP7HV7JEPhpW/LfS6BQ2+KUs91cLMglIgI+rvZA74=; b=z2I0+ZdjhkFruMn2XdQjt2uCAokjrRc6omFjDjMvRjpxcb32ZnzLAMQWKGOdvcmZxX iG3xkvmOgjGyJCV4u7UvmIwCxRCO0ZCurvXWxMBOlTQRZbHW1CWc8Yw/33tAYIeHDgWj h00DMkL1WSFMZu9aradmEw/w/Hy5cEts+erFu6+H7ys5+U3Ofc02GNm7PT2E7sOM+k/Q F2uY/9nlWNJFGsn15fJKjFO3D0N/7Et1Rd/p8W0/xIswUwsPqu4Ix+il493XXe2q05GK PHS1SpOW4+z/TvPM6xTzsHtU/eRFF1sFNgkPAflzOCnbdK3ObtgWZkVc14CFq+7bK032 cZQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8-v6si1635710plo.17.2018.02.28.10.36.15; Wed, 28 Feb 2018 10:36:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932937AbeB1Sez (ORCPT + 99 others); Wed, 28 Feb 2018 13:34:55 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:55392 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932406AbeB1Sex (ORCPT ); Wed, 28 Feb 2018 13:34:53 -0500 X-UUID: da03a9c6407c4ba88693df2daa977aa9-20180301 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1460324002; Thu, 01 Mar 2018 02:34:50 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 1 Mar 2018 02:34:49 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 1 Mar 2018 02:34:49 +0800 Message-ID: <1519842888.8089.88.camel@mtkswgap22> Subject: Re: [PATCH v3 01/22] nvmem: Document struct nvmem_config From: Sean Wang To: Andrey Smirnov CC: Srinivas Kandagatla , Heiko Stuebner , , Kevin Hilman , , Masahiro Yamada , , , Matthias Brugger , , Carlo Caione , Date: Thu, 1 Mar 2018 02:34:48 +0800 In-Reply-To: <20180103200114.23922-2-andrew.smirnov@gmail.com> References: <20180103200114.23922-1-andrew.smirnov@gmail.com> <20180103200114.23922-2-andrew.smirnov@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-01-03 at 12:00 -0800, Andrey Smirnov wrote: > Add a simple description of struct nvmem_config and its fields. > > Cc: Srinivas Kandagatla > Cc: Heiko Stuebner > Cc: Masahiro Yamada > Cc: Carlo Caione > Cc: Kevin Hilman > Cc: Matthias Brugger > Cc: cphealy@gmail.com > Cc: linux-kernel@vger.kernel.org > Cc: linux-mediatek@lists.infradead.org > Cc: linux-rockchip@lists.infradead.org > Cc: linux-amlogic@lists.infradead.org > Cc: linux-arm-kernel@lists.infradead.org > Signed-off-by: Andrey Smirnov > --- > include/linux/nvmem-provider.h | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h > index 497706f5adca..27e599222ec1 100644 > --- a/include/linux/nvmem-provider.h > +++ b/include/linux/nvmem-provider.h > @@ -22,6 +22,28 @@ typedef int (*nvmem_reg_read_t)(void *priv, unsigned int offset, > typedef int (*nvmem_reg_write_t)(void *priv, unsigned int offset, > void *val, size_t bytes); > > +/** > + * struct nvmem_config - NVMEM device configuration > + * > + * @dev: Parent device. > + * @name: Optional name. > + * @id: Optional device ID used in full name. Ignored if name is NULL. > + * @owner: Pointer to exporter module. Used for refcounting. > + * @cells: Optional array of pre-defined NVMEM cells. > + * @ncells: Number of elements in cells. > + * @read_only: Device is read-only. > + * @root_only: Device is accessibly to root only. > + * @reg_read: Callback to read data. > + * @reg_write: Callback to write data. > + * @size: Device size. > + * @word_size: Minimum read/write access granularity. > + * @stride: Minimum read/write access stide. typo on stide ? > + * @priv: User context passed to read/write callbacks. > + * > + * Note: A default "nvmem" name will be assigned to the device if > + * no name is specified in its configuration. In such case "" is > + * generated with ida_simple_get() and provided id field is ignored. > + */ > struct nvmem_config { > struct device *dev; > const char *name;