The following patchset does some cleanup and prepares the place for the multiple driver support.
We want to add an entry per cpu for the driver when the configuration defines the support for multiple cpuidle drivers. This patchset creates a single entry function for adding a cpuidle device to the sysfs where we will add the driver entry in the next patchset. In order to do that, the kobj handling is grouped in the sysfs.c file and the function prototype is changed.
In any case, the patchset cleans up and groups the code but does not change the behavior, this is why it is submitted as a separate patchset rather than join it with the multiple drivers support.
Daniel Lezcano (4): cpuidle - sysfs : change function parameter cpuidle - sysfs : move kobj initialization in the syfs file cpuidle - sysfs : change function name cpuidle - sysfs : move definition in the sysfs file
drivers/cpuidle/cpuidle.c | 19 ++++++---------- drivers/cpuidle/cpuidle.h | 10 +++----- drivers/cpuidle/sysfs.c | 52 ++++++++++++++++++++++++++++++++------------- include/linux/cpuidle.h | 7 ------ 4 files changed, 48 insertions(+), 40 deletions(-)