drivers: nvmem: Export nvmem_add_cells()
authorAndrew Lunn <andrew@lunn.ch>
Fri, 11 May 2018 11:06:56 +0000 (12:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 14:20:48 +0000 (16:20 +0200)
commitb3db17e4b864e46ad150ebef69c0e0130a1c5fca
treeaf1a8b70ae44d4f73aa91c98e33489651cc2a418
parent40fe78a242dd39f36e51907129831500f90d7d5b
drivers: nvmem: Export nvmem_add_cells()

Not all platforms use device tree. It is useful to be able to add
cells to a NVMEM device from code. Export nvmem_add_cells() so making
this possible.

This required changing the parameters a bit, so that just the cells
and the number of cells are passed, not the whole nvmem config
structure.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c
include/linux/nvmem-provider.h