aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-01-21 02:47:38 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-01-27 04:02:12 -0500
commit960cd9d4fef6dd9e235c0e5c0d4ed027f8a48025 (patch)
tree8e38e88909cd3aa611cbc5ee1ebc91878132507f /include/drm
parent6a425c2a9b37ca3d2c37e3c1cdf973dba53eaa79 (diff)
drm: Add standardized boolean props
Not a new type exposed to userspace, just a standard way to create them since between range, bitmask and enum there's 3 different ways to pull out a boolean prop. Also add the kerneldoc for the recently added new prop types, which Rob forgot all about. v2: Fixup kerneldoc, spotted by Rob. Cc: Rob Clark <robdclark@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 0ecfb7c80601..c4e36f60b3ef 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1345,6 +1345,8 @@ struct drm_property *drm_property_create_signed_range(struct drm_device *dev,
1345 int64_t min, int64_t max); 1345 int64_t min, int64_t max);
1346struct drm_property *drm_property_create_object(struct drm_device *dev, 1346struct drm_property *drm_property_create_object(struct drm_device *dev,
1347 int flags, const char *name, uint32_t type); 1347 int flags, const char *name, uint32_t type);
1348struct drm_property *drm_property_create_bool(struct drm_device *dev, int flags,
1349 const char *name);
1348extern void drm_property_destroy(struct drm_device *dev, struct drm_property *property); 1350extern void drm_property_destroy(struct drm_device *dev, struct drm_property *property);
1349extern int drm_property_add_enum(struct drm_property *property, int index, 1351extern int drm_property_add_enum(struct drm_property *property, int index,
1350 uint64_t value, const char *name); 1352 uint64_t value, const char *name);