From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: [PATCH] ASoC: rt5645: Make a few struct const Date: Fri, 15 Sep 2017 10:27:10 +0200 Message-ID: <20170915102710.0e4550b2@endymion> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 3899C266C85 for ; Fri, 15 Sep 2017 10:27:12 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org Cc: Oder Chiou , Pierre-Louis Bossart , Takashi Iwai , Liam Girdwood , Mark Brown , Ian W Morrison , Bard Liao List-Id: alsa-devel@alsa-project.org These dmi_system_id structures and associated platform data are never modified so they can be marked const. Signed-off-by: Jean Delvare Cc: Bard Liao Cc: Oder Chiou Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai -- sound/soc/codecs/rt5645.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- linux-4.14-rc0.orig/sound/soc/codecs/rt5645.c 2017-09-14 11:08:35.328003671 +0200 +++ linux-4.14-rc0/sound/soc/codecs/rt5645.c 2017-09-14 11:38:34.014328130 +0200 @@ -3637,14 +3637,14 @@ static const struct dmi_system_id dmi_pl {} }; -static struct rt5645_platform_data general_platform_data2 = { +static const struct rt5645_platform_data general_platform_data2 = { .dmic1_data_pin = RT5645_DMIC_DATA_IN2N, .dmic2_data_pin = RT5645_DMIC2_DISABLE, .jd_mode = 3, .inv_jd1_1 = true, }; -static struct dmi_system_id dmi_platform_asus_t100ha[] = { +static const struct dmi_system_id dmi_platform_asus_t100ha[] = { { .ident = "ASUS T100HAN", .matches = { @@ -3655,11 +3655,11 @@ static struct dmi_system_id dmi_platform { } }; -static struct rt5645_platform_data minix_z83_4_platform_data = { +static const struct rt5645_platform_data minix_z83_4_platform_data = { .jd_mode = 3, }; -static struct dmi_system_id dmi_platform_minix_z83_4[] = { +static const struct dmi_system_id dmi_platform_minix_z83_4[] = { { .ident = "MINIX Z83-4", .matches = { -- Jean Delvare SUSE L3 Support