]> Gentwo Git Trees - linux/.git/commit
drm/tidss: crtc: Implement destroy_state
authorMaxime Ripard <mripard@kernel.org>
Tue, 2 Sep 2025 08:32:49 +0000 (10:32 +0200)
committerMaxime Ripard <mripard@kernel.org>
Tue, 30 Sep 2025 09:56:42 +0000 (11:56 +0200)
commitec1049f66df4751e87c036cd2e45a38a7649d8af
tree5bfe06cf4ed4e4d49f840e53836c3535826077a0
parent081da11774cef200dc7e1b27891aa9f3629be17d
drm/tidss: crtc: Implement destroy_state

The tidss crtc driver implements its own state, with its own
implementation of reset and duplicate_state, but uses the default
destroy_state helper.

This somewhat works for now because the drm_crtc_state field in
tidss_crtc_state is the first field so the offset is 0, but it's pretty
fragile and it should really have its own destroy_state implementation.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250902-drm-state-readout-v1-21-14ad5315da3f@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250902-drm-state-readout-v1-21-14ad5315da3f@kernel.org
drivers/gpu/drm/tidss/tidss_crtc.c