]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/client: Constify modes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 3 Mar 2025 09:38:47 +0000 (11:38 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Mar 2025 16:29:33 +0000 (18:29 +0200)
commitf68429691c938a2e9131faf2ab2a8f0563966ba1
treee680fd65d99b67405fb85f86ba0d15bc33983efe
parent10646ddac2917b31c985ceff0e4982c42a9c924b
drm/client: Constify modes

The modes used by the client code live on the connectors' mode
lists, which are not owned by the client code, and thus it has
no business modifying the modes. Mark the modes const to make
that fact abundantly clear.

v2: Fix up the kunit test

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250303093847.7698-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_client_modeset.c
drivers/gpu/drm/tests/drm_client_modeset_test.c