[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1483546691-24099-4-git-send-email-srinivas.kandagatla@linaro.org>
Date: Wed, 4 Jan 2017 16:18:11 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: gregkh@...uxfoundation.org
Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>,
linux-kernel@...r.kernel.org, srinivas.kandagatla@...aro.org,
Brian Norris <briannorris@...omium.org>
Subject: [PATCH 3/3] nvmem: fix nvmem_cell_read() return type doc
From: Brian Norris <briannorris@...omium.org>
nvmem_cell_read() returns void *, not char *. This is a cleanup that got
left out of commit a6c50912508d ("nvmem: Declare nvmem_cell_read()
consistently").
Signed-off-by: Brian Norris <briannorris@...omium.org>
Fixes: a6c50912508d ("nvmem: Declare nvmem_cell_read() consistently")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
---
drivers/nvmem/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 965911d..398ea7f 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -981,8 +981,8 @@ static int __nvmem_cell_read(struct nvmem_device *nvmem,
* @cell: nvmem cell to be read.
* @len: pointer to length of cell which will be populated on successful read.
*
- * Return: ERR_PTR() on error or a valid pointer to a char * buffer on success.
- * The buffer should be freed by the consumer with a kfree().
+ * Return: ERR_PTR() on error or a valid pointer to a buffer on success. The
+ * buffer should be freed by the consumer with a kfree().
*/
void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len)
{
--
2.7.4
Powered by blists - more mailing lists