Message ID | 20150516193128.GA1534@x230-arch.Speedport_W_724V_01011602_00_001 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sat, May 16, 2015 at 09:31:28PM +0200, Michel von Czettritz wrote: > It appears that 'FB_SYNC_HOR_HIGH_ACT' should be assined to 'sync' > and 'FB_VMODE_NONINTERLACED' is a flag for 'vmode'. > <snip> > > diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c > index 77310ff..8ff29c6 100644 > --- a/drivers/staging/sm750fb/sm750.c > +++ b/drivers/staging/sm750fb/sm750.c > @@ -94,7 +94,8 @@ static const struct fb_videomode lynx750_ext[] = { > FB_VMODE_NONINTERLACED}, > > {NULL, 60, 1360, 768, 11804, 208, 64, 23, 1, 144, 3, > - FB_SYNC_HOR_HIGH_ACT|FB_VMODE_NONINTERLACED}, > + FB_SYNC_HOR_HIGH_ACT, > + FB_VMODE_NONINTERLACED}, good catch. But, see that all the entries are having: FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED this is the only entry with a different flag settings. moreover this entry is for 1360x768@60 , see the next entry and that is also for 1360x768@60 with the correct flags. So my opinion this entry is wrong. Send a patch instead to delete this entry and I can check that on the hardware. regards sudip > > /* 1360 x 768 [1.77083:1] */ > {NULL, 60, 1360, 768, 11804, 208, 64, 23, 1, 144, 3, > -- > 2.3.7 > -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 77310ff..8ff29c6 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -94,7 +94,8 @@ static const struct fb_videomode lynx750_ext[] = { FB_VMODE_NONINTERLACED}, {NULL, 60, 1360, 768, 11804, 208, 64, 23, 1, 144, 3, - FB_SYNC_HOR_HIGH_ACT|FB_VMODE_NONINTERLACED}, + FB_SYNC_HOR_HIGH_ACT, + FB_VMODE_NONINTERLACED}, /* 1360 x 768 [1.77083:1] */ {NULL, 60, 1360, 768, 11804, 208, 64, 23, 1, 144, 3,
It appears that 'FB_SYNC_HOR_HIGH_ACT' should be assined to 'sync' and 'FB_VMODE_NONINTERLACED' is a flag for 'vmode'. In line 96 these flags are ORed and assigned to 'sync'. Since 'FB_VMODE_NONINTERLACED' is zero, 'sync' will stay the same, and due to C99 'vmode' is initialized to zero too. Therefore this doesn't have any implications for runtime-behavior, but seems to be semantically wrong. The Patch simply changes the | to a coma. Please check if this is correct. Signed-off-by: Michel von Czettritz <michel.von.czettritz@gmail.com> --- drivers/staging/sm750fb/sm750.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)