dma-mapping: fix return type of dma_set_max_seg_size()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 29 Aug 2018 21:29:21 +0000 (23:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Nov 2018 07:39:52 +0000 (08:39 +0100)
commitc9d76d0655c06b8c1f944e46c4fd9e9cf4b331c0
tree50f2d400edcc36d6633fb717010c7b4f64588667
parentef78e5ec9214376c5cb989f5da70b02d0c117b66
dma-mapping: fix return type of dma_set_max_seg_size()

The function dma_set_max_seg_size() can return either 0 on success or
-EIO on error. Change its return type from unsigned int to int to
capture this.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h