summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-10 21:08:38 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-10 21:08:38 (GMT)
commite74ac550298ec4635cc32e99f966568a808fd370 (patch)
tree0776523986070690eb221815a50737a98315366a
parent7c6f3fdc488296ea00ded8024dcfd7de13d2ca67 (diff)
downloadlinux-e74ac550298ec4635cc32e99f966568a808fd370.tar.xz
Staging: sm750fb: provide error path for hw_sm750le_setBLANK()
This provides a default path for the switch statement in hw_sm750le_setBLANK() so that the compiler will not correctly complain about undefined values being sent to the hardware. Instead, properly error out if the blank command is unknown by the driver. Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Teddy Wang <teddy.wang@siliconmotion.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/sm750fb/sm750_hw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c
index a2b7fe2..c44a50b 100644
--- a/drivers/staging/sm750fb/sm750_hw.c
+++ b/drivers/staging/sm750fb/sm750_hw.c
@@ -472,6 +472,8 @@ int hw_sm750le_setBLANK(struct lynxfb_output * output,int blank){
dpms = CRT_DISPLAY_CTRL_DPMS_3;
crtdb = CRT_DISPLAY_CTRL_BLANK_ON;
break;
+ default:
+ return -EINVAL;
}
if(output->paths & sm750_crt){