powerpc/rtas: export rtas_error_rc() for reuse.
authorMahesh Salgaonkar <mahesh@linux.ibm.com>
Fri, 18 Aug 2023 11:29:07 +0000 (16:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Aug 2023 13:28:57 +0000 (23:28 +1000)
commite160bf64e2d3df7bf83ed41d09390a32490be6c5
tree687b48c215bdc4b7d25e9456be158656ea70155a
parent0ceef6e99cc3a57f33b84dafc6df5dfb3b28278d
powerpc/rtas: export rtas_error_rc() for reuse.

Also, #define descriptive names for common rtas return codes and use it
instead of numeric values.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/169235811556.193557.1023625262204809514.stgit@jupiter
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c