Skip to content

Commit

Permalink
staging: omap-thermal: make a omap_bandgap_power with only one exit p…
Browse files Browse the repository at this point in the history
…oint

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>
  • Loading branch information
Eduardo Valentin authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 9c468aa commit 3d84e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ static int omap_bandgap_power(struct omap_bandgap *bg_ptr, bool on)
int i;

if (!OMAP_BANDGAP_HAS(bg_ptr, POWER_SWITCH))
return 0;
goto exit;

for (i = 0; i < bg_ptr->conf->sensor_count; i++)
/* active on 0 */
RMW_BITS(bg_ptr, i, temp_sensor_ctrl, bgap_tempsoff_mask, !on);

exit:
return 0;
}

Expand Down

0 comments on commit 3d84e52

Please sign in to comment.