提交 f1728415 编写于 作者: G Guenter Roeck

hwmon: Update documentation to clarify rules for the 'name' attribute

Clarify that the name attribute must report a valid name, and the rules
for valid names. Also clarify that the name parameter must be provided
for all supported API functions.
Reviewed-by: NJean Delvare <jdelvare@suse.de>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 8353863a
...@@ -89,6 +89,10 @@ the call to devm_hwmon_device_register_with_groups or ...@@ -89,6 +89,10 @@ the call to devm_hwmon_device_register_with_groups or
hwmon_device_register_with_info and if the automatic (device managed) hwmon_device_register_with_info and if the automatic (device managed)
removal would be too late. removal would be too late.
All supported hwmon device registration functions only accept valid device
names. Device names including invalid characters (whitespace, '*', or '-')
will be rejected. The 'name' parameter is mandatory.
Using devm_hwmon_device_register_with_info() Using devm_hwmon_device_register_with_info()
-------------------------------------------- --------------------------------------------
......
...@@ -86,8 +86,9 @@ given driver if the chip has the feature. ...@@ -86,8 +86,9 @@ given driver if the chip has the feature.
name The chip name. name The chip name.
This should be a short, lowercase string, not containing This should be a short, lowercase string, not containing
spaces nor dashes, representing the chip name. This is whitespace, dashes, or the wildcard character '*'.
the only mandatory attribute. This attribute represents the chip name. It is the only
mandatory attribute.
I2C devices get this attribute created automatically. I2C devices get this attribute created automatically.
RO RO
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册