summaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon/hwmon-kernel-api.rst
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-01-30 00:10:47 +0100
committerGuenter Roeck <linux@roeck-us.net>2023-02-03 16:30:11 +0100
commit12087a365f06eca4c3d9ec0de35728bc5215216d (patch)
tree78b12d6a4c97690668c163cc7a4e3abbb8653e5d /Documentation/hwmon/hwmon-kernel-api.rst
parenthwmon: (pmbus/max16601) Add support for MAX16600 (diff)
downloadlinux-12087a365f06eca4c3d9ec0de35728bc5215216d.tar.xz
linux-12087a365f06eca4c3d9ec0de35728bc5215216d.zip
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