diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2020-03-25 12:21:15 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-25 13:45:09 +0100 |
commit | e6de179d7a88b833ccadd18da5099d435acdac65 (patch) | |
tree | b230683ade643df91eed6a1b6c16a04b8f8a0983 /drivers/nvmem/core.c | |
parent | b83f68776b0493bd049b77ce8004e9efdd21d2e8 (diff) | |
download | linux-e6de179d7a88b833ccadd18da5099d435acdac65.tar.gz linux-e6de179d7a88b833ccadd18da5099d435acdac65.tar.bz2 linux-e6de179d7a88b833ccadd18da5099d435acdac65.zip |
nvmem: core: add root_only member to nvmem device struct
As we are planning to move to use sysfs is_bin_visible callback,
having root_only as part of nvmem_device will help decide correct
permissions.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200325122116.15096-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/core.c')
-rw-r--r-- | drivers/nvmem/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 77d890d3623d..acf75939df4d 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -377,6 +377,7 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config) nvmem->dev.type = &nvmem_provider_type; nvmem->dev.bus = &nvmem_bus_type; nvmem->dev.parent = config->dev; + nvmem->root_only = config->root_only; nvmem->priv = config->priv; nvmem->type = config->type; nvmem->reg_read = config->reg_read; |