ASoC: SOF: ops.h: Change the error code for not supported to EOPNOTSUPP
New code uses ENOTSUPP as per checkpatch recommendation: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Link: https://lore.kernel.org/r/20230914124943.24399-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
cfaa4c32cc
commit
353bc9924c
+2
-2
@@ -202,7 +202,7 @@ static inline int snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev *sdev)
|
||||
return sof_ops(sdev)->get_mailbox_offset(sdev);
|
||||
|
||||
dev_err(sdev->dev, "error: %s not defined\n", __func__);
|
||||
return -ENOTSUPP;
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int snd_sof_dsp_get_window_offset(struct snd_sof_dev *sdev,
|
||||
@@ -212,7 +212,7 @@ static inline int snd_sof_dsp_get_window_offset(struct snd_sof_dev *sdev,
|
||||
return sof_ops(sdev)->get_window_offset(sdev, id);
|
||||
|
||||
dev_err(sdev->dev, "error: %s not defined\n", __func__);
|
||||
return -ENOTSUPP;
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
/* power management */
|
||||
static inline int snd_sof_dsp_resume(struct snd_sof_dev *sdev)
|
||||
|
||||
Reference in New Issue
Block a user