From dd0d1996066dbce99b2ba0679b5ef69a89a3886a Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sat, 16 Jun 2012 07:33:52 -0700 Subject: [PATCH] --- yaml --- r: 316003 b: refs/heads/master c: 3fafb0ce92f13d14ba1c1340ac185e5c78fc7eae h: refs/heads/master i: 316001: d1ec545db09c577f46466dd1a561c47b001a0d17 315999: ed14daf539225b89bd140709ab6a57413b404433 v: v3 --- [refs] | 2 +- trunk/Documentation/hwmon/submitting-patches | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c3cf2feb5cd2..396ad534aa6e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d00985f3dd5339eb3068e53f5704ae007ee62f90 +refs/heads/master: 3fafb0ce92f13d14ba1c1340ac185e5c78fc7eae diff --git a/trunk/Documentation/hwmon/submitting-patches b/trunk/Documentation/hwmon/submitting-patches index 86f42e8e9e49..790f774a3032 100644 --- a/trunk/Documentation/hwmon/submitting-patches +++ b/trunk/Documentation/hwmon/submitting-patches @@ -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".