linux-sg2042/drivers/nvmem
Srinivas Kandagatla ae0c2d7255 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.

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>
2019-04-25 19:44:33 +02:00
..
Kconfig nvmem: core: add NVMEM_SYSFS Kconfig 2019-04-25 19:44:33 +02:00
Makefile nvmem: core: add NVMEM_SYSFS Kconfig 2019-04-25 19:44:33 +02:00
bcm-ocotp.c nvmem: bcm-ocotp: Add ACPI support to BCM OCOTP 2019-01-31 16:24:14 +01:00
core.c nvmem: core: add NVMEM_SYSFS Kconfig 2019-04-25 19:44:33 +02:00
imx-iim.c nvmem: imx-iim: use devm_platform_ioremap_resource() to simplify code 2019-04-25 19:43:13 +02:00
imx-ocotp.c nvmem: imx-ocotp: use devm_platform_ioremap_resource() to simplify code 2019-04-25 19:43:12 +02:00
lpc18xx_eeprom.c nvmem: lpc18xx_eeprom: remove unused variable 2018-10-15 15:56:15 +02:00
lpc18xx_otp.c nvmem: lpc18xx_otp: Convert to use devm_nvmem_register() 2018-03-14 19:28:14 +01:00
meson-efuse.c nvmem: meson-efuse: add peripheral clock 2018-12-06 15:45:46 +01: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: mxs-ocotp: use devm_platform_ioremap_resource() to simplify code 2019-04-25 19:43:12 +02:00
nvmem-sysfs.c nvmem: core: add NVMEM_SYSFS Kconfig 2019-04-25 19:44:33 +02:00
nvmem.h nvmem: core: add NVMEM_SYSFS Kconfig 2019-04-25 19:44:33 +02: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: sc27xx: Convert nvmem offset to block index 2019-01-31 16:24:14 +01:00
snvs_lpgpr.c nvmem: add i.MX7 support to snvs-lpgpr 2018-03-14 19:28:14 +01:00
stm32-romem.c nvmem: stm32: add support for STM32MP15 BSEC to control OTP data 2019-04-25 19:43:12 +02:00
sunxi_sid.c nvmem: sunxi_sid: Support SID on H6 2019-04-25 19:43:13 +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
zynqmp_nvmem.c nvmem: zynqmp: Added zynqmp nvmem firmware driver 2019-02-05 13:23:22 +01:00