nvmem: add new config option
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 30 Nov 2018 11:53:25 +0000 (11:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Dec 2018 14:45:46 +0000 (15:45 +0100)
commit517f14d9cf3533d5ab4fded195ab6f80a92e378f
tree2ad0f143fd8ed778fbb83ca30baeac4dc1c97608
parenta8b44d5d2e38e94e4c20a3fba294c3375753b469
nvmem: add new config option

We want to add nvmem support for MTD. TI DaVinci is the first platform
that will be using it, but only in non-DT mode. In order not to
introduce any new interface to supporting of which we would have to
commit - add a new config option that tells nvmem not to use the DT
node of the parent device.

This way we won't be creating nvmem devices corresponding with MTD
partitions defined in device tree. By default MTD will set this new
field to true.

Once a set of bindings for MTD nvmem cells is agreed upon, we'll be
able to remove this option.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.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