[PATCH 1/8] drm: add drm_property_change_is_valid

Eugeni Dodonov eugeni at dodonov.net
Thu Mar 29 19:38:11 PDT 2012


On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni <przanoni at gmail.com> wrote:

> +       if (property->flags & DRM_MODE_PROP_RANGE) {
> +               if (value < property->values[0])
> +                       return false;
> +               if (value > property->values[1])
> +                       return false;
>

Those two checks could probably be combined into one (< values || > values)
for further simplification.

But other than this,
Reviewed-by: Eugeni Dodonov <eugein.dodonov at intel.com>

-- 
Eugeni Dodonov
<http://eugeni.dodonov.net/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120329/223c84fb/attachment.htm>


More information about the dri-devel mailing list