6d49a253a44f5e37903a52c3a5ab3ca934b062d5
[openwrt/staging/xback.git] /
1 From c69f37f6559a8948d70badd2b179db7714dedd62 Mon Sep 17 00:00:00 2001
2 From: Geert Uytterhoeven <geert+renesas@glider.be>
3 Date: Mon, 2 Sep 2024 15:25:09 +0100
4 Subject: [PATCH] nvmem: Fix return type of devm_nvmem_device_get() in
5 kerneldoc
6
7 devm_nvmem_device_get() returns an nvmem device, not an nvmem cell.
8
9 Fixes: e2a5402ec7c6d044 ("nvmem: Add nvmem_device based consumer apis.")
10 Cc: stable <stable@kernel.org>
11 Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
12 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
13 Link: https://lore.kernel.org/r/20240902142510.71096-3-srinivas.kandagatla@linaro.org
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 ---
16 drivers/nvmem/core.c | 6 +++---
17 1 file changed, 3 insertions(+), 3 deletions(-)
18
19 --- a/drivers/nvmem/core.c
20 +++ b/drivers/nvmem/core.c
21 @@ -1275,13 +1275,13 @@ void nvmem_device_put(struct nvmem_devic
22 EXPORT_SYMBOL_GPL(nvmem_device_put);
23
24 /**
25 - * devm_nvmem_device_get() - Get nvmem cell of device form a given id
26 + * devm_nvmem_device_get() - Get nvmem device of device form a given id
27 *
28 * @dev: Device that requests the nvmem device.
29 * @id: name id for the requested nvmem device.
30 *
31 - * Return: ERR_PTR() on error or a valid pointer to a struct nvmem_cell
32 - * on success. The nvmem_cell will be freed by the automatically once the
33 + * Return: ERR_PTR() on error or a valid pointer to a struct nvmem_device
34 + * on success. The nvmem_device will be freed by the automatically once the
35 * device is freed.
36 */
37 struct nvmem_device *devm_nvmem_device_get(struct device *dev, const char *id)