Re: [RFT v3 05/14] regulator: max77802: Don't ignore return value of current opmode

2014-10-30 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/30/2014 12:20 PM, Krzysztof Kozlowski wrote: > The return value of regmap_read() of current opmode for regulator was > silently ignored and whatever happened to be in 'val' variable was used > as new opmode. This could lead to using bogus opmode. > > Don't ignore what regma

[RFT v3 05/14] regulator: max77802: Don't ignore return value of current opmode

2014-10-30 Thread Krzysztof Kozlowski
The return value of regmap_read() of current opmode for regulator was silently ignored and whatever happened to be in 'val' variable was used as new opmode. This could lead to using bogus opmode. Don't ignore what regmap_read() returns. If it fails just fall back to normal opmode. Signed-off-by: