aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-08add a tree function to return a list of elementsDaniel Lezcano
This patch provides a function returning all the node of the tree matching the substring passed a parameter. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08make the mainloop immune against the signalsDaniel Lezcano
... needed at least for gdb ... Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08add a function to browse at reverse order the treeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused 'verbose' optionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused code and parameter for clock dump functionDaniel Lezcano
the verbose option is unused. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused parameter 'options->dump'Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused parameterDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08use 'find' tree functionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08add 'find' function for the treeDaniel Lezcano
That will be useful to search for a specific node name. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08Remove old clock tree dump codeDaniel Lezcano
It is replaced by the tree code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08use the tree code to dump the clocksDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08function helper to read the filesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08tree structure abstraction for directory hierarchiesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08refresh the windows instead of killing them and recreateDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08fix segfault when the default window is not the clockDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused variableDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08provide a clock allocatorDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08reorganize code to prevent forward declarationDaniel Lezcano
That will cleanup the powerdebug header because these functions are used in the clock code only. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08move clock_info structure definitionDaniel Lezcano
Let's make this structure private Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-05-24compute next and previous window with modulo arithmeticDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-05-24make the keyscan code human readableDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-05-24fix display when the default display is not the clockDaniel Lezcano
Due to an internal error in clocks.c I am investigating, I am temporarly changing the test in the mainloop to have the clock being initialized when the option is set. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-05-24nit : fix output hexadecimal formatDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-05-24Remove pointless compiler flagsDaniel Lezcano
-Wall already set most the warning flags Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-04-04Don't exit when the regulator init failsDaniel Lezcano
We just disable the option Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Make some variable staticDaniel Lezcano
These variable are only used in the sensor.c file. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04create a specific function for displayDaniel Lezcano
In order to have the code more clear, let's create a function for the display like what we did with the dump function. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Remove pointless function definitionsDaniel Lezcano
By moving the functions in the right order in the file, we can get ride of their definitions and we can set them static. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04simplify clock_init functionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Cleanup the code by removing weird initializationDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Replace colors definition by enumDaniel Lezcano
and reduce the scope by moving it to the c file. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Do more error check in display_init()Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04mindless - change function name for consistencyDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Unify the init function name for displayDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Remove unused variables and definitionsDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Return an error instead of exiting deeper in the codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Remove unused clk_name variableDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Reduce dump usageDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04improve function to read the fileDaniel Lezcano
Use a simple function to read the content of the file. Fix the format of the flags which were always zero by reading in heaxdecimal mode. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04change debugfs finder functionDaniel Lezcano
Change the debugfs_locate_mpoint function to be nicer and more efficient. Another effect is that fixes a segmentation fault when calling powerdebug --dump Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Remove duplicate findparent variableDaniel Lezcano
If we allocate a clock name, that means we can just check with the clock name pointer, no need of the findparent boolean. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Further reduce dump variable usageDaniel Lezcano
The modified function are used on the display mode context, we no longer need to pass the dump option. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Reduce the usage of the dump variableDaniel Lezcano
When we reach the mainloop, that means we are not in dump-mode, so we can remove the test with the dump mode. In the other side, let's use the dump function when we are in dump-mode. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04split dump and displayDaniel Lezcano
Let's create a specific function to dump instead of managing with ncurses Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>Index: powerdebug/powerdebug.c Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Make highlighted_row variable staticDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04make regulators_info and numregulators local to mainDaniel Lezcano
Kill the global variables and make them local to the main function. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04make numregulators static in powerdebug.cDaniel Lezcano
Reduce the scope of the numregulators to powerdebug.c Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Pass numregulators paramter to show_regulator_infoDaniel Lezcano
The show_regulator_info function 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 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>