aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2012-05-24 13:53:58 -0400
committerDave Airlie <airlied@redhat.com>2012-05-29 06:07:09 -0400
commit592c20ee45a1f99b59817216c766684d95cca77b (patch)
tree0adad5e3171909556937860beb7b5f4a50e7e854
parentcff91b625f2cd607ddb7a82b453f7c67906b70db (diff)
drm: Use stdint types for consistency
The rest of the code uses stdint types, so use them in drm_property_change_is_valid() as well. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/drm_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 5c3f30cbe535..08a7aa722d6b 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -3126,7 +3126,7 @@ int drm_mode_connector_update_edid_property(struct drm_connector *connector,
3126EXPORT_SYMBOL(drm_mode_connector_update_edid_property); 3126EXPORT_SYMBOL(drm_mode_connector_update_edid_property);
3127 3127
3128static bool drm_property_change_is_valid(struct drm_property *property, 3128static bool drm_property_change_is_valid(struct drm_property *property,
3129 __u64 value) 3129 uint64_t value)
3130{ 3130{
3131 if (property->flags & DRM_MODE_PROP_IMMUTABLE) 3131 if (property->flags & DRM_MODE_PROP_IMMUTABLE)
3132 return false; 3132 return false;
@@ -3136,7 +3136,7 @@ static bool drm_property_change_is_valid(struct drm_property *property,
3136 return true; 3136 return true;
3137 } else if (property->flags & DRM_MODE_PROP_BITMASK) { 3137 } else if (property->flags & DRM_MODE_PROP_BITMASK) {
3138 int i; 3138 int i;
3139 __u64 valid_mask = 0; 3139 uint64_t valid_mask = 0;
3140 for (i = 0; i < property->num_values; i++) 3140 for (i = 0; i < property->num_values; i++)
3141 valid_mask |= (1ULL << property->values[i]); 3141 valid_mask |= (1ULL << property->values[i]);
3142 return !(value & ~valid_mask); 3142 return !(value & ~valid_mask);