aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2017-09-15 04:27:10 -0400
committerMark Brown <broonie@kernel.org>2017-09-19 07:54:36 -0400
commit72d7a16bb07582f8416bbcdc65fe2a1e63f11294 (patch)
treeadc195f74cc145e2c6ed42337b389f8cf93ca875
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
ASoC: rt5645: Make a few struct const
These dmi_system_id structures and associated platform data are never modified so they can be marked const. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Bard Liao <bardliao@realtek.com> Cc: Oder Chiou <oder_chiou@realtek.com> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Mark Brown <broonie@kernel.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> -- sound/soc/codecs/rt5645.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5645.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index a98647ac497c..4b2dbf0c3409 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3637,14 +3637,14 @@ static const struct dmi_system_id dmi_platform_gpd_win[] = {
3637 {} 3637 {}
3638}; 3638};
3639 3639
3640static struct rt5645_platform_data general_platform_data2 = { 3640static const struct rt5645_platform_data general_platform_data2 = {
3641 .dmic1_data_pin = RT5645_DMIC_DATA_IN2N, 3641 .dmic1_data_pin = RT5645_DMIC_DATA_IN2N,
3642 .dmic2_data_pin = RT5645_DMIC2_DISABLE, 3642 .dmic2_data_pin = RT5645_DMIC2_DISABLE,
3643 .jd_mode = 3, 3643 .jd_mode = 3,
3644 .inv_jd1_1 = true, 3644 .inv_jd1_1 = true,
3645}; 3645};
3646 3646
3647static struct dmi_system_id dmi_platform_asus_t100ha[] = { 3647static const struct dmi_system_id dmi_platform_asus_t100ha[] = {
3648 { 3648 {
3649 .ident = "ASUS T100HAN", 3649 .ident = "ASUS T100HAN",
3650 .matches = { 3650 .matches = {
@@ -3655,11 +3655,11 @@ static struct dmi_system_id dmi_platform_asus_t100ha[] = {
3655 { } 3655 { }
3656}; 3656};
3657 3657
3658static struct rt5645_platform_data minix_z83_4_platform_data = { 3658static const struct rt5645_platform_data minix_z83_4_platform_data = {
3659 .jd_mode = 3, 3659 .jd_mode = 3,
3660}; 3660};
3661 3661
3662static struct dmi_system_id dmi_platform_minix_z83_4[] = { 3662static const struct dmi_system_id dmi_platform_minix_z83_4[] = {
3663 { 3663 {
3664 .ident = "MINIX Z83-4", 3664 .ident = "MINIX Z83-4",
3665 .matches = { 3665 .matches = {