summaryrefslogtreecommitdiff
path: root/include/spi-mem.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-25 10:26:06 +1300
committerSimon Glass <sjg@chromium.org>2021-04-06 16:33:19 +1200
commit24e3d5d2a9ed4e4cad6aba4694596efaf82c610c (patch)
tree9d96eb24229e297a453ba5774efca6e6c1164855 /include/spi-mem.h
parent6379a94cace5b0dbb3b35f8b3890ff023a59158d (diff)
downloadu-boot-24e3d5d2a9ed4e4cad6aba4694596efaf82c610c.tar.gz
u-boot-24e3d5d2a9ed4e4cad6aba4694596efaf82c610c.tar.bz2
u-boot-24e3d5d2a9ed4e4cad6aba4694596efaf82c610c.zip
spi: Return -ENOSYS when system call is not available
Update spi_controller_dma_map_mem_op_data() to use -ENOSYS, which is the correct error code for U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spi-mem.h')
-rw-r--r--include/spi-mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spi-mem.h b/include/spi-mem.h
index 8be3e2bf6b..e354c38897 100644
--- a/include/spi-mem.h
+++ b/include/spi-mem.h
@@ -222,7 +222,7 @@ spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr,
const struct spi_mem_op *op,
struct sg_table *sg)
{
- return -ENOTSUPP;
+ return -ENOSYS;
}
static inline void