Received: by 10.223.185.116 with SMTP id b49csp6624908wrg; Thu, 8 Mar 2018 10:23:38 -0800 (PST) X-Google-Smtp-Source: AG47ELttYbFkBIXQI6aM7ASOD511IvTrUXtc6sKnDKF9lm0uaXzfehPvLWrKLCACZBk0Zi7lgWid X-Received: by 10.101.74.10 with SMTP id s10mr22392044pgq.219.1520533418176; Thu, 08 Mar 2018 10:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520533418; cv=none; d=google.com; s=arc-20160816; b=w4NXctsmQsPcVfANvCpvOFx5nHHTVGeOnJ14BZMd4N13+Yma538qixaFZXH1iwB9SU cMDbNCe5zfT1UJFIkKgQ2FulwccKHFFgUucjX7wNnwCki6N4FaBK9RDMBZ62gUQm5K3n uA/N43ywFRHiAd8t4BXZbQTeDPqh4SeS3kmhGXmXz1YBH1W7xvBF2XEMbLeLwVo4Fw++ KF+szH72PV2IVRtkkTxaOCE31oNaDgsaecPkuwI1JvAjAGUg1vlCr4DW21+hj+tyC0WB j31Mf+PUbHZBAcji1lmMx4ypttxF2AtxmNICX3zNQ9hQzRZ0SvxZYDSV8E2BX/x9IDGp 8PdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=sVnmc/E/9I+EzQNXO69RF6Q1SJVu7wi0J7kYHjJTpso=; b=FISHHi5OYFMxv4vxB/1A6JwuQ1aGUZX9C3AS/Z2IiDDGFv97WVnU6KNMG0o7RmPYOg nWvScluugY9RneKPIj7CrLTHpXt18d4V3vE7I0n2gjx7LRbxTSxiXTcaQopJtSxJUY04 LXszCZLhQxgvG7uCBXmz9mhz54WXLCh4fayx/fRo3MWZd7QUWTxFnVZisdLHr8iLxi1f kMb8SuBntelpmlVU8+nQn+t9NgqxzolhMzip2/kXFTS37FTP3VEMhCD5ku50DwVYI3xd E+TQxWG33zMrjpzgrYTPsMPGy9b9yJa7uotc3Y9emOE92zhZtjhizWLIalWS5lhODjLb 7NmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mzAkCA/m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si13309137pgq.562.2018.03.08.10.23.23; Thu, 08 Mar 2018 10:23:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mzAkCA/m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756063AbeCHSWN (ORCPT + 99 others); Thu, 8 Mar 2018 13:22:13 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:37277 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755624AbeCHSWL (ORCPT ); Thu, 8 Mar 2018 13:22:11 -0500 Received: by mail-qk0-f196.google.com with SMTP id y137so739561qka.4 for ; Thu, 08 Mar 2018 10:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sVnmc/E/9I+EzQNXO69RF6Q1SJVu7wi0J7kYHjJTpso=; b=mzAkCA/muJhSAQtZuWJm4WEMK8szMhzD4pR28Cw/i8pDxWdxGKkrUrYg81JOTaWsGz +88FVgXPqxuuQgPTZEVN+oFhZQwLx/zt9qfYOVtiEJY71z3ieX96/JDLtnjw7LVQ6rpd ILFiYync4n1EfQ+25rEyTMvVf1v5WE8mJDbXNCEKtn18Z6GgS3Qdrz/xRhvIRskwyhl3 kV/p9Yrfjc/ww4dvSb0S2jL3hSUSie5ObblXptHxGFrMnkizCN81mnk/ROEQhPquWm2G ragBWIYB142sww6DA4eRG1Wj9mkFAsWxVDr6Rk4pNKr0sSlhc0yw+qeFSQPtxJl9jHUS ppeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sVnmc/E/9I+EzQNXO69RF6Q1SJVu7wi0J7kYHjJTpso=; b=kMxvOwGHiPROixHHX/7K7hfIHyKBsNxhWsejOOdH7k9A4yjBw8zxtWHe9Fs/yqenKb S/673YYOowNsd7zIycvLYRDGC+A8kVVQeeL3Ly/RGI0Th+mRhLFteVAlI72uqLZRsBlW Su+ZbCg1Y8YmRTNdUy45ozDDKcJE5gALcyQ2sSK8lxRkFShE93P/DJItwcSBOX7rYkm9 bihMf9ucZZ0/89ZVcgoE90bcCnCfh95VjpoUggINeZoU0hFT/bLe9AQheN4935mDFNuV Lgn4IWDEo9pvUZP3rL9qzuMNWBtNjEnq3ZUjuYOxYC4nD0+Lz274OkhbJffvArQoJ1na kMgQ== X-Gm-Message-State: AElRT7ExNr72tnMCMbAPXCQqb3m4XgBaAwBMzT1Zgxg7Ic4xDUvOYht+ RP02sPs6pEWyfLweOWlgBKWNehrHoy5gHwOldvg= X-Received: by 10.55.79.78 with SMTP id d75mr37579869qkb.20.1520533330666; Thu, 08 Mar 2018 10:22:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.80.146 with HTTP; Thu, 8 Mar 2018 10:22:09 -0800 (PST) In-Reply-To: <1519842888.8089.88.camel@mtkswgap22> References: <20180103200114.23922-1-andrew.smirnov@gmail.com> <20180103200114.23922-2-andrew.smirnov@gmail.com> <1519842888.8089.88.camel@mtkswgap22> From: Andrey Smirnov Date: Thu, 8 Mar 2018 10:22:09 -0800 Message-ID: Subject: Re: [PATCH v3 01/22] nvmem: Document struct nvmem_config To: Sean Wang Cc: Srinivas Kandagatla , Heiko Stuebner , linux-rockchip@lists.infradead.org, Kevin Hilman , linux-kernel , Masahiro Yamada , linux-mediatek@lists.infradead.org, linux-arm-kernel , Matthias Brugger , linux-amlogic@lists.infradead.org, Carlo Caione , Chris Healy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 10:34 AM, Sean Wang wrote: > 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 ? Definitely, will fix in next version. Thanks, Andrey Smirnov