1. 14 Jan, 2019 2 commits
    • Srinivas Kandagatla's avatar
      ASoC: msm8916-wcd-digital: remove few unused variables · fecd5c09
      Srinivas Kandagatla authored
      This patch removes unused variables which also fixes below warnings:
      
      msm8916-wcd-digital.c:245:30: warning: 'rx2_mix2_inp1_chain_enum'
      defined but not used [-Wunused-const-variable=]
      static const struct soc_enum rx2_mix2_inp1_chain_enum = SOC_ENUM_SINGLE(
                                    ^~~~~~~~~~~~~~~~~~~~~~~~
      msm8916-wcd-digital.c:234:30: warning: 'rx_mix2_inp1_chain_enum'
      defined but not used [-Wunused-const-variable=]
       static const struct soc_enum rx_mix2_inp1_chain_enum = SOC_ENUM_SINGLE(
                                    ^~~~~~~~~~~~~~~~~~~~~~~
      msm8916-wcd-digital.c:224:26: warning: 'adc2_mux_text'
      defined but not used [-Wunused-const-variable=]
       static const char *const adc2_mux_text[] = { "ZERO", "INP2", "INP3" };
                                ^~~~~~~~~~~~~
      msm8916-wcd-digital.c:223:26: warning: 'rx_mix2_text'
      defined but not used [-Wunused-const-variable=]
      Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      fecd5c09
    • Anders Roxell's avatar
      ASoC: cs4341: fix waring unused-function · 3e8c45f5
      Anders Roxell authored
      The driver cs4341 can be built with SPI and/or I2C, but it has to be one
      of them at least. When I2C is set as a module we see the warning below:
      
      sound/soc/codecs/cs4341.c:213:12: warning: ‘cs4341_probe’
      defined but not used [-Wunused-function]
       static int cs4341_probe(struct device *dev)
                  ^~~~~~~~~~~~
      
      Rework so that we use IS_ENABLED instead of defined. Also change so
      SND_SOC_CS4341 depends on SND_SOC_I2C_AND_SPI to we dont' get a link
      error when SND_SOC_CS4341=y, I2C=m and REGMAP_I2C=m is set.
      Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      3e8c45f5
  2. 10 Jan, 2019 1 commit
  3. 09 Jan, 2019 3 commits
  4. 08 Jan, 2019 2 commits
  5. 07 Jan, 2019 32 commits