]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: SOF: make ctx_store and ctx_restore as optional
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 10 Jun 2022 08:35:44 +0000 (11:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:59 +0000 (14:41 +0200)
[ Upstream commit 03f69725749f453b9a4d454a92805f8eb5f095c2 ]

Commit 657774acd00f ("ASoC: SOF: Make sof_suspend/resume IPC agnostic")
did not marked ctx_store and ctx_restore as Optional.

Fixes: 657774acd00f ("ASoC: SOF: Make sof_suspend/resume IPC agnostic")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220610083549.16773-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sof/sof-priv.h

index c856f0d84e4951e544bf779f39d525cf902b825a..f369242dd975e40e891342c406db4e07ce71c4c6 100644 (file)
@@ -364,8 +364,8 @@ struct snd_sof_ipc_msg {
 
 /**
  * struct sof_ipc_pm_ops - IPC-specific PM ops
- * @ctx_save:          Function pointer for context save
- * @ctx_restore:       Function pointer for context restore
+ * @ctx_save:          Optional function pointer for context save
+ * @ctx_restore:       Optional function pointer for context restore
  */
 struct sof_ipc_pm_ops {
        int (*ctx_save)(struct snd_sof_dev *sdev);