hwmon: Document the use of devres functions
Subsystems (2)
Guenter Roeck
maintainerPATCH 1/1 hwmon: Document the use of devres functions
devres functions are the preferred means to allocate resources in hwmon drivers. Document it.
Signed-off-by Guenter Roeck <[email protected]>
--- Documentation/hwmon/submitting-patches | 3 +++ 1 file changed, 3 insertions(+)
Documentation/hwmon/submitting-patches +3 -0
@@ -70,6 +70,9 @@ increase the chances of your change being accepted. review more difficult. It may also result in code which is more complicated than necessary. Use inline functions or just regular functions instead. +* Use devres functions whenever possible to allocate resources. For rationale + and supported functions, please see Documentation/driver-model/devres.txt. + * If the driver has a detect function, make sure it is silent. Debug messages and messages printed after a successful detection are acceptable, but it must not print messages such as "Chip XXX not found/supported".
Signature · 7 lines
1.7.9.7 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 13 lines · Guenter Roeck
devres functions are the preferred means to allocate resources in hwmon drivers. Document it.
Signed-off-by Guenter Roeck <[email protected]>--- Documentation/hwmon/submitting-patches | 3 +++ 1 file changed, 3 insertions(+)Documentation/hwmon/submitting-patches +0
-0
Documentation/hwmon/submitting-patches increase the chances of your change being accepted. · line 78
Quoted 9 lines
Documentation/hwmon/submitting-patches +3
-0@@ -70,6 +70,9 @@ increase the chances of your change being accepted. review more difficult. It may also result in code which is more complicated than necessary. Use inline functions or just regular functions instead. +* Use devres functions whenever possible to allocate resources. For rationale + and supported functions, please see Documentation/driver-model/devres.txt. + * If the driver has a detect function, make sure it is silent. Debug messages and messages printed after a successful detection are acceptable, but it must not print messages such as "Chip XXX not found/supported".
Acked-by Jean Delvare <[email protected]>
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors