Re: [PATCH 2/9] drm/vc4: hdmi: Constify container_of wrappers

2023-01-11 Thread Jani Nikula
On Wed, 11 Jan 2023, Thomas Zimmermann wrote: > Hi > > Am 07.12.22 um 17:07 schrieb Maxime Ripard: >> None of our wrappers around container_of to access our objects from the >> DRM object pointer actually modify the latter. >> >> Let's make them const. >> >> Signed-off-by: Maxime Ripard > > Per

Re: [PATCH 2/9] drm/vc4: hdmi: Constify container_of wrappers

2023-01-11 Thread Thomas Zimmermann
Hi Am 07.12.22 um 17:07 schrieb Maxime Ripard: None of our wrappers around container_of to access our objects from the DRM object pointer actually modify the latter. Let's make them const. Signed-off-by: Maxime Ripard Personally, I wouldn't take this patch as it does an implicit const cast

[PATCH 2/9] drm/vc4: hdmi: Constify container_of wrappers

2022-12-07 Thread Maxime Ripard
None of our wrappers around container_of to access our objects from the DRM object pointer actually modify the latter. Let's make them const. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm