Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Julia Lawall and committed by
Stephen Boyd
42134fa2 5170d55e

+5 -5
+5 -5
drivers/clk/tegra/cvb.c
··· 92 92 93 93 /** 94 94 * tegra_cvb_add_opp_table - build OPP table from Tegra CVB tables 95 - * @cvb_tables: array of CVB tables 96 - * @sz: size of the previously mentioned array 95 + * @dev: the struct device * for which the OPP table is built 96 + * @tables: array of CVB tables 97 + * @count: size of the previously mentioned array 97 98 * @process_id: process id of the HW module 98 99 * @speedo_id: speedo id of the HW module 99 100 * @speedo_value: speedo value of the HW module 100 - * @max_rate: highest safe clock rate 101 - * @opp_dev: the struct device * for which the OPP table is built 101 + * @max_freq: highest safe clock rate 102 102 * 103 103 * On Tegra, a CVB table encodes the relationship between operating voltage 104 104 * and safe maximal frequency for a given module (e.g. GPU or CPU). This 105 105 * function calculates the optimal voltage-frequency operating points 106 106 * for the given arguments and exports them via the OPP library for the 107 - * given @opp_dev. Returns a pointer to the struct cvb_table that matched 107 + * given @dev. Returns a pointer to the struct cvb_table that matched 108 108 * or an ERR_PTR on failure. 109 109 */ 110 110 const struct cvb_table *