Commit 5a3db6f0 authored by Ville Syrjälä's avatar Ville Syrjälä

drm: Constify drm_color_lut_check()

drm_color_lut_check() doens't modify the passed in blob so
let's make it const.

Also s/uint32_t/u32/ while at it.

v2: Reduce line wraps (Sam)

Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190129170609.5718-1-ville.syrjala@linux.intel.comReviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent c9a64622
......@@ -474,10 +474,9 @@ EXPORT_SYMBOL(drm_plane_create_color_properties);
*
* Returns 0 on success, -EINVAL on failure.
*/
int drm_color_lut_check(struct drm_property_blob *lut,
uint32_t tests)
int drm_color_lut_check(const struct drm_property_blob *lut, u32 tests)
{
struct drm_color_lut *entry;
const struct drm_color_lut *entry;
int i;
if (!lut || !tests)
......
......@@ -96,6 +96,5 @@ enum drm_color_lut_tests {
DRM_COLOR_LUT_NON_DECREASING = BIT(1),
};
int drm_color_lut_check(struct drm_property_blob *lut,
uint32_t tests);
int drm_color_lut_check(const struct drm_property_blob *lut, u32 tests);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment