/openbmc/linux/drivers/cpufreq/ |
H A D | gx-suspmod.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | sparc-us3-cpufreq.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | sparc-us2e-cpufreq.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | pmac64-cpufreq.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | ia64-acpi-cpufreq.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | powernow-k7.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | e_powersaver.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | powernow-k8.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | cpufreq_stats.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | cpufreq_conservative.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | cpufreq_ondemand.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | acpi-cpufreq.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|
H A D | cpufreq.c | diff d5b73cd870e2b049ef566aec2791dbf5fd26a7ec Tue Aug 06 12:23:06 CDT 2013 Viresh Kumar <viresh.kumar@linaro.org> 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>
|