Skip to content

Commit 584e86e

Browse files
rfvirgilbroonie
authored andcommitted
firmware: cs_dsp: Make wmfw and bin filename arguments const char *
The wmfw_filename and bin_filename strings passed into cs_dsp_power_up() and cs_dsp_adsp1_power_up() should be const char *. Signed-off-by: Richard Fitzgerald <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent bff9285 commit 584e86e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

drivers/firmware/cirrus/cs_dsp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,8 +2410,8 @@ EXPORT_SYMBOL_NS_GPL(cs_dsp_adsp1_init, FW_CS_DSP);
24102410
* Return: Zero for success, a negative number on error.
24112411
*/
24122412
int cs_dsp_adsp1_power_up(struct cs_dsp *dsp,
2413-
const struct firmware *wmfw_firmware, char *wmfw_filename,
2414-
const struct firmware *coeff_firmware, char *coeff_filename,
2413+
const struct firmware *wmfw_firmware, const char *wmfw_filename,
2414+
const struct firmware *coeff_firmware, const char *coeff_filename,
24152415
const char *fw_name)
24162416
{
24172417
unsigned int val;
@@ -2704,8 +2704,8 @@ static void cs_dsp_halo_stop_watchdog(struct cs_dsp *dsp)
27042704
* Return: Zero for success, a negative number on error.
27052705
*/
27062706
int cs_dsp_power_up(struct cs_dsp *dsp,
2707-
const struct firmware *wmfw_firmware, char *wmfw_filename,
2708-
const struct firmware *coeff_firmware, char *coeff_filename,
2707+
const struct firmware *wmfw_firmware, const char *wmfw_filename,
2708+
const struct firmware *coeff_firmware, const char *coeff_filename,
27092709
const char *fw_name)
27102710
{
27112711
int ret;

include/linux/firmware/cirrus/cs_dsp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ int cs_dsp_adsp2_init(struct cs_dsp *dsp);
213213
int cs_dsp_halo_init(struct cs_dsp *dsp);
214214

215215
int cs_dsp_adsp1_power_up(struct cs_dsp *dsp,
216-
const struct firmware *wmfw_firmware, char *wmfw_filename,
217-
const struct firmware *coeff_firmware, char *coeff_filename,
216+
const struct firmware *wmfw_firmware, const char *wmfw_filename,
217+
const struct firmware *coeff_firmware, const char *coeff_filename,
218218
const char *fw_name);
219219
void cs_dsp_adsp1_power_down(struct cs_dsp *dsp);
220220
int cs_dsp_power_up(struct cs_dsp *dsp,
221-
const struct firmware *wmfw_firmware, char *wmfw_filename,
222-
const struct firmware *coeff_firmware, char *coeff_filename,
221+
const struct firmware *wmfw_firmware, const char *wmfw_filename,
222+
const struct firmware *coeff_firmware, const char *coeff_filename,
223223
const char *fw_name);
224224
void cs_dsp_power_down(struct cs_dsp *dsp);
225225
int cs_dsp_run(struct cs_dsp *dsp);

0 commit comments

Comments
 (0)