Skip to content

Commit b49e881

Browse files
ujfalusiplbossart
authored andcommitted
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>
1 parent bf1e140 commit b49e881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/sof/ops.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static inline int snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev *sdev)
202202
return sof_ops(sdev)->get_mailbox_offset(sdev);
203203

204204
dev_err(sdev->dev, "error: %s not defined\n", __func__);
205-
return -ENOTSUPP;
205+
return -EOPNOTSUPP;
206206
}
207207

208208
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,
212212
return sof_ops(sdev)->get_window_offset(sdev, id);
213213

214214
dev_err(sdev->dev, "error: %s not defined\n", __func__);
215-
return -ENOTSUPP;
215+
return -EOPNOTSUPP;
216216
}
217217
/* power management */
218218
static inline int snd_sof_dsp_resume(struct snd_sof_dev *sdev)

0 commit comments

Comments
 (0)