mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
nvmem: Fix return type of devm_nvmem_device_get() in kerneldoc
commitc69f37f655
upstream. devm_nvmem_device_get() returns an nvmem device, not an nvmem cell. Fixes:e2a5402ec7
("nvmem: Add nvmem_device based consumer apis.") Cc: stable <stable@kernel.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20240902142510.71096-3-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1f33d9f1d9
commit
3d1baf322a
|
@ -1253,13 +1253,13 @@ void nvmem_device_put(struct nvmem_device *nvmem)
|
||||||
EXPORT_SYMBOL_GPL(nvmem_device_put);
|
EXPORT_SYMBOL_GPL(nvmem_device_put);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* devm_nvmem_device_get() - Get nvmem cell of device form a given id
|
* devm_nvmem_device_get() - Get nvmem device of device form a given id
|
||||||
*
|
*
|
||||||
* @dev: Device that requests the nvmem device.
|
* @dev: Device that requests the nvmem device.
|
||||||
* @id: name id for the requested nvmem device.
|
* @id: name id for the requested nvmem device.
|
||||||
*
|
*
|
||||||
* Return: ERR_PTR() on error or a valid pointer to a struct nvmem_cell
|
* Return: ERR_PTR() on error or a valid pointer to a struct nvmem_device
|
||||||
* on success. The nvmem_cell will be freed by the automatically once the
|
* on success. The nvmem_device will be freed by the automatically once the
|
||||||
* device is freed.
|
* device is freed.
|
||||||
*/
|
*/
|
||||||
struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id)
|
struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user