Skip to content

Commit abfedab

Browse files
ArvindYadavCsbroonie
authored andcommitted
ASoC: rt5665: constify acpi_device_id.
acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by <acpi/acpi_bus.h> work with const acpi_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent b833786 commit abfedab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/rt5665.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4970,7 +4970,7 @@ MODULE_DEVICE_TABLE(of, rt5665_of_match);
49704970
#endif
49714971

49724972
#ifdef CONFIG_ACPI
4973-
static struct acpi_device_id rt5665_acpi_match[] = {
4973+
static const struct acpi_device_id rt5665_acpi_match[] = {
49744974
{"10EC5665", 0,},
49754975
{"10EC5666", 0,},
49764976
{"10EC5668", 0,},

0 commit comments

Comments
 (0)