alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Asoc: Intel: common: Removed unused sst_acpi_mach fields
@ 2016-04-26  2:44 Joel Holdsworth
  2016-04-26  3:14 ` Pierre-Louis Bossart
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Holdsworth @ 2016-04-26  2:44 UTC (permalink / raw)
  To: alsa-devel; +Cc: Joel Holdsworth

The fields in question are currently unused, and are unlikely to be
useful in the future:

  - "board" is a very vague name not related to a concrete matching
    criteria such as a DMI match or ACPI OEM IDs.

  - "machine_quirk" lacks the pointer arguments to be able to
    manipulate any sst-acpi structures. For it to be useful these
    would need to be added. Furthermore, a quirk function is much
    more likely to be relevant to a whole chipset, rather than a
    single board.

  - Without "machine_quirk", "pdata" serves no purpose and should
    be removed.
---
 sound/soc/intel/common/sst-acpi.c | 8 ++++----
 sound/soc/intel/common/sst-acpi.h | 5 -----
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/sound/soc/intel/common/sst-acpi.c b/sound/soc/intel/common/sst-acpi.c
index 2c5eda1..aba6575 100644
--- a/sound/soc/intel/common/sst-acpi.c
+++ b/sound/soc/intel/common/sst-acpi.c
@@ -180,7 +180,7 @@ static int sst_acpi_remove(struct platform_device *pdev)
 }
 
 static struct sst_acpi_mach haswell_machines[] = {
-	{ "INT33CA", "haswell-audio", "intel/IntcSST1.bin", NULL, NULL, NULL },
+	{ "INT33CA", "haswell-audio", "intel/IntcSST1.bin" },
 	{}
 };
 
@@ -198,7 +198,7 @@ static struct sst_acpi_desc sst_acpi_haswell_desc = {
 };
 
 static struct sst_acpi_mach broadwell_machines[] = {
-	{ "INT343A", "broadwell-audio", "intel/IntcSST2.bin", NULL, NULL, NULL },
+	{ "INT343A", "broadwell-audio", "intel/IntcSST2.bin" },
 	{}
 };
 
@@ -217,8 +217,8 @@ static struct sst_acpi_desc sst_acpi_broadwell_desc = {
 
 #if !IS_ENABLED(CONFIG_SND_SST_IPC_ACPI)
 static struct sst_acpi_mach baytrail_machines[] = {
-	{ "10EC5640", "byt-rt5640", "intel/fw_sst_0f28.bin-48kHz_i2s_master", NULL, NULL, NULL },
-	{ "193C9890", "byt-max98090", "intel/fw_sst_0f28.bin-48kHz_i2s_master", NULL, NULL, NULL },
+	{ "10EC5640", "byt-rt5640", "intel/fw_sst_0f28.bin-48kHz_i2s_master" },
+	{ "193C9890", "byt-max98090", "intel/fw_sst_0f28.bin-48kHz_i2s_master" },
 	{}
 };
 
diff --git a/sound/soc/intel/common/sst-acpi.h b/sound/soc/intel/common/sst-acpi.h
index 4dcfb7e..9eb8ade 100644
--- a/sound/soc/intel/common/sst-acpi.h
+++ b/sound/soc/intel/common/sst-acpi.h
@@ -28,9 +28,4 @@ struct sst_acpi_mach {
 	const char *drv_name;
 	/* firmware file name */
 	const char *fw_filename;
-
-	/* board name */
-	const char *board;
-	void (*machine_quirk)(void);
-	void *pdata;
 };
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-26  3:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-26  2:44 [PATCH] Asoc: Intel: common: Removed unused sst_acpi_mach fields Joel Holdsworth
2016-04-26  3:14 ` Pierre-Louis Bossart
2016-04-26  3:17   ` Pierre-Louis Bossart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).