]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: fixup device.h header in cpuidle.h
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 31 Oct 2012 00:09:02 +0000 (01:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:34:21 +0000 (00:34 +0100)
commit7d6d58fb8e21b5f4ae9a8e6b0c845bf47cb00080
tree9b1116413c21e9df6caed7de64c36daa49484d2a
parentc27624dc14629b6e6fd39e295cc145d57783c193
cpuidle: fixup device.h header in cpuidle.h

The "struct device" is only used in sysfs.c.

The other .c files including the private header "cpuidle.h"
do not need to pull the entire headers tree from there as they
don't manipulate the "struct device".

This patch fixes this by moving the header inclusion to sysfs.c
and adding a forward declaration for the struct device.

The number of lines generated by the preprocesor:
Without this patch : 17269 loc
With this patch : 16446 loc

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.h
drivers/cpuidle/sysfs.c