Re: [PATCH 1/2] regulator: core: Optimize _regulator_do_set_voltage if voltage does not change

2013-02-08 Thread Mark Brown
On Wed, Feb 06, 2013 at 11:09:48AM +0800, Axel Lin wrote: > Optimize _regulator_do_set_voltage() for the case selector is equal to > old_selector. Since the voltage does not change, we don't need to call > set_voltage_sel() and set_voltage_time_sel() in this case. Applied, thanks. signature.asc

Re: [PATCH 1/2] regulator: core: Optimize _regulator_do_set_voltage if voltage does not change

2013-02-08 Thread Mark Brown
On Wed, Feb 06, 2013 at 11:09:48AM +0800, Axel Lin wrote: > Optimize _regulator_do_set_voltage() for the case selector is equal to > old_selector. Since the voltage does not change, we don't need to call > set_voltage_sel() and set_voltage_time_sel() in this case. Applied, thanks. signature.asc

Re: [PATCH 1/2] regulator: core: Optimize _regulator_do_set_voltage if voltage does not change

2013-02-08 Thread Mark Brown
On Wed, Feb 06, 2013 at 11:09:48AM +0800, Axel Lin wrote: Optimize _regulator_do_set_voltage() for the case selector is equal to old_selector. Since the voltage does not change, we don't need to call set_voltage_sel() and set_voltage_time_sel() in this case. Applied, thanks. signature.asc

[PATCH 1/2] regulator: core: Optimize _regulator_do_set_voltage if voltage does not change

2013-02-05 Thread Axel Lin
Optimize _regulator_do_set_voltage() for the case selector is equal to old_selector. Since the voltage does not change, we don't need to call set_voltage_sel() and set_voltage_time_sel() in this case. Signed-off-by: Axel Lin --- drivers/regulator/core.c |9 ++--- 1 file changed, 6

[PATCH 1/2] regulator: core: Optimize _regulator_do_set_voltage if voltage does not change

2013-02-05 Thread Axel Lin
Optimize _regulator_do_set_voltage() for the case selector is equal to old_selector. Since the voltage does not change, we don't need to call set_voltage_sel() and set_voltage_time_sel() in this case. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/core.c |9 ++--- 1