Skip to content

Commit d969ebe

Browse files
JuliaLawallsuperna9999
authored andcommitted
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: 7ed6c66 ("drm: bridge/dw_hdmi-ahb-audio: add audio driver") Signed-off-by: Julia Lawall <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent de2318f commit d969ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static irqreturn_t snd_dw_hdmi_irq(int irq, void *data)
291291
return IRQ_HANDLED;
292292
}
293293

294-
static struct snd_pcm_hardware dw_hdmi_hw = {
294+
static const struct snd_pcm_hardware dw_hdmi_hw = {
295295
.info = SNDRV_PCM_INFO_INTERLEAVED |
296296
SNDRV_PCM_INFO_BLOCK_TRANSFER |
297297
SNDRV_PCM_INFO_MMAP |

0 commit comments

Comments
 (0)