summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-01-03 23:37:31 +0100
committerDan Williams <dan.j.williams@intel.com>2011-01-05 04:16:12 +0100
commitcace658572ba5d1075f3891e823130a66f3e330f (patch)
treeb615e42e2eac3ce2adb4d4cace8033df1ec748b9 /include
parentARM: PL08x: don't try to use llis_bus as a pointer (diff)
downloadlinux-cace658572ba5d1075f3891e823130a66f3e330f.tar.xz
linux-cace658572ba5d1075f3891e823130a66f3e330f.zip
ARM: PL08x: use 'size_t' for lengths
Use size_t for variables denoting lengths throughout, and use the 'z' qualifier for printing the value. For safety, add a BUG_ON() in pl08x_fill_lli_for_desc() to catch the remainder potentially becoming negative. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/amba/pl08x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h
index 3ecc20fce26a..2c834ed5f41f 100644
--- a/include/linux/amba/pl08x.h
+++ b/include/linux/amba/pl08x.h
@@ -77,7 +77,7 @@ struct pl08x_bus_data {
dma_addr_t addr;
u8 maxwidth;
u8 buswidth;
- u32 fill_bytes;
+ size_t fill_bytes;
};
/**
@@ -113,7 +113,7 @@ struct pl08x_txd {
enum dma_data_direction direction;
struct pl08x_bus_data srcbus;
struct pl08x_bus_data dstbus;
- int len;
+ size_t len;
dma_addr_t llis_bus;
void *llis_va;
struct pl08x_channel_data *cd;