mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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>
This commit is contained in:
parent
7c6f3fdc48
commit
e74ac55029
1 changed files with 2 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue