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
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-04-27 16:46:50 +0300
commit30e9db6d046ba667070e5a011a13951830d60a6e (patch)
tree040bacf9f126ab86af35e54a4edbea1eff725a97 /include/drm
parentebb513adb1bed9a2fa5a9db4363b009ed407879a (diff)
downloadlinux-exynos-30e9db6d046ba667070e5a011a13951830d60a6e.tar.gz
linux-exynos-30e9db6d046ba667070e5a011a13951830d60a6e.tar.bz2
linux-exynos-30e9db6d046ba667070e5a011a13951830d60a6e.zip
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>
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 ab8167baade5..1d5c0b2a8956 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);