]> git.itanic.dy.fi Git - linux-stable/commit
nvmem: core: move struct nvmem_cell_info to nvmem-provider.h
authorMichael Walle <michael@walle.cc>
Mon, 6 Feb 2023 13:43:47 +0000 (13:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 18:06:59 +0000 (19:06 +0100)
commitfbd03d27776c6121a483921601418e3c8f0ff37e
tree5ee9e3727278b93139d9520ada858c0f85f58cb6
parent5d8e6e6c10a3d37486d263b16ddc15991a7e4a88
nvmem: core: move struct nvmem_cell_info to nvmem-provider.h

struct nvmem_cell_info is used to describe a cell. Thus this should
really be in the nvmem-provider's header. There are two (unused) nvmem
access methods which use the nvmem_cell_info to describe the cell to be
accesses. One can argue, that they will create a cell before accessing,
thus they are both a provider and a consumer.

struct nvmem_cell_info will get used more and more by nvmem-providers,
don't force them to also include the consumer header, although they are
not.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230206134356.839737-14-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/nvmem-consumer.h
include/linux/nvmem-provider.h