From: Antonino D. <ad...@gm...> - 2005-09-22 10:19:52
|
On 9/22/05, Geert Uytterhoeven <ge...@li...> wrote: > On Wed, 21 Sep 2005, James Simmons wrote: > > Let me know if this is acceptable. Some people might not like the name. > > > > > > --- linus-2.6/drivers/video/fbsysfs.c 2005-07-31 15:45:22.000000000 -07= 00 > > +++ fbdev-2.6/drivers/video/fbsysfs.c 2005-09-21 13:54:02.000000000 -07= 00 > > @@ -242,6 +242,13 @@ > > fb_info->var.yres_virtual); > > } > > > > +static ssize_t show_stride(struct class_device *class_device, char *bu= f) > > +{ > > + struct fb_info *fb_info =3D > > + (struct fb_info *)class_get_devdata(class_device); > > + return snprintf(buf, PAGE_SIZE, "%d\n", fb_info->fix.line_length)= ; > > Do all drivers set fix.line_length these days? > They have to, if they want to use any of the cfb_* drawing functions. Tony |