docs: hwmon: Use file modes explicitly
Subsystems (2)
PATCH 1/1 docs: hwmon: Use file modes explicitly
As stated in the mainling list[1] and by checkpatch output, the file modes for is_visible_func should be returned explicitly. Change that in the documentation to avoid confusion.
[1]https://lore.kernel.org/linux-hwmon/[email protected]/
Signed-off-by Joaquín Ignacio Aramendía <[email protected]>
--- Documentation/hwmon/hwmon-kernel-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/hwmon/hwmon-kernel-api.rst +1 -1
@@ -299,7 +299,7 @@ Parameters: Return value: The file mode for this attribute. Typically, this will be 0 (the - attribute will not be created), S_IRUGO, or 'S_IRUGO | S_IWUSR'. + attribute will not be created), 0444, or 0644. ::
Signature · 1 line
2.38.1
Quoted 7 lines · Joaquín Ignacio Aramendía
As stated in the mainling list[1] and by checkpatch output, the file modes for
is_visible_funcshould be returned explicitly. Change that in the documentation to avoid confusion.[1]https://lore.kernel.org/linux-hwmon/[email protected]/
Signed-off-by Joaquín Ignacio Aramendía <[email protected]>
Applied to hwmon-next.
Thanks,
Guenter
Quoted 17 lines
--- Documentation/hwmon/hwmon-kernel-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/hwmon/hwmon-kernel-api.rst +1
-1@@ -299,7 +299,7 @@ Parameters: Return value: The file mode for this attribute. Typically, this will be 0 (the - attribute will not be created), S_IRUGO, or 'S_IRUGO | S_IWUSR'. + attribute will not be created), 0444, or 0644. ::