[PATCH V3 2/9] cpufreq: blackfin: Use 'index' only to index into policy->freq_table

2016-06-03 Thread Viresh Kumar
Later patches would make changes in cpufreq core, after which policy->freq_table may be reordered by cpufreq core and it wouldn't be safe anymore to use 'index' for any other local arrays. To prepare for that, use policy->freq_table[index].driver_data for other driver specific usage of 'index'.

[PATCH V3 2/9] cpufreq: blackfin: Use 'index' only to index into policy->freq_table

2016-06-03 Thread Viresh Kumar
Later patches would make changes in cpufreq core, after which policy->freq_table may be reordered by cpufreq core and it wouldn't be safe anymore to use 'index' for any other local arrays. To prepare for that, use policy->freq_table[index].driver_data for other driver specific usage of 'index'.