mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: Convert atom machine data to C99 style
C99 style struct initialization helps in readability as well as initialization of variables not specified as NULL. Patch modifies all atom machine data. Suggested-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Naveen M <naveen.m@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
133e6e5c27
commit
edc692e505
|
@ -453,12 +453,20 @@ static const struct dmi_system_id cht_table[] = {
|
||||||
|
|
||||||
|
|
||||||
static struct sst_acpi_mach cht_surface_mach = {
|
static struct sst_acpi_mach cht_surface_mach = {
|
||||||
"10EC5640", "cht-bsw-rt5645", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
.id = "10EC5640",
|
||||||
&chv_platform_data };
|
.drv_name = "cht-bsw-rt5645",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &chv_platform_data,
|
||||||
|
};
|
||||||
|
|
||||||
static struct sst_acpi_mach byt_thinkpad_10 = {
|
static struct sst_acpi_mach byt_thinkpad_10 = {
|
||||||
"10EC5640", "cht-bsw-rt5672", "intel/fw_sst_0f28.bin", "cht-bsw", NULL,
|
.id = "10EC5640",
|
||||||
&byt_rvp_platform_data };
|
.drv_name = "cht-bsw-rt5672",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &byt_rvp_platform_data,
|
||||||
|
};
|
||||||
|
|
||||||
static struct sst_acpi_mach *cht_quirk(void *arg)
|
static struct sst_acpi_mach *cht_quirk(void *arg)
|
||||||
{
|
{
|
||||||
|
@ -486,68 +494,175 @@ static struct sst_acpi_mach *byt_quirk(void *arg)
|
||||||
|
|
||||||
|
|
||||||
static struct sst_acpi_mach sst_acpi_bytcr[] = {
|
static struct sst_acpi_mach sst_acpi_bytcr[] = {
|
||||||
{"10EC5640", "bytcr_rt5640", "intel/fw_sst_0f28.bin", "bytcr_rt5640", byt_quirk,
|
{
|
||||||
&byt_rvp_platform_data },
|
.id = "10EC5640",
|
||||||
{"10EC5642", "bytcr_rt5640", "intel/fw_sst_0f28.bin", "bytcr_rt5640", NULL,
|
.drv_name = "bytcr_rt5640",
|
||||||
&byt_rvp_platform_data },
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
{"INTCCFFD", "bytcr_rt5640", "intel/fw_sst_0f28.bin", "bytcr_rt5640", NULL,
|
.board = "bytcr_rt5640",
|
||||||
&byt_rvp_platform_data },
|
.machine_quirk = byt_quirk,
|
||||||
{"10EC5651", "bytcr_rt5651", "intel/fw_sst_0f28.bin", "bytcr_rt5651", NULL,
|
.pdata = &byt_rvp_platform_data,
|
||||||
&byt_rvp_platform_data },
|
},
|
||||||
{"DLGS7212", "bytcht_da7213", "intel/fw_sst_0f28.bin", "bytcht_da7213", NULL,
|
{
|
||||||
&byt_rvp_platform_data },
|
.id = "10EC5642",
|
||||||
{"DLGS7213", "bytcht_da7213", "intel/fw_sst_0f28.bin", "bytcht_da7213", NULL,
|
.drv_name = "bytcr_rt5640",
|
||||||
&byt_rvp_platform_data },
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "bytcr_rt5640",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "INTCCFFD",
|
||||||
|
.drv_name = "bytcr_rt5640",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "bytcr_rt5640",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "10EC5651",
|
||||||
|
.drv_name = "bytcr_rt5651",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "bytcr_rt5651",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "DLGS7212",
|
||||||
|
.drv_name = "bytcht_da7213",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "bytcht_da7213",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "DLGS7213",
|
||||||
|
.drv_name = "bytcht_da7213",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "bytcht_da7213",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
/* some Baytrail platforms rely on RT5645, use CHT machine driver */
|
/* some Baytrail platforms rely on RT5645, use CHT machine driver */
|
||||||
{"10EC5645", "cht-bsw-rt5645", "intel/fw_sst_0f28.bin", "cht-bsw", NULL,
|
{
|
||||||
&byt_rvp_platform_data },
|
.id = "10EC5645",
|
||||||
{"10EC5648", "cht-bsw-rt5645", "intel/fw_sst_0f28.bin", "cht-bsw", NULL,
|
.drv_name = "cht-bsw-rt5645",
|
||||||
&byt_rvp_platform_data },
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "10EC5648",
|
||||||
|
.drv_name = "cht-bsw-rt5645",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH)
|
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH)
|
||||||
/*
|
/*
|
||||||
* This is always last in the table so that it is selected only when
|
* This is always last in the table so that it is selected only when
|
||||||
* enabled explicitly and there is no codec-related information in SSDT
|
* enabled explicitly and there is no codec-related information in SSDT
|
||||||
*/
|
*/
|
||||||
{"80860F28", "bytcht_nocodec", "intel/fw_sst_0f28.bin", "bytcht_nocodec", NULL,
|
{
|
||||||
&byt_rvp_platform_data },
|
.id = "80860F28",
|
||||||
|
.drv_name = "bytcht_nocodec",
|
||||||
|
.fw_filename = "intel/fw_sst_0f28.bin",
|
||||||
|
.board = "bytcht_nocodec",
|
||||||
|
.pdata = &byt_rvp_platform_data
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Cherryview-based platforms: CherryTrail and Braswell */
|
/* Cherryview-based platforms: CherryTrail and Braswell */
|
||||||
static struct sst_acpi_mach sst_acpi_chv[] = {
|
static struct sst_acpi_mach sst_acpi_chv[] = {
|
||||||
{"10EC5670", "cht-bsw-rt5672", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
{
|
||||||
&chv_platform_data },
|
.id = "10EC5670",
|
||||||
{"10EC5672", "cht-bsw-rt5672", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
.drv_name = "cht-bsw-rt5672",
|
||||||
&chv_platform_data },
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
{"10EC5645", "cht-bsw-rt5645", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
.board = "cht-bsw",
|
||||||
&chv_platform_data },
|
.pdata = &chv_platform_data
|
||||||
{"10EC5650", "cht-bsw-rt5645", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
},
|
||||||
&chv_platform_data },
|
{
|
||||||
{"10EC3270", "cht-bsw-rt5645", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
.id = "10EC5672",
|
||||||
&chv_platform_data },
|
.drv_name = "cht-bsw-rt5672",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "10EC5645",
|
||||||
|
.drv_name = "cht-bsw-rt5645",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "10EC5650",
|
||||||
|
.drv_name = "cht-bsw-rt5645",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "10EC3270",
|
||||||
|
.drv_name = "cht-bsw-rt5645",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "cht-bsw",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
|
||||||
{"193C9890", "cht-bsw-max98090", "intel/fw_sst_22a8.bin", "cht-bsw", NULL,
|
{
|
||||||
&chv_platform_data },
|
.id = "193C9890",
|
||||||
{"DLGS7212", "bytcht_da7213", "intel/fw_sst_22a8.bin", "bytcht_da7213", NULL,
|
.drv_name = "cht-bsw-max98090",
|
||||||
&chv_platform_data },
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
{"DLGS7213", "bytcht_da7213", "intel/fw_sst_22a8.bin", "bytcht_da7213", NULL,
|
.board = "cht-bsw",
|
||||||
&chv_platform_data },
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "DLGS7212",
|
||||||
|
.drv_name = "bytcht_da7213",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "bytcht_da7213",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "DLGS7213",
|
||||||
|
.drv_name = "bytcht_da7213",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "bytcht_da7213",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
/* some CHT-T platforms rely on RT5640, use Baytrail machine driver */
|
/* some CHT-T platforms rely on RT5640, use Baytrail machine driver */
|
||||||
{"10EC5640", "bytcr_rt5640", "intel/fw_sst_22a8.bin", "bytcr_rt5640", cht_quirk,
|
{
|
||||||
&chv_platform_data },
|
.id = "10EC5640",
|
||||||
{"10EC3276", "bytcr_rt5640", "intel/fw_sst_22a8.bin", "bytcr_rt5640", NULL,
|
.drv_name = "bytcr_rt5640",
|
||||||
&chv_platform_data },
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "bytcr_rt5640",
|
||||||
|
.machine_quirk = cht_quirk,
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.id = "10EC3276",
|
||||||
|
.drv_name = "bytcr_rt5640",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "bytcr_rt5640",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
/* some CHT-T platforms rely on RT5651, use Baytrail machine driver */
|
/* some CHT-T platforms rely on RT5651, use Baytrail machine driver */
|
||||||
{"10EC5651", "bytcr_rt5651", "intel/fw_sst_22a8.bin", "bytcr_rt5651", NULL,
|
{
|
||||||
&chv_platform_data },
|
.id = "10EC5651",
|
||||||
|
.drv_name = "bytcr_rt5651",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "bytcr_rt5651",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH)
|
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH)
|
||||||
/*
|
/*
|
||||||
* This is always last in the table so that it is selected only when
|
* This is always last in the table so that it is selected only when
|
||||||
* enabled explicitly and there is no codec-related information in SSDT
|
* enabled explicitly and there is no codec-related information in SSDT
|
||||||
*/
|
*/
|
||||||
{"808622A8", "bytcht_nocodec", "intel/fw_sst_22a8.bin", "bytcht_nocodec", NULL,
|
{
|
||||||
&chv_platform_data },
|
.id = "808622A8",
|
||||||
|
.drv_name = "bytcht_nocodec",
|
||||||
|
.fw_filename = "intel/fw_sst_22a8.bin",
|
||||||
|
.board = "bytcht_nocodec",
|
||||||
|
.pdata = &chv_platform_data
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue