diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-11-25 07:41:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-03 15:22:25 -0500 |
commit | 8ef411b78bfb2fc165ed11818c817256d3bc89cd (patch) | |
tree | b3313afbe2dfb18e20b0fc791cb0b10a5637c2de | |
parent | 0dbe59c7a78811144cd1860c5bc603eb6b536cfb (diff) |
iio:ad5421: Mark transfer buffer as __be32
Fixes the following warnings from sparse:
drivers/iio/dac/ad5421.c:134:25: warning: incorrect type in assignment (different base types)
drivers/iio/dac/ad5421.c:134:25: expected unsigned int [unsigned] [usertype] d32
drivers/iio/dac/ad5421.c:134:25: got restricted __be32 [usertype] <noident>
drivers/iio/dac/ad5421.c:168:25: warning: incorrect type in assignment (different base types)
drivers/iio/dac/ad5421.c:168:25: expected unsigned int [unsigned] [usertype] d32
drivers/iio/dac/ad5421.c:168:25: got restricted __be32 [usertype] <noident>
drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/dac/ad5421.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5421.c b/drivers/iio/dac/ad5421.c index 7d1e90811c71..59a0cb51265c 100644 --- a/drivers/iio/dac/ad5421.c +++ b/drivers/iio/dac/ad5421.c | |||
@@ -75,7 +75,7 @@ struct ad5421_state { | |||
75 | * transfer buffers to live in their own cache lines. | 75 | * transfer buffers to live in their own cache lines. |
76 | */ | 76 | */ |
77 | union { | 77 | union { |
78 | u32 d32; | 78 | __be32 d32; |
79 | u8 d8[4]; | 79 | u8 d8[4]; |
80 | } data[2] ____cacheline_aligned; | 80 | } data[2] ____cacheline_aligned; |
81 | }; | 81 | }; |