Re: [3/5] clk: divider: add divider_ro_round_rate helper

2018-01-17 Thread David Lechner
On 01/17/2018 11:47 AM, Jerome Brunet wrote: On Thu, 2018-01-11 at 17:08 -0600, David Lechner wrote: On 01/05/2018 11:09 AM, Jerome Brunet wrote: Like divider_round_rate, a couple a of driver are doing more or less the same operation to round the rate of the divider when it is read-only. We ca

Re: [3/5] clk: divider: add divider_ro_round_rate helper

2018-01-17 Thread Jerome Brunet
On Thu, 2018-01-11 at 17:08 -0600, David Lechner wrote: > On 01/05/2018 11:09 AM, Jerome Brunet wrote: > > Like divider_round_rate, a couple a of driver are doing more or less > > the same operation to round the rate of the divider when it is read-only. > > > > We can factor this code so let's pro

Re: [3/5] clk: divider: add divider_ro_round_rate helper

2018-01-11 Thread David Lechner
On 01/05/2018 11:09 AM, Jerome Brunet wrote: Like divider_round_rate, a couple a of driver are doing more or less the same operation to round the rate of the divider when it is read-only. We can factor this code so let's provide an helper function for this Perhaps you could also make use of th

[PATCH 3/5] clk: divider: add divider_ro_round_rate helper

2018-01-05 Thread Jerome Brunet
Like divider_round_rate, a couple a of driver are doing more or less the same operation to round the rate of the divider when it is read-only. We can factor this code so let's provide an helper function for this Signed-off-by: Jerome Brunet --- drivers/clk/clk-divider.c| 43