Re: [Intel-gfx] [PATCH 40/59] drm/arcpgu: Stop using drm_device->dev_private

2020-09-04 Thread Sam Ravnborg
Hi Daniel. On Fri, Sep 04, 2020 at 03:42:44PM +0200, Daniel Vetter wrote: > On Fri, Apr 24, 2020 at 6:46 PM Sam Ravnborg wrote: > > > > Hi Daniel. > > > > On Wed, Apr 15, 2020 at 09:40:15AM +0200, Daniel Vetter wrote: > > > Upcasting using a container_of macro is more typesafe, faster and > > > e

Re: [Intel-gfx] [PATCH 40/59] drm/arcpgu: Stop using drm_device->dev_private

2020-09-04 Thread Daniel Vetter
On Fri, Apr 24, 2020 at 6:46 PM Sam Ravnborg wrote: > > Hi Daniel. > > On Wed, Apr 15, 2020 at 09:40:15AM +0200, Daniel Vetter wrote: > > Upcasting using a container_of macro is more typesafe, faster and > > easier for the compiler to optimize. > > > > Signed-off-by: Daniel Vetter > > Cc: Alexey

Re: [Intel-gfx] [PATCH 40/59] drm/arcpgu: Stop using drm_device->dev_private

2020-04-24 Thread Sam Ravnborg
Hi Daniel. On Wed, Apr 15, 2020 at 09:40:15AM +0200, Daniel Vetter wrote: > Upcasting using a container_of macro is more typesafe, faster and > easier for the compiler to optimize. > > Signed-off-by: Daniel Vetter > Cc: Alexey Brodkin Subject: drm/arc: arcpgu: Stop using drm_device->dev_privat

[Intel-gfx] [PATCH 40/59] drm/arcpgu: Stop using drm_device->dev_private

2020-04-15 Thread Daniel Vetter
Upcasting using a container_of macro is more typesafe, faster and easier for the compiler to optimize. Signed-off-by: Daniel Vetter Cc: Alexey Brodkin --- drivers/gpu/drm/arc/arcpgu.h | 2 ++ drivers/gpu/drm/arc/arcpgu_crtc.c | 4 ++-- drivers/gpu/drm/arc/arcpgu_drv.c | 4 +--- 3 files ch