diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-07 09:26:11 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-12-07 10:05:59 -0500 |
commit | eda34273631a9c4bae65eb49394549f6007f2fb8 (patch) | |
tree | 08da37c0aee28207bdd173b58feefecd4d944554 | |
parent | a97a96347598201ae39b5aee67638dae2cebe454 (diff) |
OMAPDSS: export dss_feat functions
Export dss_features related functions.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/omap2/dss/dss_features.c | 6 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss_features.h | 5 | ||||
-rw-r--r-- | include/video/omapdss.h | 8 |
3 files changed, 14 insertions, 5 deletions
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c index 1d125c6bfd19..18688c12e30d 100644 --- a/drivers/video/omap2/dss/dss_features.c +++ b/drivers/video/omap2/dss/dss_features.c | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/module.h> | ||
21 | #include <linux/types.h> | 22 | #include <linux/types.h> |
22 | #include <linux/err.h> | 23 | #include <linux/err.h> |
23 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
@@ -839,11 +840,13 @@ int dss_feat_get_num_mgrs(void) | |||
839 | { | 840 | { |
840 | return omap_current_dss_features->num_mgrs; | 841 | return omap_current_dss_features->num_mgrs; |
841 | } | 842 | } |
843 | EXPORT_SYMBOL(dss_feat_get_num_mgrs); | ||
842 | 844 | ||
843 | int dss_feat_get_num_ovls(void) | 845 | int dss_feat_get_num_ovls(void) |
844 | { | 846 | { |
845 | return omap_current_dss_features->num_ovls; | 847 | return omap_current_dss_features->num_ovls; |
846 | } | 848 | } |
849 | EXPORT_SYMBOL(dss_feat_get_num_ovls); | ||
847 | 850 | ||
848 | int dss_feat_get_num_wbs(void) | 851 | int dss_feat_get_num_wbs(void) |
849 | { | 852 | { |
@@ -864,16 +867,19 @@ enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel | |||
864 | { | 867 | { |
865 | return omap_current_dss_features->supported_displays[channel]; | 868 | return omap_current_dss_features->supported_displays[channel]; |
866 | } | 869 | } |
870 | EXPORT_SYMBOL(dss_feat_get_supported_displays); | ||
867 | 871 | ||
868 | enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel) | 872 | enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel) |
869 | { | 873 | { |
870 | return omap_current_dss_features->supported_outputs[channel]; | 874 | return omap_current_dss_features->supported_outputs[channel]; |
871 | } | 875 | } |
876 | EXPORT_SYMBOL(dss_feat_get_supported_outputs); | ||
872 | 877 | ||
873 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane) | 878 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane) |
874 | { | 879 | { |
875 | return omap_current_dss_features->supported_color_modes[plane]; | 880 | return omap_current_dss_features->supported_color_modes[plane]; |
876 | } | 881 | } |
882 | EXPORT_SYMBOL(dss_feat_get_supported_color_modes); | ||
877 | 883 | ||
878 | enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane) | 884 | enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane) |
879 | { | 885 | { |
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h index 385b0afe63c2..489b9bec4a6d 100644 --- a/drivers/video/omap2/dss/dss_features.h +++ b/drivers/video/omap2/dss/dss_features.h | |||
@@ -101,14 +101,9 @@ enum dss_range_param { | |||
101 | }; | 101 | }; |
102 | 102 | ||
103 | /* DSS Feature Functions */ | 103 | /* DSS Feature Functions */ |
104 | int dss_feat_get_num_mgrs(void); | ||
105 | int dss_feat_get_num_ovls(void); | ||
106 | int dss_feat_get_num_wbs(void); | 104 | int dss_feat_get_num_wbs(void); |
107 | unsigned long dss_feat_get_param_min(enum dss_range_param param); | 105 | unsigned long dss_feat_get_param_min(enum dss_range_param param); |
108 | unsigned long dss_feat_get_param_max(enum dss_range_param param); | 106 | unsigned long dss_feat_get_param_max(enum dss_range_param param); |
109 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); | ||
110 | enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel); | ||
111 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane); | ||
112 | enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane); | 107 | enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane plane); |
113 | bool dss_feat_color_mode_supported(enum omap_plane plane, | 108 | bool dss_feat_color_mode_supported(enum omap_plane plane, |
114 | enum omap_color_mode color_mode); | 109 | enum omap_color_mode color_mode); |
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index d1bf3bc54db6..8c9df4867273 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -755,6 +755,14 @@ const char *omapdss_get_default_display_name(void); | |||
755 | int omap_dss_start_device(struct omap_dss_device *dssdev); | 755 | int omap_dss_start_device(struct omap_dss_device *dssdev); |
756 | void omap_dss_stop_device(struct omap_dss_device *dssdev); | 756 | void omap_dss_stop_device(struct omap_dss_device *dssdev); |
757 | 757 | ||
758 | int dss_feat_get_num_mgrs(void); | ||
759 | int dss_feat_get_num_ovls(void); | ||
760 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); | ||
761 | enum omap_dss_output_id dss_feat_get_supported_outputs(enum omap_channel channel); | ||
762 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane); | ||
763 | |||
764 | |||
765 | |||
758 | int omap_dss_get_num_overlay_managers(void); | 766 | int omap_dss_get_num_overlay_managers(void); |
759 | struct omap_overlay_manager *omap_dss_get_overlay_manager(int num); | 767 | struct omap_overlay_manager *omap_dss_get_overlay_manager(int num); |
760 | 768 | ||