Re: [PATCH 11/24] drm/arc: Stop using drm_device->dev_private

2020-09-04 Thread Daniel Vetter
On Fri, Sep 4, 2020 at 4:40 PM Daniel Vetter wrote: > > Upcasting using a container_of macro is more typesafe, faster and > easier for the compiler to optimize. > > Cc: Eugeniy Paltsev > Signed-off-by: Daniel Vetter > Cc: Alexey Brodkin >From the old thread Sam just confirmed he's ok with dev_

[PATCH 11/24] drm/arc: Stop using drm_device->dev_private

2020-09-04 Thread Daniel Vetter
Upcasting using a container_of macro is more typesafe, faster and easier for the compiler to optimize. Cc: Eugeniy Paltsev 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