Skip to content

Commit

Permalink
staging: omap-thermal: Correct checkpatch.pl warnings
Browse files Browse the repository at this point in the history
Removes checkpatch warnings on omap-bandgap.c.

Signed-off-by: J Keerthy <j-keerthy@ti.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
J Keerthy authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 559e9a6 commit 76d2cd3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,20 +1037,20 @@ static int omap_bandgap_save_ctxt(struct omap_bandgap *bg_ptr)

if (OMAP_BANDGAP_HAS(bg_ptr, MODE_CONFIG))
rval->bg_mode_ctrl = omap_bandgap_readl(bg_ptr,
tsr->bgap_mode_ctrl);
tsr->bgap_mode_ctrl);
if (OMAP_BANDGAP_HAS(bg_ptr, COUNTER))
rval->bg_counter = omap_bandgap_readl(bg_ptr,
tsr->bgap_counter);
tsr->bgap_counter);
if (OMAP_BANDGAP_HAS(bg_ptr, TALERT)) {
rval->bg_threshold = omap_bandgap_readl(bg_ptr,
tsr->bgap_threshold);
tsr->bgap_threshold);
rval->bg_ctrl = omap_bandgap_readl(bg_ptr,
tsr->bgap_mask_ctrl);
tsr->bgap_mask_ctrl);
}

if (OMAP_BANDGAP_HAS(bg_ptr, TSHUT_CONFIG))
rval->tshut_threshold = omap_bandgap_readl(bg_ptr,
tsr->tshut_threshold);
tsr->tshut_threshold);
}

return 0;
Expand All @@ -1074,8 +1074,9 @@ static int omap_bandgap_restore_ctxt(struct omap_bandgap *bg_ptr)

if (val == 0) {
if (OMAP_BANDGAP_HAS(bg_ptr, TSHUT_CONFIG))
omap_bandgap_writel(bg_ptr, rval->tshut_threshold,
tsr->tshut_threshold);
omap_bandgap_writel(bg_ptr,
rval->tshut_threshold,
tsr->tshut_threshold);
/* Force immediate temperature measurement and update
* of the DTEMP field
*/
Expand Down

0 comments on commit 76d2cd3

Please sign in to comment.