Răsfoiți Sursa

eeepc-wmi: Constify asus_quirks[] DMI table

Constify the asus_quirks[] DMI table. There's no need to have it
writeable during runtime.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Mathias Krause 11 ani în urmă
părinte
comite
7e6c227ceb
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/platform/x86/eeepc-wmi.c

+ 1 - 1
drivers/platform/x86/eeepc-wmi.c

@@ -145,7 +145,7 @@ static int dmi_matched(const struct dmi_system_id *dmi)
 	return 1;
 	return 1;
 }
 }
 
 
-static struct dmi_system_id asus_quirks[] = {
+static const struct dmi_system_id asus_quirks[] = {
 	{
 	{
 		.callback = dmi_matched,
 		.callback = dmi_matched,
 		.ident = "ASUSTeK Computer INC. 1000H",
 		.ident = "ASUSTeK Computer INC. 1000H",