Commit 2788808a authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mark Brown

ASoC: Intel: Skylake: make skl_dsp_fw_ops const

Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2d5f8487
...@@ -530,7 +530,7 @@ static int bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) ...@@ -530,7 +530,7 @@ static int bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id)
return 0; return 0;
} }
static struct skl_dsp_fw_ops bxt_fw_ops = { static const struct skl_dsp_fw_ops bxt_fw_ops = {
.set_state_D0 = bxt_set_dsp_D0, .set_state_D0 = bxt_set_dsp_D0,
.set_state_D3 = bxt_set_dsp_D3, .set_state_D3 = bxt_set_dsp_D3,
.set_state_D0i3 = bxt_schedule_dsp_D0i3, .set_state_D0i3 = bxt_schedule_dsp_D0i3,
......
...@@ -277,7 +277,7 @@ static unsigned int cnl_get_errno(struct sst_dsp *ctx) ...@@ -277,7 +277,7 @@ static unsigned int cnl_get_errno(struct sst_dsp *ctx)
return sst_dsp_shim_read(ctx, CNL_ADSP_ERROR_CODE); return sst_dsp_shim_read(ctx, CNL_ADSP_ERROR_CODE);
} }
static struct skl_dsp_fw_ops cnl_fw_ops = { static const struct skl_dsp_fw_ops cnl_fw_ops = {
.set_state_D0 = cnl_set_dsp_D0, .set_state_D0 = cnl_set_dsp_D0,
.set_state_D3 = cnl_set_dsp_D3, .set_state_D3 = cnl_set_dsp_D3,
.load_fw = cnl_load_base_firmware, .load_fw = cnl_load_base_firmware,
......
...@@ -503,7 +503,7 @@ static void skl_clear_module_table(struct sst_dsp *ctx) ...@@ -503,7 +503,7 @@ static void skl_clear_module_table(struct sst_dsp *ctx)
} }
} }
static struct skl_dsp_fw_ops skl_fw_ops = { static const struct skl_dsp_fw_ops skl_fw_ops = {
.set_state_D0 = skl_set_dsp_D0, .set_state_D0 = skl_set_dsp_D0,
.set_state_D3 = skl_set_dsp_D3, .set_state_D3 = skl_set_dsp_D3,
.load_fw = skl_load_base_firmware, .load_fw = skl_load_base_firmware,
...@@ -512,7 +512,7 @@ static struct skl_dsp_fw_ops skl_fw_ops = { ...@@ -512,7 +512,7 @@ static struct skl_dsp_fw_ops skl_fw_ops = {
.unload_mod = skl_unload_module, .unload_mod = skl_unload_module,
}; };
static struct skl_dsp_fw_ops kbl_fw_ops = { static const struct skl_dsp_fw_ops kbl_fw_ops = {
.set_state_D0 = skl_set_dsp_D0, .set_state_D0 = skl_set_dsp_D0,
.set_state_D3 = skl_set_dsp_D3, .set_state_D3 = skl_set_dsp_D3,
.load_fw = skl_load_base_firmware, .load_fw = skl_load_base_firmware,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment