Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: bridge: dw-hdmi: constify copied structure

The dw_hdmi_hw structure is only copied into another structure,
so make it const.

The opportunity for this change was found using Coccinelle.

Fixes: 7ed6c665e19d ("drm: bridge/dw_hdmi-ahb-audio: add audio driver")
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1577864614-5543-16-git-send-email-Julia.Lawall@inria.fr

authored by

Julia Lawall and committed by
Neil Armstrong
d969ebe9 de2318f6

+1 -1
+1 -1
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c
··· 291 291 return IRQ_HANDLED; 292 292 } 293 293 294 - static struct snd_pcm_hardware dw_hdmi_hw = { 294 + static const struct snd_pcm_hardware dw_hdmi_hw = { 295 295 .info = SNDRV_PCM_INFO_INTERLEAVED | 296 296 SNDRV_PCM_INFO_BLOCK_TRANSFER | 297 297 SNDRV_PCM_INFO_MMAP |