Viresh Kumar
d5b73cd870
cpufreq: Use sizeof(*ptr) convetion for computing sizes
...
Chapter 14 of Documentation/CodingStyle says:
The preferred form for passing a size of a struct is the following:
p = kmalloc(sizeof(*p), ...);
The alternative form where struct name is spelled out hurts
readability and introduces an opportunity for a bug when the pointer
variable type is changed but the corresponding sizeof that is passed
to a memory allocator is not.
This wasn't followed consistently in drivers/cpufreq, let's make it
more consistent by always following this rule.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-08-07 23:34:10 +02:00
..
2013-08-07 23:34:10 +02:00
2013-04-10 13:19:26 +02:00
2013-05-22 12:43:33 +02:00
2013-06-24 18:18:58 +05:30
2013-05-12 14:04:15 +02:00
2013-04-10 13:19:25 +02:00
2013-06-04 14:25:59 +02:00
2013-08-07 23:34:10 +02:00
2013-08-07 23:34:09 +02:00
2013-08-07 23:34:10 +02:00
2013-08-07 23:34:10 +02:00
2013-08-07 23:34:09 +02:00
2013-08-07 23:34:09 +02:00
2013-08-07 23:34:10 +02:00
2013-06-21 01:06:34 +02:00
2013-06-05 13:51:29 +02:00
2013-04-02 15:26:32 +02:00
2013-08-07 23:34:10 +02:00
2013-04-10 13:19:25 +02:00
2013-04-10 13:19:25 +02:00
2013-06-24 18:18:58 +05:30
2013-07-14 19:36:57 -04:00
2013-08-07 23:34:10 +02:00
2013-04-02 15:24:00 +02:00
2013-02-21 14:58:40 -08:00
2013-02-21 14:58:40 -08:00
2013-02-21 14:58:40 -08:00
2013-04-22 00:24:37 +02:00
2013-08-07 23:34:10 +02:00
2013-02-21 14:58:40 -08:00
2013-08-07 23:34:09 +02:00
2013-08-07 23:34:10 +02:00
2013-03-04 14:23:11 +01:00
2013-08-07 23:34:10 +02:00
2013-06-24 18:19:00 +05:30
2013-04-08 13:02:31 +02:00
2013-07-23 04:18:28 +02:00
2013-05-12 14:04:16 +02:00
2013-07-03 14:35:40 -07:00
2013-06-27 21:46:45 +02:00
2013-06-18 13:53:11 +05:30
2013-06-04 14:25:59 +02:00
2013-07-14 19:36:57 -04:00
2013-07-14 19:36:57 -04:00
2013-07-14 19:36:57 -04:00
2013-06-04 14:25:59 +02:00
2013-07-26 01:06:43 +02:00
2013-04-02 15:24:00 +02:00
2013-07-14 19:36:57 -04:00
2013-06-04 14:25:59 +02:00
2013-06-07 13:44:39 +02:00
2013-06-24 13:26:39 +02:00
2013-06-07 13:44:39 +02:00
2013-08-07 23:34:10 +02:00
2013-06-04 14:25:59 +02:00
2013-08-07 23:34:10 +02:00
2011-05-19 18:51:07 -04:00
2013-08-07 23:34:10 +02:00
2012-09-09 22:05:30 +02:00
2013-04-10 13:19:26 +02:00
2013-04-10 13:19:26 +02:00
2013-06-04 14:25:59 +02:00
2013-04-10 13:19:26 +02:00
2013-06-05 14:19:28 +02:00
2013-06-04 14:25:59 +02:00
2013-06-04 14:25:59 +02:00
2013-05-20 23:04:28 +09:00
2013-08-07 23:34:10 +02:00
2013-06-27 21:47:03 +02:00
2013-05-20 23:04:28 +09:00
2013-05-20 23:04:28 +09:00
2013-07-04 11:40:58 -07:00
2013-05-20 23:04:28 +09:00
2013-04-02 15:24:00 +02:00
2013-04-10 13:19:24 +02:00
2013-04-10 13:19:24 +02:00
2013-06-04 14:25:59 +02:00
2013-04-10 13:19:25 +02:00
2013-08-07 23:34:10 +02:00
2013-08-07 23:34:10 +02:00
2013-06-04 14:25:59 +02:00
2013-06-04 14:25:59 +02:00
2013-04-02 15:24:00 +02:00
2012-01-26 16:49:06 -08:00
2011-05-19 18:51:07 -04:00
2013-04-02 15:24:00 +02:00
2013-06-27 21:47:03 +02:00
2013-04-10 13:19:26 +02:00