Skip to content

Commit 6ff32e6

Browse files
simontrimmerLucas Tanure
authored andcommitted
ASoC: clsic-codec: tidy some trivial static analysis warnings
- local functions can be made static - explicitly use address of function Change-Id: I154b08d3319bb3cc1b613c622af4cdf1a49476e3 Signed-off-by: Simon Trimmer <[email protected]>
1 parent 07c0eb1 commit 6ff32e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sound/soc/codecs/clsic-codec.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ static void clsic_micbias_init(struct clsic_codec *clsic_codec)
276276
* _DISCH when setting _EN - use regmap_update_bits to make sure that at most
277277
* only one of the bits can be set at any point in time.
278278
*/
279-
int clsic_micbias_ev(struct snd_soc_dapm_widget *w,
280-
struct snd_kcontrol *kcontrol, int event)
279+
static int clsic_micbias_ev(struct snd_soc_dapm_widget *w,
280+
struct snd_kcontrol *kcontrol, int event)
281281
{
282282
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
283283
struct clsic_codec *clsic_codec = snd_soc_codec_get_drvdata(codec);
@@ -318,8 +318,8 @@ int clsic_micbias_ev(struct snd_soc_dapm_widget *w,
318318
* The function counts the total number of events using the PRE_PMU step and
319319
* then sets the TACNA_IN_VU in the final POST_PMU event.
320320
*/
321-
int clsic_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
322-
int event)
321+
static int clsic_in_ev(struct snd_soc_dapm_widget *w,
322+
struct snd_kcontrol *kcontrol, int event)
323323
{
324324
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
325325
struct tacna_priv *priv = snd_soc_codec_get_drvdata(codec);
@@ -1716,7 +1716,7 @@ static struct snd_soc_dai_driver clsic_dai[] = {
17161716
.rates = TACNA_RATES,
17171717
.formats = TACNA_FORMATS,
17181718
},
1719-
.compress_new = snd_soc_new_compress,
1719+
.compress_new = &snd_soc_new_compress,
17201720
},
17211721
{
17221722
.name = "clsic-dsp-trace",

0 commit comments

Comments
 (0)