Skip to content

Commit c69f37f

Browse files
geertugregkh
authored andcommitted
nvmem: Fix return type of devm_nvmem_device_get() in kerneldoc
devm_nvmem_device_get() returns an nvmem device, not an nvmem cell. Fixes: e2a5402 ("nvmem: Add nvmem_device based consumer apis.") Cc: stable <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8679e8b commit c69f37f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/nvmem/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,13 +1276,13 @@ void nvmem_device_put(struct nvmem_device *nvmem)
12761276
EXPORT_SYMBOL_GPL(nvmem_device_put);
12771277

12781278
/**
1279-
* devm_nvmem_device_get() - Get nvmem cell of device form a given id
1279+
* devm_nvmem_device_get() - Get nvmem device of device form a given id
12801280
*
12811281
* @dev: Device that requests the nvmem device.
12821282
* @id: name id for the requested nvmem device.
12831283
*
1284-
* Return: ERR_PTR() on error or a valid pointer to a struct nvmem_cell
1285-
* on success. The nvmem_cell will be freed by the automatically once the
1284+
* Return: ERR_PTR() on error or a valid pointer to a struct nvmem_device
1285+
* on success. The nvmem_device will be freed by the automatically once the
12861286
* device is freed.
12871287
*/
12881288
struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id)

0 commit comments

Comments
 (0)