kernel-fxtec-pro1x/drivers/nvmem
Srinivas Kandagatla 434446e794 BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig
Many nvmem providers are not very keen on having default sysfs
nvmem entry, as most of the usecases for them are inside kernel
itself. And in some cases read/writes to some areas in nvmem are
restricted and trapped at secure monitor level, so accessing them
from userspace would result in board reboots.

This patch adds new NVMEM_SYSFS Kconfig to make binary sysfs entry
an optional one. This provision will give more flexibility to users.
This patch also moves existing sysfs code to a new file so that its
not compiled in when its not really required.

Bug: 154188491
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Gaurav Kohli <gkohli@codeaurora.org>
Tested-by: Gaurav Kohli <gkohli@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ae0c2d725512f32a0d1a25f0cf2f07616d33a72e)
Signed-off-by: Will McVicker <willmcvicker@google.com>
[willmcvicker: resolved trivial merge conflicts]
Change-Id: I648edb8d43fc7c2437c415b999c41657a6d11554
2020-04-16 12:19:27 -07:00
..
bcm-ocotp.c nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly 2018-03-14 19:28:14 +01:00
core.c BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
imx-iim.c nvmem: imx-iim: Do not use "&pdev->dev" explicitly 2018-03-14 19:28:14 +01:00
imx-ocotp.c nvmem: imx-ocotp: Change TIMING calculation to u-boot algorithm 2020-01-27 14:50:58 +01:00
Kconfig BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
lpc18xx_eeprom.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
lpc18xx_otp.c nvmem: lpc18xx_otp: Convert to use devm_nvmem_register() 2018-03-14 19:28:14 +01:00
Makefile BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
meson-efuse.c nvmem: meson-efuse: add write support 2018-05-14 16:20:48 +02:00
meson-mx-efuse.c nvmem: meson-mx-efuse: Convert to use devm_nvmem_register() 2018-03-14 19:28:14 +01:00
mtk-efuse.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
mxs-ocotp.c nvmem: set nvmem->owner to nvmem->dev->driver->owner if unset 2017-11-08 13:54:17 +01:00
nvmem-sysfs.c BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
nvmem.h BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
qfprom.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
rave-sp-eeprom.c nvmem: rave-sp-eeprom: Remove VLA usage 2018-07-07 17:30:46 +02:00
rockchip-efuse.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
sc27xx-efuse.c nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
snvs_lpgpr.c nvmem: add i.MX7 support to snvs-lpgpr 2018-03-14 19:28:14 +01:00
sunxi_sid.c nvmem: sunxi_sid: Support SID on A83T and H5 2019-06-15 11:54:07 +02:00
uniphier-efuse.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
vf610-ocotp.c nvmem: vf610-ocotp: Do not use "&pdev->dev" explicitly 2018-03-14 19:28:14 +01:00