Commit 42134fa2 authored by Julia Lawall's avatar Julia Lawall Committed by Stephen Boyd

clk: tegra: dfll: improve function-level documentation

Adjust variables to correspond to the names used in the parameter list of
the function.  Move the struct device * variable up to the place where it
appears in the parameter list.

Issue detected using Coccinelle (http://coccinelle.lip6.fr/)
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 5170d55e
...@@ -92,19 +92,19 @@ static int build_opp_table(struct device *dev, const struct cvb_table *table, ...@@ -92,19 +92,19 @@ static int build_opp_table(struct device *dev, const struct cvb_table *table,
/** /**
* tegra_cvb_add_opp_table - build OPP table from Tegra CVB tables * tegra_cvb_add_opp_table - build OPP table from Tegra CVB tables
* @cvb_tables: array of CVB tables * @dev: the struct device * for which the OPP table is built
* @sz: size of the previously mentioned array * @tables: array of CVB tables
* @count: size of the previously mentioned array
* @process_id: process id of the HW module * @process_id: process id of the HW module
* @speedo_id: speedo id of the HW module * @speedo_id: speedo id of the HW module
* @speedo_value: speedo value of the HW module * @speedo_value: speedo value of the HW module
* @max_rate: highest safe clock rate * @max_freq: highest safe clock rate
* @opp_dev: the struct device * for which the OPP table is built
* *
* On Tegra, a CVB table encodes the relationship between operating voltage * On Tegra, a CVB table encodes the relationship between operating voltage
* and safe maximal frequency for a given module (e.g. GPU or CPU). This * and safe maximal frequency for a given module (e.g. GPU or CPU). This
* function calculates the optimal voltage-frequency operating points * function calculates the optimal voltage-frequency operating points
* for the given arguments and exports them via the OPP library for the * for the given arguments and exports them via the OPP library for the
* given @opp_dev. Returns a pointer to the struct cvb_table that matched * given @dev. Returns a pointer to the struct cvb_table that matched
* or an ERR_PTR on failure. * or an ERR_PTR on failure.
*/ */
const struct cvb_table * const struct cvb_table *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment