Re: [Intel-gfx] [PATCH 2/6] drm/i915: add helper functions to get device ptr

2020-01-13 Thread Jani Nikula
On Tue, 14 Jan 2020, "Bharadiya,Pankaj" wrote: > Hi Jani, > > On Mon, Jan 13, 2020 at 02:14:51PM +0200, Jani Nikula wrote: >> On Mon, 13 Jan 2020, Pankaj Bharadiya >> wrote: >> > We will need struct drm_device pointer to pass it to drm_WARN* calls. >> > >> > Add helper functions to exract drm_

Re: [Intel-gfx] [PATCH 2/6] drm/i915: add helper functions to get device ptr

2020-01-13 Thread Bharadiya,Pankaj
Hi Jani, On Mon, Jan 13, 2020 at 02:14:51PM +0200, Jani Nikula wrote: > On Mon, 13 Jan 2020, Pankaj Bharadiya > wrote: > > We will need struct drm_device pointer to pass it to drm_WARN* calls. > > > > Add helper functions to exract drm_device pointer from various structs. > > Please don't do t

Re: [Intel-gfx] [PATCH 2/6] drm/i915: add helper functions to get device ptr

2020-01-13 Thread Jani Nikula
On Mon, 13 Jan 2020, Pankaj Bharadiya wrote: > We will need struct drm_device pointer to pass it to drm_WARN* calls. > > Add helper functions to exract drm_device pointer from various structs. Please don't do this. We use the helpers we currently have when they involve something more complex th

[Intel-gfx] [PATCH 2/6] drm/i915: add helper functions to get device ptr

2020-01-13 Thread Pankaj Bharadiya
We will need struct drm_device pointer to pass it to drm_WARN* calls. Add helper functions to exract drm_device pointer from various structs. Signed-off-by: Pankaj Bharadiya --- drivers/gpu/drm/i915/display/intel_display_types.h | 14 ++ drivers/gpu/drm/i915/gvt/gvt.h