diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-03-30 13:06:09 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-31 06:50:33 +0300 |
commit | e3c5c2e0bc857c7cbdb81f35a6b90236c5f330e9 (patch) | |
tree | bf62f0f6a535426d53b389a2e1aab229461ea302 /arch/powerpc/include/asm | |
parent | acdb66857fb9a713c93bb3e6edba5ee478ba0678 (diff) | |
download | linux-e3c5c2e0bc857c7cbdb81f35a6b90236c5f330e9.tar.xz |
powerpc/powernv: convert codes returned by OPAL calls
OPAL has its own list of return codes. The patch provides a translation
of such codes in errnos for the opal_sensor_read call, and possibly
others if needed.
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/opal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h index c08de77f398a..fde90bacc65e 100644 --- a/arch/powerpc/include/asm/opal.h +++ b/arch/powerpc/include/asm/opal.h @@ -247,6 +247,8 @@ struct opal_sg_list *opal_vmalloc_to_sg_list(void *vmalloc_addr, unsigned long vmalloc_size); void opal_free_sg_list(struct opal_sg_list *sg); +extern int opal_error_code(int rc); + #endif /* __ASSEMBLY__ */ #endif /* _ASM_POWERPC_OPAL_H */ |