summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-03-16 21:04:20 +0200
committerLiu Ying <victor.liu@nxp.com>2019-09-17 10:29:12 +0800
commit80d9c52eab5455f8f395cd0a86383f9eb873bacc (patch)
tree8212ede75599428c30c5717cbb5b29a75bb0e2ad /include/drm
parent25174baf0bc6a00f41a0fec92d84a1672eb7c66e (diff)
drm: Don't pass the index to drm_property_add_enum()
drm_property_add_enum() can calculate the index itself just fine, so no point in having the caller pass it in. Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: nouveau@lists.freedesktop.org Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180316190420.26734-1-ville.syrjala@linux.intel.com Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> (cherry picked from commit 30e9db6d046ba667070e5a011a13951830d60a6e)
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_property.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_property.h b/include/drm/drm_property.h
index 72ebc3c18b6b..43fedd76957a 100644
--- a/include/drm/drm_property.h
+++ b/include/drm/drm_property.h
@@ -260,7 +260,7 @@ struct drm_property *drm_property_create_object(struct drm_device *dev,
uint32_t type);
struct drm_property *drm_property_create_bool(struct drm_device *dev,
u32 flags, const char *name);
-int drm_property_add_enum(struct drm_property *property, int index,
+int drm_property_add_enum(struct drm_property *property,
uint64_t value, const char *name);
void drm_property_destroy(struct drm_device *dev, struct drm_property *property);