aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-01-03 17:35:28 -0500
committerDan Williams <dan.j.williams@intel.com>2011-01-04 22:16:11 -0500
commit7cb72ad959b16ac594118977b7954a7d2ec7a052 (patch)
treeeb6ea7ae69b7a8c2caef7d10eaec1a4dcf1110b4 /include
parentf96ca9ec27159c1c8718aa8d0ed03051cd12e884 (diff)
ARM: PL08x: avoid 'void *' struct fields when we can type them properly
Avoid using 'void *' struct fields when the structs are not defined in linux/amba/pl08x.h - instead, forward declare the struct names, and use these instead. This ensures we have proper typechecking. 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h
index 4ae62b4684f..3ecc20fce26 100644
--- a/include/linux/amba/pl08x.h
+++ b/include/linux/amba/pl08x.h
@@ -22,6 +22,9 @@
22#include <linux/dmaengine.h> 22#include <linux/dmaengine.h>
23#include <linux/interrupt.h> 23#include <linux/interrupt.h>
24 24
25struct pl08x_lli;
26struct pl08x_driver_data;
27
25/** 28/**
26 * struct pl08x_channel_data - data structure to pass info between 29 * struct pl08x_channel_data - data structure to pass info between
27 * platform and PL08x driver regarding channel configuration 30 * platform and PL08x driver regarding channel configuration
@@ -179,7 +182,7 @@ struct pl08x_dma_chan {
179 struct pl08x_txd *at; 182 struct pl08x_txd *at;
180 unsigned long lockflags; 183 unsigned long lockflags;
181 spinlock_t lock; 184 spinlock_t lock;
182 void *host; 185 struct pl08x_driver_data *host;
183 enum pl08x_dma_chan_state state; 186 enum pl08x_dma_chan_state state;
184 bool slave; 187 bool slave;
185 struct pl08x_txd *waiting; 188 struct pl08x_txd *waiting;