ASoC: rt*: Constify static struct acpi_device_id
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 24 Feb 2021 21:19:17 +0000 (22:19 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:06:34 +0000 (13:06 +0000)
These are never modified, so make them const to allow the compiler to
put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210224211918.39109-4-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1011.c
sound/soc/codecs/rt1015.c
sound/soc/codecs/rt1016.c
sound/soc/codecs/rt1305.c
sound/soc/codecs/rt1308.c

index 098ecf13814d6b527af63ef11ed3d2f06e07e7a6..6877be5f36b9e6a0c2c2d0625e53d9c51fc420d7 100644 (file)
@@ -2151,7 +2151,7 @@ MODULE_DEVICE_TABLE(of, rt1011_of_match);
 #endif
 
 #ifdef CONFIG_ACPI
-static struct acpi_device_id rt1011_acpi_match[] = {
+static const struct acpi_device_id rt1011_acpi_match[] = {
        {"10EC1011", 0,},
        {},
 };
index 501cc45240b4a5ffb7c8ba03e85ed300fb8950db..3cd967ae999d03a41e7ddcc755cd381b3d0da72a 100644 (file)
@@ -1121,7 +1121,7 @@ MODULE_DEVICE_TABLE(of, rt1015_of_match);
 #endif
 
 #ifdef CONFIG_ACPI
-static struct acpi_device_id rt1015_acpi_match[] = {
+static const struct acpi_device_id rt1015_acpi_match[] = {
        {"10EC1015", 0,},
        {},
 };
index 483375fc16cac0d99e756de09d4920842ceb755f..c14a809da52bba4023e2c8a03d952ec990b24374 100644 (file)
@@ -623,7 +623,7 @@ MODULE_DEVICE_TABLE(of, rt1016_of_match);
 #endif
 
 #ifdef CONFIG_ACPI
-static struct acpi_device_id rt1016_acpi_match[] = {
+static const struct acpi_device_id rt1016_acpi_match[] = {
        {"10EC1016", 0,},
        {},
 };
index 4e9dfd235e59abbb38bc3ab3759bf692fc6e96e9..16aa405fb8f09589bcdba201b1c6f051aa976a4f 100644 (file)
@@ -975,7 +975,7 @@ MODULE_DEVICE_TABLE(of, rt1305_of_match);
 #endif
 
 #ifdef CONFIG_ACPI
-static struct acpi_device_id rt1305_acpi_match[] = {
+static const struct acpi_device_id rt1305_acpi_match[] = {
        {"10EC1305", 0,},
        {"10EC1306", 0,},
        {},
index b75931a69a1cc0bcf513a7cc053239995957d36d..76e65844543d4756483ecba29f6fd917d88285bb 100644 (file)
@@ -790,7 +790,7 @@ MODULE_DEVICE_TABLE(of, rt1308_of_match);
 #endif
 
 #ifdef CONFIG_ACPI
-static struct acpi_device_id rt1308_acpi_match[] = {
+static const struct acpi_device_id rt1308_acpi_match[] = {
        { "10EC1308", 0, },
        { },
 };