projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d06ef
)
sm501fb: fix timing limits
author
Ville Syrjala
<
[email protected]
>
Tue, 4 Mar 2008 22:28:49 +0000
(14:28 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 5 Mar 2008 00:35:13 +0000
(16:35 -0800)
Vertical sync height register can only hold 6 bits. Fix the hsync start test
to use > instead of >=. Also add a few clarifying comments.
Signed-off-by: Ville Syrjala <
[email protected]
>
Acked-by: Ben Dooks <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/sm501fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/sm501fb.c
b/drivers/video/sm501fb.c
index f49287c88abe2af349a45fc623bedf0100a4828a..742b5c656d668d447b02984d1fe4c2ba237c6743 100644
(file)
--- a/
drivers/video/sm501fb.c
+++ b/
drivers/video/sm501fb.c
@@
-237,12
+237,14
@@
static int sm501fb_check_var(struct fb_var_screeninfo *var,
/* check we can fit these values into the registers */
- if (var->hsync_len > 255 || var->vsync_len >
255
)
+ if (var->hsync_len > 255 || var->vsync_len >
63
)
return -EINVAL;
- if ((var->xres + var->right_margin) >= 4096)
+ /* hdisplay end and hsync start */
+ if ((var->xres + var->right_margin) > 4096)
return -EINVAL;
+ /* vdisplay end and vsync start */
if ((var->yres + var->lower_margin) > 2048)
return -EINVAL;