On 27 May 2014 05:02, Rafael J. Wysocki rjw@rjwysocki.net wrote:
Do you actually use cpu anywere in this function for anything other than just accessing cpu->dev? If not, why not to pass cpu->dev to it and move it somewhere in the OPP core?
We are also using it for cpu->dev_id, but that's not so important. This routine wouldn't have existed if you wouldn't have asked for it. It is just a wrapper over of_init_opp_table, which also has a dummy implementation when its not supported.
So, it might not be worth enough for any other code to use it. :) And so I added it here.
Let me know how/where do you want it and I will resend it quickly.