Skip to content

Commit

Permalink
ASoC: rt5645: Make a few struct const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jdelvare authored and broonie committed Sep 19, 2017
1 parent 2bd6bf0 commit 72d7a16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/soc/codecs/rt5645.c
Original file line number Diff line number Diff line change
Expand Up @@ -3637,14 +3637,14 @@ static const struct dmi_system_id dmi_platform_gpd_win[] = {
{}
};

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 = {
Expand All @@ -3655,11 +3655,11 @@ static struct dmi_system_id dmi_platform_asus_t100ha[] = {
{ }
};

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 = {
Expand Down

0 comments on commit 72d7a16

Please sign in to comment.