]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
firmware: cs_dsp: Make wmfw and bin filename arguments const char *
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 10 Jul 2024 10:36:38 +0000 (11:36 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jul 2024 17:45:03 +0000 (18:45 +0100)
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 <rf@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240710103640.78197-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/cs_dsp.c
include/linux/firmware/cirrus/cs_dsp.h

index 9bd3f78396ea2257565e03b96d9408bc30201918..fda6faa8c83598d30eb31f98e531cd7c9c78503d 100644 (file)
@@ -2410,8 +2410,8 @@ EXPORT_SYMBOL_NS_GPL(cs_dsp_adsp1_init, FW_CS_DSP);
  * Return: Zero for success, a negative number on error.
  */
 int cs_dsp_adsp1_power_up(struct cs_dsp *dsp,
-                         const struct firmware *wmfw_firmware, char *wmfw_filename,
-                         const struct firmware *coeff_firmware, char *coeff_filename,
+                         const struct firmware *wmfw_firmware, const char *wmfw_filename,
+                         const struct firmware *coeff_firmware, const char *coeff_filename,
                          const char *fw_name)
 {
        unsigned int val;
@@ -2704,8 +2704,8 @@ static void cs_dsp_halo_stop_watchdog(struct cs_dsp *dsp)
  * Return: Zero for success, a negative number on error.
  */
 int cs_dsp_power_up(struct cs_dsp *dsp,
-                   const struct firmware *wmfw_firmware, char *wmfw_filename,
-                   const struct firmware *coeff_firmware, char *coeff_filename,
+                   const struct firmware *wmfw_firmware, const char *wmfw_filename,
+                   const struct firmware *coeff_firmware, const char *coeff_filename,
                    const char *fw_name)
 {
        int ret;
index 82687e07a7c27086c1389fda9554f3dc35eaa26c..8078dc377948886794c9f21a6e2b584ecfcffb65 100644 (file)
@@ -213,13 +213,13 @@ int cs_dsp_adsp2_init(struct cs_dsp *dsp);
 int cs_dsp_halo_init(struct cs_dsp *dsp);
 
 int cs_dsp_adsp1_power_up(struct cs_dsp *dsp,
-                         const struct firmware *wmfw_firmware, char *wmfw_filename,
-                         const struct firmware *coeff_firmware, char *coeff_filename,
+                         const struct firmware *wmfw_firmware, const char *wmfw_filename,
+                         const struct firmware *coeff_firmware, const char *coeff_filename,
                          const char *fw_name);
 void cs_dsp_adsp1_power_down(struct cs_dsp *dsp);
 int cs_dsp_power_up(struct cs_dsp *dsp,
-                   const struct firmware *wmfw_firmware, char *wmfw_filename,
-                   const struct firmware *coeff_firmware, char *coeff_filename,
+                   const struct firmware *wmfw_firmware, const char *wmfw_filename,
+                   const struct firmware *coeff_firmware, const char *coeff_filename,
                    const char *fw_name);
 void cs_dsp_power_down(struct cs_dsp *dsp);
 int cs_dsp_run(struct cs_dsp *dsp);