[PATCH 4/8] drm: add generic ioctls to get/set properties on any object

2012-03-30 Thread Ville Syrjälä
On Thu, Mar 29, 2012 at 06:27:22PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Useless for connector properties (since they already have their own > ioctls), but useful when we add properties to CRTCs, planes and other > objects. > > Signed-off-by: Paulo Zanoni > --- >

[PATCH 4/8] drm: add generic ioctls to get/set properties on any object

2012-03-30 Thread Eugeni Dodonov
On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni wrote: > + switch (arg_obj->type) { > + case DRM_MODE_OBJECT_CONNECTOR: > + ret = drm_mode_connector_set_obj_prop(arg_obj, property, > + arg->value); > + break;

Re: [PATCH 4/8] drm: add generic ioctls to get/set properties on any object

2012-03-30 Thread Ville Syrjälä
On Thu, Mar 29, 2012 at 06:27:22PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com Useless for connector properties (since they already have their own ioctls), but useful when we add properties to CRTCs, planes and other objects. Signed-off-by: Paulo Zanoni

[PATCH 4/8] drm: add generic ioctls to get/set properties on any object

2012-03-29 Thread Paulo Zanoni
From: Paulo Zanoni Useless for connector properties (since they already have their own ioctls), but useful when we add properties to CRTCs, planes and other objects. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/drm_crtc.c | 180

[PATCH 4/8] drm: add generic ioctls to get/set properties on any object

2012-03-29 Thread Paulo Zanoni
From: Paulo Zanoni paulo.r.zan...@intel.com Useless for connector properties (since they already have their own ioctls), but useful when we add properties to CRTCs, planes and other objects. Signed-off-by: Paulo Zanoni paulo.r.zan...@intel.com --- drivers/gpu/drm/drm_crtc.c | 180

Re: [PATCH 4/8] drm: add generic ioctls to get/set properties on any object

2012-03-29 Thread Eugeni Dodonov
On Thu, Mar 29, 2012 at 18:27, Paulo Zanoni przan...@gmail.com wrote: + switch (arg_obj-type) { + case DRM_MODE_OBJECT_CONNECTOR: + ret = drm_mode_connector_set_obj_prop(arg_obj, property, + arg-value); +