summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-07-23 22:53:27 +0530
committerMark Brown <broonie@kernel.org>2017-07-24 16:34:53 +0100
commitabfedab1163a6b01ab400a67f4eed0fea3ccbdd1 (patch)
tree600508827193ced3667e38388054a772edc4db8e
parentb833786b69c14fe98846c38d36d8f6e5e92ccdd8 (diff)
downloadop-kernel-dev-abfedab1163a6b01ab400a67f4eed0fea3ccbdd1.zip
op-kernel-dev-abfedab1163a6b01ab400a67f4eed0fea3ccbdd1.tar.gz
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 <arvind.yadav.cs@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5665.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 54ace3b..d0a9490 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4970,7 +4970,7 @@ MODULE_DEVICE_TABLE(of, rt5665_of_match);
#endif
#ifdef CONFIG_ACPI
-static struct acpi_device_id rt5665_acpi_match[] = {
+static const struct acpi_device_id rt5665_acpi_match[] = {
{"10EC5665", 0,},
{"10EC5666", 0,},
{"10EC5668", 0,},
OpenPOWER on IntegriCloud