aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/amba
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-01-03 17:37:31 -0500
committerDan Williams <dan.j.williams@intel.com>2011-01-04 22:16:12 -0500
commitcace658572ba5d1075f3891e823130a66f3e330f (patch)
treeb615e42e2eac3ce2adb4d4cace8033df1ec748b9 /include/linux/amba
parent56b618820c92a5efa2145fbbac373fffbb024a94 (diff)
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/linux/amba')
-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 {
77 dma_addr_t addr; 77 dma_addr_t addr;
78 u8 maxwidth; 78 u8 maxwidth;
79 u8 buswidth; 79 u8 buswidth;
80 u32 fill_bytes; 80 size_t fill_bytes;
81}; 81};
82 82
83/** 83/**
@@ -113,7 +113,7 @@ struct pl08x_txd {
113 enum dma_data_direction direction; 113 enum dma_data_direction direction;
114 struct pl08x_bus_data srcbus; 114 struct pl08x_bus_data srcbus;
115 struct pl08x_bus_data dstbus; 115 struct pl08x_bus_data dstbus;
116 int len; 116 size_t len;
117 dma_addr_t llis_bus; 117 dma_addr_t llis_bus;
118 void *llis_va; 118 void *llis_va;
119 struct pl08x_channel_data *cd; 119 struct pl08x_channel_data *cd;