[Intel-gfx] [PATCH 2/4] drm/i915: Consistent struct device naming
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Tue Aug 2 08:03:42 UTC 2016
On ma, 2016-08-01 at 19:57 +0100, Chris Wilson wrote:
> On Mon, Aug 01, 2016 at 06:38:53PM +0300, David Weinehall wrote:
> >
> > We currently have a mix of struct device *device, struct device *kdev,
> > and struct device *dev (the latter forcing us to refer to
> > struct drm_device as something else than the normal dev).
> >
> > To simplify things, always use kdev when referring to struct device.
> >
> > Signed-off-by: David Weinehall <david.weinehall at linux.intel.com>
> kdev may be confused with kdev_t, but seems reasonable due to kobj.
>
> This patch is an improvement, so
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
>
> but I was wondering if
>
> struct device *dev;
> struct drm_device *drm;
> struct i915_device *i915;
>
I'd vote for this scheme.
Regards, Joonas
> (struct i915_device is move apt now than drm_i915_private due to the
> subclassing)
>
> made more sense as a longterm goal?
> -Chris
>
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list