remoteproc: k3-dsp: Use symbolic error codes in error messages
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 23 Nov 2023 21:17:00 +0000 (22:17 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 30 Nov 2023 16:40:37 +0000 (09:40 -0700)
commitcfd0b5c4fd1d23d1c68f704dcd74c1dbdfd7c144
treecfa0130dd17a671bc1dad7b1110afd8841146f71
parentbddae3e7ae70586b3805fdbce193760f13b4d73e
remoteproc: k3-dsp: Use symbolic error codes in error messages

The error message

failed to send mailbox message (-EINVAL)

is (for a human) more useful than

failed to send mailbox message, status = -22

Adapt all error messages to use the symbolic names instead of the
numeric constants. The error paths in .probe() make use of
dev_err_probe() which automatically handles EPROBE_DEFER.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231123211657.518181-7-u.kleine-koenig@pengutronix.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_dsp_remoteproc.c