Re: [PATCH] cpuidle : fixup device.h header in cpuidle.h

2012-10-30 Thread Rafael J. Wysocki
On Monday, October 29, 2012 03:48:40 PM Daniel Lezcano wrote: > 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 fix

[PATCH] cpuidle : fixup device.h header in cpuidle.h

2012-10-29 Thread Daniel Lezcano
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 fix this by moving the header inclusion to sysfs.c and adding a forward declarat