1. 07 Oct, 2019 2 commits
    • YueHaibing's avatar
      ASoc: tas2770: Fix build error without GPIOLIB · 03fe492e
      YueHaibing authored
      If GPIOLIB is not set, building fails:
      
      sound/soc/codecs/tas2770.c: In function tas2770_reset:
      sound/soc/codecs/tas2770.c:38:3: error: implicit declaration of function gpiod_set_value_cansleep; did you mean gpio_set_value_cansleep? [-Werror=implicit-function-declaration]
         gpiod_set_value_cansleep(tas2770->reset_gpio, 0);
         ^~~~~~~~~~~~~~~~~~~~~~~~
         gpio_set_value_cansleep
      sound/soc/codecs/tas2770.c: In function tas2770_i2c_probe:
      sound/soc/codecs/tas2770.c:749:24: error: implicit declaration of function devm_gpiod_get_optional; did you mean devm_regulator_get_optional? [-Werror=implicit-function-declaration]
        tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev,
                              ^~~~~~~~~~~~~~~~~~~~~~~
                              devm_regulator_get_optional
      sound/soc/codecs/tas2770.c:751:13: error: GPIOD_OUT_HIGH undeclared (first use in this function); did you mean GPIOF_INIT_HIGH?
                   GPIOD_OUT_HIGH);
                   ^~~~~~~~~~~~~~
                   GPIOF_INIT_HIGH
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Fixes: 1a476abc ("tas2770: add tas2770 smart PA kernel driver")
      Suggested-by: default avatarLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Link: https://lore.kernel.org/r/20191006104631.60608-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      03fe492e
    • Stephen Boyd's avatar
      ASoC: jz4740: Use of_device_get_match_data() · 67ad656b
      Stephen Boyd authored
      This probe function is only called if the device is backed by a DT node,
      so switch this call to of_device_get_match_data() to reduce code size
      and simplify a bit. This also avoids needing to reference a potentially
      undefined variable because of_device_get_match_data() doesn't need to
      know anything beyond the struct device to find the match table.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Paul Cercueil <paul@crapouillou.net>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: <alsa-devel@alsa-project.org>
      Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
      Link: https://lore.kernel.org/r/20191004214334.149976-8-swboyd@chromium.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      67ad656b
  2. 04 Oct, 2019 1 commit
  3. 03 Oct, 2019 7 commits
  4. 02 Oct, 2019 4 commits
  5. 01 Oct, 2019 26 commits