From patchwork Fri Mar 9 14:46:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10270755 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6FBD60236 for ; Fri, 9 Mar 2018 14:51:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5E4C29E44 for ; Fri, 9 Mar 2018 14:51:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9964929E47; Fri, 9 Mar 2018 14:51:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0616929E44 for ; Fri, 9 Mar 2018 14:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=VQxbeAerQKbGIvRiCz9RwnVkZmLvLZpptXAOxjvU/z8=; b=j22I1+iojwfXu3xSmd5DroRa6+ 85BkRX8D6YWGFPqaajq7bXbwUUpqnMgIx2UJIpFcUna3FECjQEo4DC/F+wdVUsKvzeYVHUzI6zDv+ qJQZiHB7xPsWCwmnFA2+tS87x1QMKbbCEruW6S90fJL4ClghtIh8oGjv2NJj0FngfiOd1EiVczLQT Fk8lTRtz3IoT0JBXqGdD2t/mRyIADxPY/bJiRh+ihHfzg5o7g0KtsHR/bg3XID9k0M8agUkCz5g48 yF25S8dEIdwrYOBA69KUTiVV5ERCMD+4E/Hl8X4SfeoZZj1s7FqzLYLCEZmIX5DsmFThW3PcyvD/t qjq5qKdw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1euJN1-00015y-4R; Fri, 09 Mar 2018 14:51:43 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euJLz-0000OW-0V for linux-amlogic@lists.infradead.org; Fri, 09 Mar 2018 14:50:46 +0000 Received: by mail-wr0-x243.google.com with SMTP id v65so9264072wrc.11 for ; Fri, 09 Mar 2018 06:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vQR5gljnwr4aCOvufpueUZU1itTLbeOEfIMn7X2e+lg=; b=XZDZVI/NFoB1gR6GHdIcZXY2a/njgclvMAs1wjbVOhW9H4RRQELFmHLNYAGKmdzo/d rxRb9G4SoxJyfQQ/a/ZMBTGXfwons+/QYiyNrP4jIpCfxDoTIZCSmmMfY2X55bIEaJni avSn1UiSE9jy8Kvs+i3yeZn1OReQg+tnGYnU4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vQR5gljnwr4aCOvufpueUZU1itTLbeOEfIMn7X2e+lg=; b=RFXloZaF1y6iSXOli1mBiDfGkK2tiUDqa5wCWcU8pN507Ve/YCG8qJphKgnypv6eDr 2q9y6zlekpFI1pb57CAkxj41M6SdS3ZudNWLt/OfOXEtYCaBqLBfOmSqoEY4Bs3Um8kk 3AS9w8KmiooptwmUAO15pYJTAMNgp57p03hqLyriZBQRMWYGW/xgjA5+EaZDbeXPXBRE tuB8b1Sak6jrPI0dO4OZYyvDSj5r+K8TCZVv+LY5umP+w01gxFO2YktU/qcg5Hu2bnmN WNyIiHlzDeGFyOcWSyWxCDqBWG5mw5GJe/56cAJif+u843D4rO2DcHaJU05oAGoKKaC4 wDEQ== X-Gm-Message-State: APf1xPC/M1ihfG9GXgNa3KdZJASQUIDMrqKxrIZFk/B+6ulyAulG9KG8 yEGuPiHN8Jo2+vySFFMHkeISFA== X-Google-Smtp-Source: AG47ELud03hBG+NqnQ83Hv7ry80UjUv7UvY838mn+LZhQ36zIrm5dCCQdzrvX/2Hyo2Xg/M+8ncfvA== X-Received: by 10.223.209.197 with SMTP id m5mr26276124wri.121.1520607026992; Fri, 09 Mar 2018 06:50:26 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id u48sm1191901wrb.85.2018.03.09.06.50.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 06:50:26 -0800 (PST) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Subject: [PATCH 01/25] nvmem: Document struct nvmem_config Date: Fri, 9 Mar 2018 14:46:55 +0000 Message-Id: <20180309144719.29904-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> References: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_065039_303406_B1D9A0BE X-CRM114-Status: GOOD ( 13.21 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , linux-rockchip@lists.infradead.org, Andrey Smirnov , Kevin Hilman , linux-kernel@vger.kernel.org, Masahiro Yamada , srinivas.kandagatla@linaro.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Carlo Caione , linux-mediatek@lists.infradead.org, cphealy@gmail.com, Matthias Brugger MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrey Smirnov 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 Signed-off-by: Srinivas Kandagatla --- 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..a39f76ff2ccd 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 stride. + * @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;