ASoC: rt*: Constify static struct acpi_device_id

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>
This commit is contained in:
Rikard Falkeborn 2021-02-24 22:19:17 +01:00 committed by Mark Brown
parent f9e56a34cd
commit 3084e5f7f7
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
5 changed files with 5 additions and 5 deletions

View 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,},
{},
};

View 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,},
{},
};

View 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,},
{},
};

View 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,},
{},

View 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, },
{ },
};