1. 16 Jun, 2023 2 commits
    • Arnd Bergmann's avatar
      ASoC: loongson: fix unused PM function warning · 041c5a1d
      Arnd Bergmann authored
      Build testing without CONFIG_PM_SLEEP causes a warning:
      
      sound/soc/loongson/loongson_i2s.c:246:12: error: unused function 'i2s_suspend' [-Werror,-Wunused-function]
      sound/soc/loongson/loongson_i2s.c:255:12: error: unused function 'i2s_resume' [-Werror,-Wunused-function]
      
      Use the modern SYSTEM_SLEEP_PM_OPS() instead of the old one to avoid this.
      
      Fixes: d2402860 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20230616090156.2347850-2-arnd@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      041c5a1d
    • Arnd Bergmann's avatar
      ASoC: max98388: fix unused function warnings · 0c340ba0
      Arnd Bergmann authored
      The PM functions are never referenced when CONFIG_PM_SLEEP is
      disabled:
      
      sound/soc/codecs/max98388.c:854:12: error: unused function 'max98388_suspend' [-Werror,-Wunused-function]
      static int max98388_suspend(struct device *dev)
                 ^
      sound/soc/codecs/max98388.c:864:12: error: unused function 'max98388_resume' [-Werror,-Wunused-function]
      static int max98388_resume(struct device *dev)
      
      Fix this by using the modern SYSTEM_SLEEP_PM_OPS() macro in place of
      the deprecated SET_SYSTEM_SLEEP_PM_OPS() version, and use pm_sleep_ptr()
      to hide the entire structure as well.
      
      On a related note, the of_match_ptr() and ACPI_PTR() macros have the same
      problem and would cause the device id table to be unused when the driver
      is built-in and the respective subsystems are disabled. This does not
      cause warnings unless -Wunused-const-variable is passed to the compiler,
      but it's better to just not use the macros at all here.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20230616090156.2347850-1-arnd@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      0c340ba0
  2. 15 Jun, 2023 7 commits
  3. 14 Jun, 2023 11 commits
  4. 13 Jun, 2023 20 commits