提交 cf87534b 编写于 作者: L Lars-Peter Clausen 提交者: Jonathan Cameron

iio:ad5686: Mark transfer buffer as __be32

Fixes the following warnings from sparse:
	drivers/iio/dac/ad5686.c:100:25: warning: incorrect type in assignment (different base types)
	drivers/iio/dac/ad5686.c:100:25:    expected unsigned int [unsigned] [usertype] d32
	drivers/iio/dac/ad5686.c:100:25:    got restricted __be32 [usertype] <noident>
	drivers/iio/dac/ad5686.c:122:25: warning: incorrect type in assignment (different base types)
	drivers/iio/dac/ad5686.c:122:25:    expected unsigned int [unsigned] [usertype] d32
	drivers/iio/dac/ad5686.c:122:25:    got restricted __be32 [usertype] <noident>
	drivers/iio/dac/ad5686.c:124:25: warning: incorrect type in assignment (different base types)
	drivers/iio/dac/ad5686.c:124:25:    expected unsigned int [unsigned] [usertype] d32
	drivers/iio/dac/ad5686.c:124:25:    got restricted __be32 [usertype] <noident>
	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 8ef411b7
...@@ -78,7 +78,7 @@ struct ad5686_state { ...@@ -78,7 +78,7 @@ struct ad5686_state {
*/ */
union { union {
u32 d32; __be32 d32;
u8 d8[4]; u8 d8[4];
} data[3] ____cacheline_aligned; } data[3] ____cacheline_aligned;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册