summaryrefslogtreecommitdiff
path: root/Documentation/hwmon/hwmon-kernel-api.rst
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-01-29 15:10:47 -0800
committerGuenter Roeck <linux@roeck-us.net>2023-02-03 07:30:11 -0800
commit12087a365f06eca4c3d9ec0de35728bc5215216d (patch)
tree78b12d6a4c97690668c163cc7a4e3abbb8653e5d /Documentation/hwmon/hwmon-kernel-api.rst
parenta6f7c5d0e72ea0000cc03ed2d26559658939b16f (diff)
Documentation: hwmon: correct spelling
Correct spelling problems for Documentation/hwmon/ as reported by codespell. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: Jean Delvare <jdelvare@suse.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: linux-hwmon@vger.kernel.org Link: https://lore.kernel.org/r/20230129231053.20863-4-rdunlap@infradead.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon/hwmon-kernel-api.rst')
-rw-r--r--Documentation/hwmon/hwmon-kernel-api.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/hwmon/hwmon-kernel-api.rst b/Documentation/hwmon/hwmon-kernel-api.rst
index 26cf55303c61..5451a6d4c874 100644
--- a/Documentation/hwmon/hwmon-kernel-api.rst
+++ b/Documentation/hwmon/hwmon-kernel-api.rst
@@ -57,7 +57,7 @@ register/unregister functions::
hwmon_device_register_with_groups registers a hardware monitoring device.
The first parameter of this function is a pointer to the parent device.
The name parameter is a pointer to the hwmon device name. The registration
-function wil create a name sysfs attribute pointing to this name.
+function will create a name sysfs attribute pointing to this name.
The drvdata parameter is the pointer to the local driver data.
hwmon_device_register_with_groups will attach this pointer to the newly
allocated hwmon device. The pointer can be retrieved by the driver using
@@ -360,7 +360,7 @@ functions is used.
The header file linux/hwmon-sysfs.h provides a number of useful macros to
declare and use hardware monitoring sysfs attributes.
-In many cases, you can use the exsting define DEVICE_ATTR or its variants
+In many cases, you can use the existing define DEVICE_ATTR or its variants
DEVICE_ATTR_{RW,RO,WO} to declare such attributes. This is feasible if an
attribute has no additional context. However, in many cases there will be
additional information such as a sensor index which will need to be passed