msm: clock: Invert debugfs directory layout
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 27 Jan 2011 00:20:55 +0000 (16:20 -0800)
committerDavid Brown <davidb@codeaurora.org>
Fri, 28 Jan 2011 19:20:49 +0000 (11:20 -0800)
commit6e6d9b5bec5b27164126894c452853e4cac19b15
treeb1ae787945fe1b540b63be6cef6af8ad5349311c
parentd64560fe3e9bf64b2050ceeb6b6946ba2a4efda0
msm: clock: Invert debugfs directory layout

There are currently 3 separate directories for clock debugging in
debugfs: clk_enable, clk_rate, and clk_local. Each of these
directories contains a list of clocks. This is rather annoying
when you are focusing on one clock and want to enable/disable it
and then check its rate. You either have to cd to the other
directory or cat ../clk_rate/<clk>.

Invert the layout so that there is one clock directory containing
a directory for each clock. Inside each respective clock
directory place an enable, rate, and is_local file relating to
the clk_enable, clk_disable, and clk_local directories that exist
today.

Reviewed-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/clock-debug.c