staging: omap-thermal: make a omap_bandgap_power with only one exit point
Change the way the omap_bandgap_power is written so that it has only one exit entry (Documentation/CodingStyle). Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9c468aa2d5
commit
3d84e52962
|
@ -91,12 +91,13 @@ static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!OMAP_BANDGAP_HAS(bg_ptr, POWER_SWITCH))
|
if (!OMAP_BANDGAP_HAS(bg_ptr, POWER_SWITCH))
|
||||||
return 0;
|
goto exit;
|
||||||
|
|
||||||
for (i = 0; i < bg_ptr->conf->sensor_count; i++)
|
for (i = 0; i < bg_ptr->conf->sensor_count; i++)
|
||||||
/* active on 0 */
|
/* active on 0 */
|
||||||
RMW_BITS(bg_ptr, i, temp_sensor_ctrl, bgap_tempsoff_mask, !on);
|
RMW_BITS(bg_ptr, i, temp_sensor_ctrl, bgap_tempsoff_mask, !on);
|
||||||
|
|
||||||
|
exit:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue