Re: [PATCH 04/13] cpufreq: qcom: Refactor the driver to make it easier to extend

2019-07-16 Thread Niklas Cassel
On Wed, Jul 10, 2019 at 12:00:26PM +0530, Viresh Kumar wrote: > On 05-07-19, 11:57, Niklas Cassel wrote: > > + drv->opp_tables = kcalloc(num_possible_cpus(), sizeof(*drv->opp_tables), > > + GFP_KERNEL); > > + if (!drv->opp_tables) { > > + ret = -ENOMEM; > >

Re: [PATCH 04/13] cpufreq: qcom: Refactor the driver to make it easier to extend

2019-07-09 Thread Viresh Kumar
On 05-07-19, 11:57, Niklas Cassel wrote: > + drv->opp_tables = kcalloc(num_possible_cpus(), sizeof(*drv->opp_tables), > + GFP_KERNEL); > + if (!drv->opp_tables) { > + ret = -ENOMEM; > + goto free_drv; > + } > > for_each_possi

Re: [PATCH 04/13] cpufreq: qcom: Refactor the driver to make it easier to extend

2019-07-07 Thread Ilia Lin
Reviewed-by: Ilia Lin On Fri, Jul 5, 2019 at 12:58 PM Niklas Cassel wrote: > > Refactor the driver to make it easier to extend in a later commit. > > Create a driver struct to collect all common resources, in order to make > it easier to free up all common resources. > Create a driver match_data

[PATCH 04/13] cpufreq: qcom: Refactor the driver to make it easier to extend

2019-07-05 Thread Niklas Cassel
Refactor the driver to make it easier to extend in a later commit. Create a driver struct to collect all common resources, in order to make it easier to free up all common resources. Create a driver match_data struct to make it easier to extend the driver with support for new features that might o