diff options
author | Michael Walle <michael@walle.cc> | 2023-02-06 13:43:50 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-06 19:06:59 +0100 |
commit | 50014d659617dc58780a5d31ceb76c82779a9d8b (patch) | |
tree | e1f10ef68ab8aad2691bb58708ebe86f7ee1a908 /drivers/regulator/mt6380-regulator.c | |
parent | 2ded6830d376d5e7bf43d59f7f7fdf1a59abc676 (diff) |
nvmem: core: use nvmem_add_one_cell() in nvmem_add_cells_from_of()
Convert nvmem_add_cells_from_of() to use the new nvmem_add_one_cell().
This will remove duplicate code and it will make it possible to add a
hook to a nvmem layout in between, which can change fields before the
cell is finally added.
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-17-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/regulator/mt6380-regulator.c')
0 files changed, 0 insertions, 0 deletions