firmware: cs_dsp: Switch to using namespaced exports
authorMark Brown <broonie@kernel.org>
Fri, 25 Nov 2022 14:36:56 +0000 (14:36 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 25 Nov 2022 14:36:56 +0000 (14:36 +0000)
Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:

Use EXPORT_SYMBOL_NS_GPL() instead of EXPORT_SYMBOL_GPL() and patch the
three drivers that use cs_dsp to add the MODULE_IMPORT_NS().

To make the namespace more specific the KConfig symbol for cs_dsp is
changed from CS_DSP to FW_CS_DSP.

1  2 
drivers/firmware/cirrus/cs_dsp.c
sound/soc/codecs/wm_adsp.c

@@@ -780,12 -776,9 +780,12 @@@ int cs_dsp_coeff_write_ctrl(struct cs_d
        if (ctl->enabled && ctl->dsp->running)
                ret = cs_dsp_coeff_write_ctrl_raw(ctl, off, buf, len);
  
 -      return ret;
 +      if (ret < 0)
 +              return ret;
 +
 +      return 1;
  }
- EXPORT_SYMBOL_GPL(cs_dsp_coeff_write_ctrl);
+ EXPORT_SYMBOL_NS_GPL(cs_dsp_coeff_write_ctrl, FW_CS_DSP);
  
  static int cs_dsp_coeff_read_ctrl_raw(struct cs_dsp_coeff_ctl *ctl,
                                      unsigned int off, void *buf, size_t len)
Simple merge