From patchwork Mon Feb 28 10:00:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 595061 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1SA1U2d004753 for ; Mon, 28 Feb 2011 10:01:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753369Ab1B1KAp (ORCPT ); Mon, 28 Feb 2011 05:00:45 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:60328 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753334Ab1B1KAh (ORCPT ); Mon, 28 Feb 2011 05:00:37 -0500 Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ptzu6-0007ql-Kr; Mon, 28 Feb 2011 11:00:34 +0100 Received: from sha by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1Ptzu4-00054u-4n; Mon, 28 Feb 2011 11:00:32 +0100 From: Sascha Hauer To: linux-arm-kernel@lists.infradead.org Cc: Sascha Hauer , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Paul Mundt Subject: [PATCH 1/8] fb: export fb mode db table Date: Mon, 28 Feb 2011 11:00:22 +0100 Message-Id: <1298887229-7987-2-git-send-email-s.hauer@pengutronix.de> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1298887229-7987-1-git-send-email-s.hauer@pengutronix.de> References: <1298887229-7987-1-git-send-email-s.hauer@pengutronix.de> X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-fbdev@vger.kernel.org Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Feb 2011 10:01:38 +0000 (UTC) diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index 48c3ea8..942b44d 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c @@ -36,8 +36,7 @@ EXPORT_SYMBOL_GPL(fb_mode_option); * Standard video mode definitions (taken from XFree86) */ -static const struct fb_videomode modedb[] = { - +const struct fb_videomode modedb[] = { /* 640x400 @ 70 Hz, 31.5 kHz hsync */ { NULL, 70, 640, 400, 39721, 40, 24, 39, 9, 96, 2, 0, FB_VMODE_NONINTERLACED }, @@ -291,6 +290,11 @@ static const struct fb_videomode modedb[] = { 0, FB_VMODE_NONINTERLACED }, }; +const struct fb_videomode *fb_modes = modedb; +EXPORT_SYMBOL(fb_modes); +const int num_fb_modes = ARRAY_SIZE(modedb); +EXPORT_SYMBOL(num_fb_modes); + #ifdef CONFIG_FB_MODE_HELPERS const struct fb_videomode cea_modes[64] = { /* #1: 640x480p@59.94/60Hz */ diff --git a/include/linux/fb.h b/include/linux/fb.h index 68ba85a..41b0ce1 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -1154,6 +1154,9 @@ extern const char *fb_mode_option; extern const struct fb_videomode vesa_modes[]; extern const struct fb_videomode cea_modes[64]; +extern const struct fb_videomode *fb_modes; +extern const int num_fb_modes; + struct fb_modelist { struct list_head list; struct fb_videomode mode;