summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/layouts/sl28vpd.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-12-15 11:15:30 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-15 13:30:07 +0100
commit1b7c298a4ecbc28cc6ee94005734bff55eb83d22 (patch)
tree5e20fc16648340d462d6d279a8c6fa26fa186697 /drivers/nvmem/layouts/sl28vpd.c
parentec9c08a1cb8dc5e8e003f95f5f62de41dde235bb (diff)
downloadlinux-stable-1b7c298a4ecbc28cc6ee94005734bff55eb83d22.tar.gz
linux-stable-1b7c298a4ecbc28cc6ee94005734bff55eb83d22.tar.bz2
linux-stable-1b7c298a4ecbc28cc6ee94005734bff55eb83d22.zip
nvmem: Simplify the ->add_cells() hook
The layout entry is not used and will anyway be made useless by the new layout bus infrastructure coming next, so drop it. While at it, clarify the kdoc entry. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20231215111536.316972-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/layouts/sl28vpd.c')
-rw-r--r--drivers/nvmem/layouts/sl28vpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvmem/layouts/sl28vpd.c b/drivers/nvmem/layouts/sl28vpd.c
index 05671371f631..26c7cf21b523 100644
--- a/drivers/nvmem/layouts/sl28vpd.c
+++ b/drivers/nvmem/layouts/sl28vpd.c
@@ -80,8 +80,7 @@ static int sl28vpd_v1_check_crc(struct device *dev, struct nvmem_device *nvmem)
return 0;
}
-static int sl28vpd_add_cells(struct device *dev, struct nvmem_device *nvmem,
- struct nvmem_layout *layout)
+static int sl28vpd_add_cells(struct device *dev, struct nvmem_device *nvmem)
{
const struct nvmem_cell_info *pinfo;
struct nvmem_cell_info info = {0};