Skip to content

Commit c4bb62e

Browse files
Srinivas Kandagatlabroonie
authored andcommitted
ASoC: codecs: wcd937x: make stub functions inline
For some reason we ended up with stub functions that are not inline, this can result in build error if its included multiple places, as we will be redefining the same function Fixes: c99a515 ("ASoC: codecs: wcd937x-sdw: add SoundWire driver") Cc: Stable@vger.kernel.org Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20250909121954.225833-3-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 66a940b commit c4bb62e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sound/soc/codecs/wcd937x.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,21 +552,21 @@ int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd,
552552
struct device *wcd937x_sdw_device_get(struct device_node *np);
553553

554554
#else
555-
int wcd937x_sdw_free(struct wcd937x_sdw_priv *wcd,
555+
static inline int wcd937x_sdw_free(struct wcd937x_sdw_priv *wcd,
556556
struct snd_pcm_substream *substream,
557557
struct snd_soc_dai *dai)
558558
{
559559
return -EOPNOTSUPP;
560560
}
561561

562-
int wcd937x_sdw_set_sdw_stream(struct wcd937x_sdw_priv *wcd,
562+
static inline int wcd937x_sdw_set_sdw_stream(struct wcd937x_sdw_priv *wcd,
563563
struct snd_soc_dai *dai,
564564
void *stream, int direction)
565565
{
566566
return -EOPNOTSUPP;
567567
}
568568

569-
int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd,
569+
static inline int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd,
570570
struct snd_pcm_substream *substream,
571571
struct snd_pcm_hw_params *params,
572572
struct snd_soc_dai *dai)

0 commit comments

Comments
 (0)