]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvmem: Move and rename ->fixup_cell_info()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Dec 2023 11:15:31 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:10:47 +0000 (04:10 -0800)
commita0ee898a5024f12572e4ce45202df9b149dadc05
tree6988acdfad2c56aff34a8e85bdb26bc791097543
parent276dae17ad9757c3813d9e736a0210f05ccdf8b7
nvmem: Move and rename ->fixup_cell_info()

[ Upstream commit 1172460e716784ac7e1049a537bdca8edbf97360 ]

This hook is meant to be used by any provider and instantiating a layout
just for this is useless. Let's instead move this hook to the nvmem
device and add it to the config structure to be easily shared by the
providers.

While at moving this hook, rename it ->fixup_dt_cell_info() to clarify
its main intended purpose.

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-6-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 391b06ecb63e ("nvmem: imx-ocotp-ele: fix MAC address byte order")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvmem/core.c
drivers/nvmem/imx-ocotp.c
drivers/nvmem/internals.h
drivers/nvmem/mtk-efuse.c
include/linux/nvmem-provider.h