From patchwork Fri May 11 11:07:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 135525 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp720961lji; Fri, 11 May 2018 04:11:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpQalXVOwHKMMtu7kzqCbmn+UPPEn2sH/avRi/iVzoViiOdyl0YN46/FKq4CiLvsj1UvKPf X-Received: by 2002:a65:47cb:: with SMTP id f11-v6mr4126099pgs.235.1526037069612; Fri, 11 May 2018 04:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526037069; cv=none; d=google.com; s=arc-20160816; b=mq2yWuSAew0WC3fHUChuDhmNS/xyByNnkd5yO5V5feiPwDc19WkO2nUr7IFgFzgFmf pwh4mU9OTpSeGiVfKKKpkK4V09BbR06+DznuGsbEf1ljuHm9zdvj/06+c8PmueHeUXXR DBVg7F1gskHtal38Cbi3UbPMPdkLZ46kSGId3G5plmmda+89da+LnOPj0Dxif8ZIpjHb k6PJNFg+oEPXxCMCVcfU0RA9UvhKWBoRLAbPb2K4C58OfO9YuiTIIPne8L57y6VEmyph 0xZgENRj3PNqnrmzFV7510iS/WjlcYdaaRKOa/DXVsNPlxtXY+LSiV6yy6lShvryVzwx gl/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=eDLacnyz2Sx4d3x3swArJATYhMnSB+WxXyrGozFdY0o=; b=CghSQJhUXP8kBV7LSYQFTyU1GaWSchCGA3wTTkFdwhFY0Kn21BhrenG0E/Yo2I5A/1 eyd2yb2K82sHm+LmWpb/irLYsddV2/f6ELN0RqvJFiMbFpjxbmlBpUBUE/R2UlgbbFs+ pS3KoVuE+yDivwY/25YwXjzQson/+FZdKNGz1Ggqn4iZezngYRscZiuWdPvWEBDXGOLG OFhP0jGAxGR80kntn+2UGd9L05mtR6iLnSvMPNNRN6P6U2pl8BuMLZxOFxxzzAiHeBZQ sGUnGdv7zCDbjKfb9NiOBBRriLteyd3B9UxyQFlnmDDVWkjIpheVMKowvNFmS2bOcLl3 skgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LM86dHfH; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si3116213plk.433.2018.05.11.04.11.09; Fri, 11 May 2018 04:11:09 -0700 (PDT) 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=@linaro.org header.s=google header.b=LM86dHfH; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753617AbeEKLLH (ORCPT + 29 others); Fri, 11 May 2018 07:11:07 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:35591 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753433AbeEKLJh (ORCPT ); Fri, 11 May 2018 07:09:37 -0400 Received: by mail-wr0-f193.google.com with SMTP id i14-v6so4964960wre.2 for ; Fri, 11 May 2018 04:09:36 -0700 (PDT) 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=eDLacnyz2Sx4d3x3swArJATYhMnSB+WxXyrGozFdY0o=; b=LM86dHfHS+kkNph82xvEkk3LTqTmTUkO8H/ZN9gEipLo8gSMB/C6G2MH2c7T2GL6MG r+IIaxO9d8ZH3agZNRL1IsUazdZ89G5In+UnsuvYjfEPa8Iue6dkRBZ2rNICrqOvwKy3 cKCApD5AeRjo6+BkKr3HuS4lKjydR8Ur36v4M= 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=eDLacnyz2Sx4d3x3swArJATYhMnSB+WxXyrGozFdY0o=; b=s3C+IygyDaKuMw1AOzJSesLNEUfRWVnJ8HIOHN4VGv1KPkbTRwjQeiszqqD8lM69D1 50HJun8abm/5ZhK2Me3ZbWOzFI9kPHxuyRU6Yr+JFNzX2Bwz3El9kzrp8ZhdT3LICHxE Z7QokyZKqNb2XWcTJfMZp8GDNBMfJEDPC/1si+7bkpiL+MDejTfRwv7LBY+5udv0amH2 jF9EnO4dWp1U7rQBW7eY/PEutX/6reMiCWlKUr0GtGP7KUTyEVE1P5uQ5HWvPfaVOerr MPbdkLptDKpExXnsu31mSnYb6kmMZROSJvg23Rc2PUmC/tahJBx+/qNrm6Rzpd/bu6kG idPw== X-Gm-Message-State: ALKqPwcWtm3WMdcHkS4oum6CKLr2YbvMchLCSceedqWWqNDYmmu3aNrZ m6vcQUYio2SHT8PmymmB1J/GqJF8kFk= X-Received: by 2002:adf:a805:: with SMTP id l5-v6mr3894340wrc.97.1526036975974; Fri, 11 May 2018 04:09:35 -0700 (PDT) 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 a129-v6sm714047wme.34.2018.05.11.04.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 May 2018 04:09:35 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org Subject: [PATCH 7/8] nvmem: core: describe add missing dev function parameter Date: Fri, 11 May 2018 12:07:02 +0100 Message-Id: <20180511110703.4924-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180511110703.4924-1-srinivas.kandagatla@linaro.org> References: <20180511110703.4924-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document dev parameter which not described in devm_nvmem_unregister and devm_nvmem_register functions. Fix below warnings when kernel is compiled with W=1 drivers/nvmem/core.c:579: warning: Function parameter or member 'dev' not described in 'devm_nvmem_register' nvmem/core.c:615: warning: Function parameter or member 'dev' not described in 'devm_nvmem_unregister' Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.16.2 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index b1c95ef78544..36361044ddbe 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -569,6 +569,7 @@ static void devm_nvmem_release(struct device *dev, void *res) * nvmem_config. * Also creates an binary entry in /sys/bus/nvmem/devices/dev-name/nvmem * + * @dev: Device that uses the nvmem device. * @config: nvmem device configuration with which nvmem device is created. * * Return: Will be an ERR_PTR() on error or a valid pointer to nvmem_device @@ -607,6 +608,7 @@ static int devm_nvmem_match(struct device *dev, void *res, void *data) * devm_nvmem_unregister() - Unregister previously registered managed nvmem * device. * + * @dev: Device that uses the nvmem device. * @nvmem: Pointer to previously registered nvmem device. * * Return: Will be an negative on error or a zero on success.