Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: c99a515ff153 ("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>

authored by

Srinivas Kandagatla and committed by
Mark Brown
c4bb62eb 66a940b1

+3 -3
+3 -3
sound/soc/codecs/wcd937x.h
··· 552 552 struct device *wcd937x_sdw_device_get(struct device_node *np); 553 553 554 554 #else 555 - int wcd937x_sdw_free(struct wcd937x_sdw_priv *wcd, 555 + static inline int wcd937x_sdw_free(struct wcd937x_sdw_priv *wcd, 556 556 struct snd_pcm_substream *substream, 557 557 struct snd_soc_dai *dai) 558 558 { 559 559 return -EOPNOTSUPP; 560 560 } 561 561 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, 563 563 struct snd_soc_dai *dai, 564 564 void *stream, int direction) 565 565 { 566 566 return -EOPNOTSUPP; 567 567 } 568 568 569 - int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd, 569 + static inline int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd, 570 570 struct snd_pcm_substream *substream, 571 571 struct snd_pcm_hw_params *params, 572 572 struct snd_soc_dai *dai)