diff mbox series

[v2,2/4] nvmem: Document type attribute

Message ID 20240623031752.353818-2-marex@denx.de
State Superseded
Headers show
Series [v2,1/4] nvmem: Replace spaces with tab in documentation | expand

Commit Message

Marek Vasut June 23, 2024, 3:15 a.m. UTC
Document a type attribute used by userspace to discern different types of
NVMEM devices. The implementation is already present, the ABI document is
missing, add it.

Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: linux-i2c@vger.kernel.org
---
V2: - New patch
---
 Documentation/ABI/stable/sysfs-bus-nvmem | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Alexandre Belloni June 23, 2024, 10:04 a.m. UTC | #1
On 23/06/2024 05:15:45+0200, Marek Vasut wrote:
> Document a type attribute used by userspace to discern different types of
> NVMEM devices. The implementation is already present, the ABI document is
> missing, add it.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>

Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

> ---
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Cc: linux-i2c@vger.kernel.org
> ---
> V2: - New patch
> ---
>  Documentation/ABI/stable/sysfs-bus-nvmem | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/ABI/stable/sysfs-bus-nvmem b/Documentation/ABI/stable/sysfs-bus-nvmem
> index 854bd11d72ac4..0e3a8492a1082 100644
> --- a/Documentation/ABI/stable/sysfs-bus-nvmem
> +++ b/Documentation/ABI/stable/sysfs-bus-nvmem
> @@ -20,3 +20,14 @@ Description:
>  		  ...
>  		  *
>  		  0001000
> +
> +What:		/sys/bus/nvmem/devices/.../type
> +Date:		November 2018
> +KernelVersion:	5.0
> +Contact:	Alexandre Belloni <alexandre.belloni@bootlin.com>
> +Description:
> +		This read-only attribute allows user to read the NVMEM
> +		device type. Supported types are "Unknown", "EEPROM",
> +		"OTP", "Battery backed", "FRAM".
> +		Note: This file is only present if CONFIG_NVMEM_SYSFS
> +		is enabled
> -- 
> 2.43.0
>
diff mbox series

Patch

diff --git a/Documentation/ABI/stable/sysfs-bus-nvmem b/Documentation/ABI/stable/sysfs-bus-nvmem
index 854bd11d72ac4..0e3a8492a1082 100644
--- a/Documentation/ABI/stable/sysfs-bus-nvmem
+++ b/Documentation/ABI/stable/sysfs-bus-nvmem
@@ -20,3 +20,14 @@  Description:
 		  ...
 		  *
 		  0001000
+
+What:		/sys/bus/nvmem/devices/.../type
+Date:		November 2018
+KernelVersion:	5.0
+Contact:	Alexandre Belloni <alexandre.belloni@bootlin.com>
+Description:
+		This read-only attribute allows user to read the NVMEM
+		device type. Supported types are "Unknown", "EEPROM",
+		"OTP", "Battery backed", "FRAM".
+		Note: This file is only present if CONFIG_NVMEM_SYSFS
+		is enabled