aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-02-06 04:58:18 -0500
committerDave Airlie <airlied@redhat.com>2012-02-09 05:15:25 -0500
commitd9bc3c02e36d844c2d980e65ddda5c7699e073f8 (patch)
tree95de33796245ca8c4e7629ddf22629bcc89f1403 /include/drm/drm_crtc.h
parent4a67d39190315558631d944b1cea4466ed4c86d8 (diff)
drm: add convenience function to create an range property
Creating a range property is a common pattern, so create a convenience function for this and use it where appropriate. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 3b93cdccea49..823531454799 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -912,6 +912,9 @@ extern struct drm_property *drm_property_create_enum(struct drm_device *dev, int
912 const char *name, 912 const char *name,
913 const struct drm_prop_enum_list *props, 913 const struct drm_prop_enum_list *props,
914 int num_values); 914 int num_values);
915struct drm_property *drm_property_create_range(struct drm_device *dev, int flags,
916 const char *name,
917 uint64_t min, uint64_t max);
915extern void drm_property_destroy(struct drm_device *dev, struct drm_property *property); 918extern void drm_property_destroy(struct drm_device *dev, struct drm_property *property);
916extern int drm_property_add_enum(struct drm_property *property, int index, 919extern int drm_property_add_enum(struct drm_property *property, int index,
917 uint64_t value, const char *name); 920 uint64_t value, const char *name);