[PATCH 1/5] drm: add drm_property_change_is_valid

Ville Syrjälä ville.syrjala at linux.intel.com
Tue Mar 20 08:37:45 PDT 2012


On Tue, Mar 20, 2012 at 11:48:28AM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
> 
> Move code from drm_mode_connector_property_set_ioctl to a new
> function, so we can reuse this code when we add crtc properties.
> 
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
> ---
>  drivers/gpu/drm/drm_crtc.c |   41 +++++++++++++++++++++--------------------
>  1 files changed, 21 insertions(+), 20 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
> index 6fdaf6f..1cadc11 100644
> --- a/drivers/gpu/drm/drm_crtc.c
> +++ b/drivers/gpu/drm/drm_crtc.c
> @@ -2910,6 +2910,26 @@ int drm_mode_connector_update_edid_property(struct drm_connector *connector,
>  }
>  EXPORT_SYMBOL(drm_mode_connector_update_edid_property);
>  
> +static int drm_property_change_is_valid(struct drm_property *property,
> +					__u64 value)

static bool ...

-- 
Ville Syrjälä
Intel OTC


More information about the dri-devel mailing list