diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-29 06:40:46 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-29 06:40:46 -0400 |
commit | 2bbcce5e0b47e0de83a1b799b9e164f8c5b9b634 (patch) | |
tree | fe1f53189d5bd82b48f16d7fa7de9eab5690d183 | |
parent | c31cba8af8c2fde418c146e3ead341d5053f3225 (diff) |
OMAPDSS: export dss_get_def_display_name()
Export dss_get_def_display_name() with the name of
omapdss_get_def_display_name() so that omapfb can use it after the next
patch which moves default display handling to omapfb.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/omap2/dss/core.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/display.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 1 | ||||
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/rfbi.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 2 | ||||
-rw-r--r-- | include/video/omapdss.h | 1 |
10 files changed, 10 insertions, 9 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index 685d9a957b19..a2ea684169e9 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c | |||
@@ -53,10 +53,11 @@ static char *def_disp_name; | |||
53 | module_param_named(def_disp, def_disp_name, charp, 0); | 53 | module_param_named(def_disp, def_disp_name, charp, 0); |
54 | MODULE_PARM_DESC(def_disp, "default display name"); | 54 | MODULE_PARM_DESC(def_disp, "default display name"); |
55 | 55 | ||
56 | const char *dss_get_default_display_name(void) | 56 | const char *omapdss_get_default_display_name(void) |
57 | { | 57 | { |
58 | return core.default_display_name; | 58 | return core.default_display_name; |
59 | } | 59 | } |
60 | EXPORT_SYMBOL(omapdss_get_default_display_name); | ||
60 | 61 | ||
61 | enum omapdss_version omapdss_get_version(void) | 62 | enum omapdss_version omapdss_get_version(void) |
62 | { | 63 | { |
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index 1e587306215f..90edd718e9e7 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
@@ -394,7 +394,7 @@ int dss_init_device(struct platform_device *pdev, | |||
394 | { | 394 | { |
395 | struct device_attribute *attr; | 395 | struct device_attribute *attr; |
396 | int i, r; | 396 | int i, r; |
397 | const char *def_disp_name = dss_get_default_display_name(); | 397 | const char *def_disp_name = omapdss_get_default_display_name(); |
398 | bool force; | 398 | bool force; |
399 | 399 | ||
400 | force = def_disp_name && strcmp(def_disp_name, dssdev->name) == 0; | 400 | force = def_disp_name && strcmp(def_disp_name, dssdev->name) == 0; |
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c index 56748cf8760e..11d64b09cffe 100644 --- a/drivers/video/omap2/dss/dpi.c +++ b/drivers/video/omap2/dss/dpi.c | |||
@@ -389,7 +389,7 @@ static int __init dpi_init_display(struct omap_dss_device *dssdev) | |||
389 | static struct omap_dss_device * __init dpi_find_dssdev(struct platform_device *pdev) | 389 | static struct omap_dss_device * __init dpi_find_dssdev(struct platform_device *pdev) |
390 | { | 390 | { |
391 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 391 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
392 | const char *def_disp_name = dss_get_default_display_name(); | 392 | const char *def_disp_name = omapdss_get_default_display_name(); |
393 | struct omap_dss_device *def_dssdev; | 393 | struct omap_dss_device *def_dssdev; |
394 | int i; | 394 | int i; |
395 | 395 | ||
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 7d0db2bf2fc6..2ba505b33153 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -5100,7 +5100,7 @@ static struct omap_dss_device * __init dsi_find_dssdev(struct platform_device *p | |||
5100 | { | 5100 | { |
5101 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 5101 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
5102 | struct dsi_data *dsi = dsi_get_dsidrv_data(pdev); | 5102 | struct dsi_data *dsi = dsi_get_dsidrv_data(pdev); |
5103 | const char *def_disp_name = dss_get_default_display_name(); | 5103 | const char *def_disp_name = omapdss_get_default_display_name(); |
5104 | struct omap_dss_device *def_dssdev; | 5104 | struct omap_dss_device *def_dssdev; |
5105 | int i; | 5105 | int i; |
5106 | 5106 | ||
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index 00e0a36723b9..d468743a209e 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -160,7 +160,6 @@ struct seq_file; | |||
160 | struct platform_device; | 160 | struct platform_device; |
161 | 161 | ||
162 | /* core */ | 162 | /* core */ |
163 | const char *dss_get_default_display_name(void); | ||
164 | struct bus_type *dss_get_bus(void); | 163 | struct bus_type *dss_get_bus(void); |
165 | struct regulator *dss_get_vdds_dsi(void); | 164 | struct regulator *dss_get_vdds_dsi(void); |
166 | struct regulator *dss_get_vdds_sdi(void); | 165 | struct regulator *dss_get_vdds_sdi(void); |
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index c1c54883fbe7..54931f14c099 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c | |||
@@ -910,7 +910,7 @@ int hdmi_audio_config(struct omap_dss_audio *audio) | |||
910 | static struct omap_dss_device * __init hdmi_find_dssdev(struct platform_device *pdev) | 910 | static struct omap_dss_device * __init hdmi_find_dssdev(struct platform_device *pdev) |
911 | { | 911 | { |
912 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 912 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
913 | const char *def_disp_name = dss_get_default_display_name(); | 913 | const char *def_disp_name = omapdss_get_default_display_name(); |
914 | struct omap_dss_device *def_dssdev; | 914 | struct omap_dss_device *def_dssdev; |
915 | int i; | 915 | int i; |
916 | 916 | ||
diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index 7282e5af3e1a..7bfeb13cf3d0 100644 --- a/drivers/video/omap2/dss/rfbi.c +++ b/drivers/video/omap2/dss/rfbi.c | |||
@@ -950,7 +950,7 @@ static int __init rfbi_init_display(struct omap_dss_device *dssdev) | |||
950 | static struct omap_dss_device * __init rfbi_find_dssdev(struct platform_device *pdev) | 950 | static struct omap_dss_device * __init rfbi_find_dssdev(struct platform_device *pdev) |
951 | { | 951 | { |
952 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 952 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
953 | const char *def_disp_name = dss_get_default_display_name(); | 953 | const char *def_disp_name = omapdss_get_default_display_name(); |
954 | struct omap_dss_device *def_dssdev; | 954 | struct omap_dss_device *def_dssdev; |
955 | int i; | 955 | int i; |
956 | 956 | ||
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index 7760851f6e5d..882ce89765e7 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c | |||
@@ -205,7 +205,7 @@ static int __init sdi_init_display(struct omap_dss_device *dssdev) | |||
205 | static struct omap_dss_device * __init sdi_find_dssdev(struct platform_device *pdev) | 205 | static struct omap_dss_device * __init sdi_find_dssdev(struct platform_device *pdev) |
206 | { | 206 | { |
207 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 207 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
208 | const char *def_disp_name = dss_get_default_display_name(); | 208 | const char *def_disp_name = omapdss_get_default_display_name(); |
209 | struct omap_dss_device *def_dssdev; | 209 | struct omap_dss_device *def_dssdev; |
210 | int i; | 210 | int i; |
211 | 211 | ||
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 56efa3bb465d..e8fddc9012cb 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -744,7 +744,7 @@ static void venc_put_clocks(void) | |||
744 | static struct omap_dss_device * __init venc_find_dssdev(struct platform_device *pdev) | 744 | static struct omap_dss_device * __init venc_find_dssdev(struct platform_device *pdev) |
745 | { | 745 | { |
746 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 746 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
747 | const char *def_disp_name = dss_get_default_display_name(); | 747 | const char *def_disp_name = omapdss_get_default_display_name(); |
748 | struct omap_dss_device *def_dssdev; | 748 | struct omap_dss_device *def_dssdev; |
749 | int i; | 749 | int i; |
750 | 750 | ||
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index eac5f2562253..bf2c68ad1995 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -753,6 +753,7 @@ void omap_dss_put_device(struct omap_dss_device *dssdev); | |||
753 | struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from); | 753 | struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from); |
754 | struct omap_dss_device *omap_dss_find_device(void *data, | 754 | struct omap_dss_device *omap_dss_find_device(void *data, |
755 | int (*match)(struct omap_dss_device *dssdev, void *data)); | 755 | int (*match)(struct omap_dss_device *dssdev, void *data)); |
756 | const char *omapdss_get_default_display_name(void); | ||
756 | 757 | ||
757 | int omap_dss_start_device(struct omap_dss_device *dssdev); | 758 | int omap_dss_start_device(struct omap_dss_device *dssdev); |
758 | void omap_dss_stop_device(struct omap_dss_device *dssdev); | 759 | void omap_dss_stop_device(struct omap_dss_device *dssdev); |