Commit 76d2cd30 authored by J Keerthy's avatar J Keerthy Committed by Greg Kroah-Hartman

staging: omap-thermal: Correct checkpatch.pl warnings

Removes checkpatch warnings on omap-bandgap.c.
Signed-off-by: default avatarJ Keerthy <j-keerthy@ti.com>
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 559e9a68
...@@ -1037,20 +1037,20 @@ static int omap_bandgap_save_ctxt(struct omap_bandgap *bg_ptr) ...@@ -1037,20 +1037,20 @@ static int omap_bandgap_save_ctxt(struct omap_bandgap *bg_ptr)
if (OMAP_BANDGAP_HAS(bg_ptr, MODE_CONFIG)) if (OMAP_BANDGAP_HAS(bg_ptr, MODE_CONFIG))
rval->bg_mode_ctrl = omap_bandgap_readl(bg_ptr, rval->bg_mode_ctrl = omap_bandgap_readl(bg_ptr,
tsr->bgap_mode_ctrl); tsr->bgap_mode_ctrl);
if (OMAP_BANDGAP_HAS(bg_ptr, COUNTER)) if (OMAP_BANDGAP_HAS(bg_ptr, COUNTER))
rval->bg_counter = omap_bandgap_readl(bg_ptr, rval->bg_counter = omap_bandgap_readl(bg_ptr,
tsr->bgap_counter); tsr->bgap_counter);
if (OMAP_BANDGAP_HAS(bg_ptr, TALERT)) { if (OMAP_BANDGAP_HAS(bg_ptr, TALERT)) {
rval->bg_threshold = omap_bandgap_readl(bg_ptr, rval->bg_threshold = omap_bandgap_readl(bg_ptr,
tsr->bgap_threshold); tsr->bgap_threshold);
rval->bg_ctrl = omap_bandgap_readl(bg_ptr, rval->bg_ctrl = omap_bandgap_readl(bg_ptr,
tsr->bgap_mask_ctrl); tsr->bgap_mask_ctrl);
} }
if (OMAP_BANDGAP_HAS(bg_ptr, TSHUT_CONFIG)) if (OMAP_BANDGAP_HAS(bg_ptr, TSHUT_CONFIG))
rval->tshut_threshold = omap_bandgap_readl(bg_ptr, rval->tshut_threshold = omap_bandgap_readl(bg_ptr,
tsr->tshut_threshold); tsr->tshut_threshold);
} }
return 0; return 0;
...@@ -1074,8 +1074,9 @@ static int omap_bandgap_restore_ctxt(struct omap_bandgap *bg_ptr) ...@@ -1074,8 +1074,9 @@ static int omap_bandgap_restore_ctxt(struct omap_bandgap *bg_ptr)
if (val == 0) { if (val == 0) {
if (OMAP_BANDGAP_HAS(bg_ptr, TSHUT_CONFIG)) if (OMAP_BANDGAP_HAS(bg_ptr, TSHUT_CONFIG))
omap_bandgap_writel(bg_ptr, rval->tshut_threshold, omap_bandgap_writel(bg_ptr,
tsr->tshut_threshold); rval->tshut_threshold,
tsr->tshut_threshold);
/* Force immediate temperature measurement and update /* Force immediate temperature measurement and update
* of the DTEMP field * of the DTEMP field
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment