434446e794
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 |
||
---|---|---|
.. | ||
firewire-cdev | ||
o2cb | ||
syscalls | ||
sysfs-acpi-pmprofile | ||
sysfs-bus-firewire | ||
sysfs-bus-nvmem | ||
sysfs-bus-usb | ||
sysfs-bus-vmbus | ||
sysfs-bus-w1 | ||
sysfs-bus-xen-backend | ||
sysfs-class-backlight | ||
sysfs-class-infiniband | ||
sysfs-class-rfkill | ||
sysfs-class-tpm | ||
sysfs-class-ubi | ||
sysfs-class-udc | ||
sysfs-devices | ||
sysfs-devices-node | ||
sysfs-devices-system-cpu | ||
sysfs-devices-system-xen_memory | ||
sysfs-driver-aspeed-vuart | ||
sysfs-driver-dma-ioatdma | ||
sysfs-driver-ib_srp | ||
sysfs-driver-mlxreg-io | ||
sysfs-driver-qla2xxx | ||
sysfs-driver-usb-usbtmc | ||
sysfs-driver-w1_ds28e04 | ||
sysfs-driver-w1_ds28ea00 | ||
sysfs-firmware-efi-vars | ||
sysfs-firmware-opal-dump | ||
sysfs-firmware-opal-elog | ||
sysfs-fs-orangefs | ||
sysfs-hypervisor-xen | ||
sysfs-module | ||
sysfs-transport-srp | ||
thermal-notification | ||
vdso |