aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-09-29 01:58:02 +0300
committerJani Nikula <jani.nikula@intel.com>2021-09-29 09:28:47 +0300
commit0a108bca94a8280ddfe2a87ad6b4173db6f0a454 (patch)
tree3eb157667bcbec20cc12da4a16563de719794307 /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915: constify color function vtable. (diff)
downloadlinux-dev-0a108bca94a8280ddfe2a87ad6b4173db6f0a454.tar.xz
linux-dev-0a108bca94a8280ddfe2a87ad6b4173db6f0a454.zip
drm/i915: constify the audio function vtable
Move the functions into read-only tables. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/5a481307a5daab40a506c3b9a64b0b37e01a1a41.1632869550.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 996855d498ec..c3ec5271869e 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1003,7 +1003,7 @@ struct drm_i915_private {
const struct intel_color_funcs *color_funcs;
/* Display internal audio functions */
- struct intel_audio_funcs audio_funcs;
+ const struct intel_audio_funcs *audio_funcs;
/* Display CDCLK functions */
struct intel_cdclk_funcs cdclk_funcs;