drm/atomic: Constify the old/new state accessors
authorMaxime Ripard <maxime@cerno.tech>
Wed, 23 Nov 2022 15:25:51 +0000 (16:25 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 28 Nov 2022 10:46:50 +0000 (11:46 +0100)
commit2081bd8994362785b07b435bdc0c5b53d46b1205
tree713ff1258b6d273bd7abf41564daddb6adff2085
parent7783cc67862f9166c901bfa0f80b717aa8d354dd
drm/atomic: Constify the old/new state accessors

The drm_atomic_get_(old|new)_*_state don't modify the passed
drm_atomic_state, so we can make it const.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20221123-rpi-kunit-tests-v1-9-051a0bb60a16@cerno.tech
drivers/gpu/drm/drm_atomic.c
include/drm/drm_atomic.h