diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-23 13:23:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-24 11:33:55 -0400 |
commit | 8a43c2240c862bbf3fc612d0533b891bd75ec771 (patch) | |
tree | c2d0c471839ceec0ee3ca1ed90d31e4f549f1559 | |
parent | 1628ef89042fdb90aaea657942455e00e160174d (diff) |
ASoC: rt5514: 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 <arvind.yadav.cs@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/rt5514.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c index 882fdc4a6fd4..3d0aea8f3801 100644 --- a/sound/soc/codecs/rt5514.c +++ b/sound/soc/codecs/rt5514.c | |||
@@ -1134,7 +1134,7 @@ MODULE_DEVICE_TABLE(of, rt5514_of_match); | |||
1134 | #endif | 1134 | #endif |
1135 | 1135 | ||
1136 | #ifdef CONFIG_ACPI | 1136 | #ifdef CONFIG_ACPI |
1137 | static struct acpi_device_id rt5514_acpi_match[] = { | 1137 | static const struct acpi_device_id rt5514_acpi_match[] = { |
1138 | { "10EC5514", 0}, | 1138 | { "10EC5514", 0}, |
1139 | {}, | 1139 | {}, |
1140 | }; | 1140 | }; |