aboutsummaryrefslogtreecommitdiff
path: root/regulator.c
AgeCommit message (Collapse)Author
2011-06-21Optimize the codeDaniel Lezcano
With this patch the content of the debugfs file is readen only when the 'refresh' button is hit and at the init of powerdebug. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Optimize the displayDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Cleanup the headersDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Factor out display codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15cleanup the headersDaniel Lezcano
Make some cleanup around the headers. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (6)Daniel Lezcano
Let's create some ops to be registered by the pm blocks to the display. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Rewrite the regulator code based on the treeDaniel Lezcano
Make the code consistent with the clocks and use the tree to build the regulators. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-04-04Pass numregulators paramter to regulator_read_infoDaniel Lezcano
The regulator_read_info does no longer depend no the global variable numregulators. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04pass numregulators parameter to regulator_print_infoDaniel Lezcano
The regulator_print_info does no longer rely on the numregulators global variable. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04pass regulators_info parameter to regulator_read_infoDaniel Lezcano
The regulator_read_info function does no longer rely on the regulators_info global variable. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04pass regulators_info parameter to read_info_from_direntDaniel Lezcano
The read_info_from_dirent does no longer rely on the regulators_info global variable. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04make regulator_init to return a regulators_info pointerDaniel Lezcano
The regulator_init function does no longer use the global defined function. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Pass regulators_info parameter to regulator_print_infoDaniel Lezcano
The objective is to make the regulators_info variable local to the main function. This first patch pass the regulators_info variable to the function instead of having this one relying on a global variable definition. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04browse /sys/class/regulator with a generic nameDaniel Lezcano
All the files found in the /sys/class/regulator directory should be regulators. Don't assume their name begin with 'regulator'. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04change regulator functions nameDaniel Lezcano
Move the corresponding functions to the right header file and rename the function with <subsystem>_function_name. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04change regulator init functionDaniel Lezcano
Move the corresponding function to the right header file and rename the function with <subsystem>_function_name. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-01-17copyright: remove IBM copyrightAmit Kucheria
According to https://wiki.linaro.org/Copyright, all work done by assignees is copyrighted to Linaro.
2011-01-12Mass whitespace fixupsAmit Kucheria
Get rid of blank lines, add spaces around operators, etc.
2010-12-02By default show all data in dump modeAmit Arora
2010-12-02Move around code to more logical destinationAmit Arora