提交 b577fafc 编写于 作者: B Brian Norris 提交者: Greg Kroah-Hartman

nvmem: fix nvmem_cell_read() return type doc

nvmem_cell_read() returns void *, not char *. This is a cleanup that got
left out of commit a6c50912 ("nvmem: Declare nvmem_cell_read()
consistently").
Signed-off-by: NBrian Norris <briannorris@chromium.org>
Fixes: a6c50912 ("nvmem: Declare nvmem_cell_read() consistently")
Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 14ba9728
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册