All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on struct fb_videomode.name
@ 2011-09-26 20:55 Timur Tabi
  2011-09-27 12:22 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2011-09-26 20:55 UTC (permalink / raw)
  To: linux-fbdev

In my fb driver, I have an array of fb_videomode structs, like this:

static struct fb_videomode __devinitdata fsl_diu_mode_db[] = {
	{
		.name		= "1024x768-60",
		.refresh	= 60,
		.xres		= 1024,
		.yres		= 768,
		.pixclock	= 15385,
		.left_margin	= 160,
		.right_margin	= 24,
		.upper_margin	= 29,
		.lower_margin	= 3,
		.hsync_len	= 136,
		.vsync_len	= 6,
		.sync		= FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
		.vmode		= FB_VMODE_NONINTERLACED
	},
	...

Is there any value in specifying the .name field as "<xres>x<yres>-<ref>"?  I
know the .name field is optional, but what happens if I don't specify it?  It
just seems redundant to generate the name based on other data in the same structure.

-- 
Timur Tabi
Linux kernel developer at Freescale


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-27 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 20:55 Question on struct fb_videomode.name Timur Tabi
2011-09-27 12:22 ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.