Skip to content

Commit 5db9fe9

Browse files
jhovoldbroonie
authored andcommitted
ASoC: codecs: wcd938x: drop inline keywords
The compiler is generally better at deciding what functions should be inlined than driver authors are. Drop the bogus inline keyword from two functions that were neither very small or used in a single place. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20230630142717.5314-3-johan+linaro@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e5ce198 commit 5db9fe9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sound/soc/codecs/wcd938x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ static int wcd938x_mbhc_micb_ctrl_threshold_mic(struct snd_soc_component *compon
21242124
return wcd938x_mbhc_micb_adjust_voltage(component, micb_mv, MIC_BIAS_2);
21252125
}
21262126

2127-
static inline void wcd938x_mbhc_get_result_params(struct wcd938x_priv *wcd938x,
2127+
static void wcd938x_mbhc_get_result_params(struct wcd938x_priv *wcd938x,
21282128
s16 *d1_a, u16 noff,
21292129
int32_t *zdet)
21302130
{
@@ -2231,8 +2231,8 @@ static void wcd938x_mbhc_zdet_ramp(struct snd_soc_component *component,
22312231
*zr = zdet;
22322232
}
22332233

2234-
static inline void wcd938x_wcd_mbhc_qfuse_cal(struct snd_soc_component *component,
2235-
int32_t *z_val, int flag_l_r)
2234+
static void wcd938x_wcd_mbhc_qfuse_cal(struct snd_soc_component *component,
2235+
int32_t *z_val, int flag_l_r)
22362236
{
22372237
s16 q1;
22382238
int q1_cal;

0 commit comments

Comments
 (0)