Re: [PATCH v2] regulator: of: removing two variables min_uV and max_uV

2015-11-03 Thread Mark Brown
On Mon, Nov 02, 2015 at 03:18:00PM +0530, Saurabh Sengar wrote: > replacing the of_get_property function with of_property_read_u32 function > as its help removing two variables. > I have put these check back, please let me know if this v2 patch is worth It's a bit marginal TBH and... > /*

[PATCH v2] regulator: of: removing two variables min_uV and max_uV

2015-11-02 Thread Saurabh Sengar
replacing the of_get_property function with of_property_read_u32 function as its help removing two variables. Signed-off-by: Saurabh Sengar --- Hi Mark, >> /* Only one voltage? Then make sure it's set. */ >> - if (min_uV && max_uV && constraints->min_uV == constraints->max_uV) >> +