From patchwork Wed Feb 16 14:10:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 567541 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 p1GEBnwn003532 for ; Wed, 16 Feb 2011 14:11:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755457Ab1BPOLG (ORCPT ); Wed, 16 Feb 2011 09:11:06 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:54538 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755353Ab1BPOK6 (ORCPT ); Wed, 16 Feb 2011 09:10:58 -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 1Ppi5n-00065S-Fk; Wed, 16 Feb 2011 15:10:55 +0100 Received: from sha by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1Ppi5m-0008O3-TX; Wed, 16 Feb 2011 15:10:54 +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 2/7] fb: export fb mode db table Date: Wed, 16 Feb 2011 15:10:47 +0100 Message-Id: <1297865452-32181-3-git-send-email-s.hauer@pengutronix.de> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297865452-32181-1-git-send-email-s.hauer@pengutronix.de> References: <1297865452-32181-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]); Wed, 16 Feb 2011 14:12:11 +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;