aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmon.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-12 04:15:43 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-12 09:46:41 -0400
commita38884f681a4d044befd30d9f3d19a0821bae63a (patch)
treeb559097c03249e9821dd982954f816db262d82a1 /drivers/video/fbmon.c
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff)
videomode: simplify videomode Kconfig and Makefile
This patch simplifies videomode related Kconfig and Makefile. After this patch, there's only one non-user selectable Kconfig option left, VIDEOMODE_HELPERS. The reasons for the change: * Videomode helper functions are not something that should be shown in the kernel configuration options. The related code should just be included if it's needed, i.e. selected by drivers using videomode. * There's no need to have separate Kconfig options for videomode and display_timing. First of all, the amount of code for both is quite small. Second, videomode depends on display_timing, and display_timing in itself is not really useful, so both would be included in any case. * CONFIG_VIDEOMODE is a bit vague name, and CONFIG_VIDEOMODE_HELPERS describes better what's included. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/fbmon.c')
-rw-r--r--drivers/video/fbmon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
index 94ad0f71383c..368cedfeaf1d 100644
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -1376,7 +1376,7 @@ int fb_get_mode(int flags, u32 val, struct fb_var_screeninfo *var, struct fb_inf
1376 return err; 1376 return err;
1377} 1377}
1378 1378
1379#if IS_ENABLED(CONFIG_VIDEOMODE) 1379#ifdef CONFIG_VIDEOMODE_HELPERS
1380int fb_videomode_from_videomode(const struct videomode *vm, 1380int fb_videomode_from_videomode(const struct videomode *vm,
1381 struct fb_videomode *fbmode) 1381 struct fb_videomode *fbmode)
1382{ 1382{
@@ -1424,9 +1424,8 @@ int fb_videomode_from_videomode(const struct videomode *vm,
1424 return 0; 1424 return 0;
1425} 1425}
1426EXPORT_SYMBOL_GPL(fb_videomode_from_videomode); 1426EXPORT_SYMBOL_GPL(fb_videomode_from_videomode);
1427#endif
1428 1427
1429#if IS_ENABLED(CONFIG_OF_VIDEOMODE) 1428#ifdef CONFIG_OF
1430static inline void dump_fb_videomode(const struct fb_videomode *m) 1429static inline void dump_fb_videomode(const struct fb_videomode *m)
1431{ 1430{
1432 pr_debug("fb_videomode = %ux%u@%uHz (%ukHz) %u %u %u %u %u %u %u %u %u\n", 1431 pr_debug("fb_videomode = %ux%u@%uHz (%ukHz) %u %u %u %u %u %u %u %u %u\n",
@@ -1465,7 +1464,8 @@ int of_get_fb_videomode(struct device_node *np, struct fb_videomode *fb,
1465 return 0; 1464 return 0;
1466} 1465}
1467EXPORT_SYMBOL_GPL(of_get_fb_videomode); 1466EXPORT_SYMBOL_GPL(of_get_fb_videomode);
1468#endif 1467#endif /* CONFIG_OF */
1468#endif /* CONFIG_VIDEOMODE_HELPERS */
1469 1469
1470#else 1470#else
1471int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var) 1471int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var)