drm/bridge: adv7511: Constify HDMI CODEC platform data
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 5 Sep 2017 12:10:18 +0000 (14:10 +0200)
committerArchit Taneja <architt@codeaurora.org>
Sat, 16 Sep 2017 09:41:04 +0000 (15:11 +0530)
The HDMI codec platform data is global driver state shared by all
instances. As such it should not be modified (and is not), to make this
explicit declare it as const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170905121018.11477-4-lars@metafoo.de
drivers/gpu/drm/bridge/adv7511/adv7511_audio.c

index 67469c26bae88f9ada64e0866d73fbdcfe793886..1b4783d45c53f4b417e7f56b09ccfdbf21010930 100644 (file)
@@ -210,7 +210,7 @@ static const struct hdmi_codec_ops adv7511_codec_ops = {
        .get_dai_id     = adv7511_hdmi_i2s_get_dai_id,
 };
 
-static struct hdmi_codec_pdata codec_data = {
+static const struct hdmi_codec_pdata codec_data = {
        .ops = &adv7511_codec_ops,
        .max_i2s_channels = 2,
        .i2s = 1,