]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: codecs: wcd939x: Minor white-space and define cleanup
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 23 May 2024 10:42:28 +0000 (12:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:13 +0000 (01:31 +0100)
Correct white-space issues and drop unused
WCD939X_MBHC_IS_SECOND_RAMP_REQUIRED() define.  No functional impact.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240523104228.36263-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd939x.c

index 201592c728c3f9033d3225cde4d69a36453670ec..770bc2f35ba761fed3fff457554e8c4d8a6b996e 100644 (file)
@@ -85,7 +85,6 @@ enum {
 #define WCD939X_MBHC_GET_X1(x)         ((x) & 0x3FFF)
 
 /* Z value compared in milliOhm */
-#define WCD939X_MBHC_IS_SECOND_RAMP_REQUIRED(z) false
 #define WCD939X_ANA_MBHC_ZDET_CONST    (1018 * 1024)
 
 enum {
@@ -525,7 +524,7 @@ static int wcd939x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
                                                      WCD939X_DIGITAL_CDC_COMP_CTL_0,
                                                      WCD939X_CDC_COMP_CTL_0_HPHL_COMP_EN,
                                                      true);
-                        /* 5msec compander delay as per HW requirement */
+                       /* 5msec compander delay as per HW requirement */
                        if (!wcd939x->comp2_enable ||
                            snd_soc_component_read_field(component,
                                                         WCD939X_DIGITAL_CDC_COMP_CTL_0,
@@ -1869,7 +1868,6 @@ static void wcd939x_mbhc_program_btn_thr(struct snd_soc_component *component,
 
 static bool wcd939x_mbhc_micb_en_status(struct snd_soc_component *component, int micb_num)
 {
-
        if (micb_num == MIC_BIAS_2) {
                u8 val;