[PATCH 1/2] drm/i915: abstract the conversion of device->minor out to a macro

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Oct 12 15:16:49 CEST 2013


On Fri, Oct 11, 2013 at 03:05:56PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> This will make the next patch to change how this works a lot cleaner.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  drivers/gpu/drm/i915/i915_sysfs.c | 32 +++++++++++++++++---------------
>  1 file changed, 17 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c
> index 44f4c1a..5caffb7 100644
> --- a/drivers/gpu/drm/i915/i915_sysfs.c
> +++ b/drivers/gpu/drm/i915/i915_sysfs.c
> @@ -32,6 +32,8 @@
>  #include "intel_drv.h"
>  #include "i915_drv.h"
>  
> +#define dev_to_drm_minor(d) container_of((d), struct drm_minor, kdev)

Maybe this should be in include/drm somewhere?


More information about the dri-devel mailing list