Преглед на файлове

ASoC: rt5645: Constify dmi_system_id table

dmi_check_system() takes "const struct dmi_system_id *", so make the
dmi_system_id table const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Axel Lin преди 10 години
родител
ревизия
0bc7d10c4a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      sound/soc/codecs/rt5645.c

+ 1 - 1
sound/soc/codecs/rt5645.c

@@ -3221,7 +3221,7 @@ static int strago_quirk_cb(const struct dmi_system_id *id)
 	return 1;
 }
 
-static struct dmi_system_id dmi_platform_intel_braswell[] = {
+static const struct dmi_system_id dmi_platform_intel_braswell[] = {
 	{
 		.ident = "Intel Strago",
 		.callback = strago_quirk_cb,