Messages in this thread | | | Date | Fri, 6 Apr 2012 11:03:36 +0530 | From | Laxman Dewangan <> | Subject | Re: [PATCH] regulator: rc5t583: Simplify RC5T583_REG macro |
| |
On Friday 06 April 2012 05:31 AM, Axel Lin wrote: > Simplify RC5T583_REG macro by removing _vout_reg and _ds_reg parameters. > > The naming for vout_reg and deepsleep_reg can be replaced by: > .vout_reg = RC5T583_REG_##_id##DAC, > .deepsleep_reg = RC5T583_REG_##_id##DAC_DS, > > Signed-off-by: Axel Lin<axel.lin@gmail.com> > ---
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
I thought of doing this on my first patch and then thought that table should have all configuration picture rather than deriving from few parameters. If this is a good way then I will take care for my next PMIC driver development.
Thanks, Laxman
| |