Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c26bbb3c authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Greg Kroah-Hartman
Browse files

Documentation/ABI: document the nvmem sysfs files



NVMEM has been in kernel since v4.2 but the ABI document was missing
since then. userspace interface did not change since then and seems
stable, so this patch documents the nvmem ABI.

Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 917c8c25
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
What:		/sys/bus/nvmem/devices/.../nvmem
Date:		July 2015
KernelVersion:  4.2
Contact:	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Description:
		This file allows user to read/write the raw NVMEM contents.
		Permissions for write to this file depends on the nvmem
		provider configuration.

		ex:
		hexdump /sys/bus/nvmem/devices/qfprom0/nvmem

		0000000 0000 0000 0000 0000 0000 0000 0000 0000
		*
		00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
		0000000 0000 0000 0000 0000 0000 0000 0000 0000
		...
		*
		0001000
+1 −0
Original line number Diff line number Diff line
@@ -9466,6 +9466,7 @@ M: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
S:	Maintained
F:	drivers/nvmem/
F:	Documentation/devicetree/bindings/nvmem/
F:	Documentation/ABI/stable/sysfs-bus-nvmem
F:	include/linux/nvmem-consumer.h
F:	include/linux/nvmem-provider.h