PM / devfreq: tegra30: use designated initializers for tegra_actmon_emc_ratio
Subsystems (3)
PATCH 1/1 PM / devfreq: tegra30: use designated initializers for tegra_actmon_emc_ratio
Switch actmon_emc_ratios[] to the more modern and flexible designated initializers. This improves readability and allows struct fields to be reordered.
Signed-off-by Thorsten Blum <[email protected]>
--- drivers/devfreq/tegra30-devfreq.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/devfreq/tegra30-devfreq.c +7 -7
@@ -206,13 +206,13 @@ struct tegra_actmon_emc_ratio { };static const struct tegra_actmon_emc_ratio actmon_emc_ratios[] = { - {1400000 ,KHZ_MAX }, - {1200000 ,750000 }, - {1100000 ,600000 }, - {1000000 ,500000 }, - {800000 ,375000 }, - {500000 ,200000 }, - {250000 ,100000 }, + { .cpu_freq =1400000 , .emc_freq =KHZ_MAX }, + { .cpu_freq =1200000 , .emc_freq =750000 }, + { .cpu_freq =1100000 , .emc_freq =600000 }, + { .cpu_freq =1000000 , .emc_freq =500000 }, + { .cpu_freq =800000 , .emc_freq =375000 }, + { .cpu_freq =500000 , .emc_freq =200000 }, + { .cpu_freq =250000 , .emc_freq =100000 }, };static u32 actmon_readl (struct tegra_devfreq *tegra,u32 offset)
Signature · 1 line
2.51.0