]> Pileus Git - ~andy/linux/commitdiff
iio:ad5686: Mark transfer buffer as __be32
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 25 Nov 2013 12:41:00 +0000 (12:41 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 3 Dec 2013 20:22:26 +0000 (20:22 +0000)
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: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5686.c

index 30e506e37dd26adb6ad0510f8be0f1ca298b786d..e56ec0abb509d3036224ed3293c10d929a5f8b01 100644 (file)
@@ -78,7 +78,7 @@ struct ad5686_state {
         */
 
        union {
-               u32 d32;
+               __be32 d32;
                u8 d8[4];
        } data[3] ____cacheline_aligned;
 };