pxa3xx-cpufreq.c: Avoid using ARRAY_AND_SIZE(e) as a function argument
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 13 Aug 2013 13:02:25 +0000 (15:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Aug 2013 20:24:23 +0000 (22:24 +0200)
commit8ee3f8e038d4261f70940364415c0680f4014eb6
tree57f72cd127eeda0ec13a07b0b89034deae98cdde
parent4a511de96d692f2dfa126c10dda4e41636c0ef27
pxa3xx-cpufreq.c: Avoid using ARRAY_AND_SIZE(e) as a function argument

Replace ARRAY_AND_SIZE(e) in function argument position to avoid
hiding the arity of the called function.

The semantic match that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e,f;
@@

f(...,
- ARRAY_AND_SIZE(e)
+ e,ARRAY_SIZE(e)
  ,...)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/pxa3xx-cpufreq.c