Skip to contentSkip to conversation

hwmon: Document the use of devres functions

PATCH In review Guenter Roeck 2 participants 2 messages Jun 17, 2012

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 1/1 hwmon: Document the use of devres functions

devres functions are the preferred means to allocate resources in hwmon drivers. Document it.

---
 Documentation/hwmon/submitting-patches |    3 +++
 1 file changed, 3 insertions(+)
Documentation/hwmon/submitting-patches +3 -0
index 86f42e8..790f774 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Guenter Roeck

devres functions are the preferred means to allocate resources in hwmon drivers. Document it.

---
 Documentation/hwmon/submitting-patches |    3 +++
 1 file changed, 3 insertions(+)
Documentation/hwmon/submitting-patches +0 -0
index 86f42e8..790f774 100644

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".
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors