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:26 -0500 |
| commit | ae8bb9b10124ff266c35507b347b31f34c0fe05d (patch) | |
| tree | d039df8a7ea2457cd1f30ec54c7d10f4e4e78b44 /drivers/iio | |
| parent | edc05f26145c925deeeb7bfa50622e2cb22569b3 (diff) | |
iio:ad5791: Mark transfer buffers as __be32
Fixes the following warnings from sparse:
drivers/iio/dac/ad5791.c:114:18: warning: incorrect type in assignment (different base types)
drivers/iio/dac/ad5791.c:114:18: expected unsigned int [unsigned] [usertype] d32
drivers/iio/dac/ad5791.c:114:18: got restricted __be32 [usertype] <noident>
drivers/iio/dac/ad5791.c:142:21: warning: incorrect type in assignment (different base types)
drivers/iio/dac/ad5791.c:142:21: expected unsigned int [unsigned] [usertype] d32
drivers/iio/dac/ad5791.c:142:21: got restricted __be32 [usertype] <noident>
drivers/iio/dac/ad5791.c:144:21: warning: incorrect type in assignment (different base types)
drivers/iio/dac/ad5791.c:144:21: expected unsigned int [unsigned] [usertype] d32
drivers/iio/dac/ad5791.c:144:21: got restricted __be32 [usertype] <noident>
drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
| -rw-r--r-- | drivers/iio/dac/ad5791.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/dac/ad5791.c b/drivers/iio/dac/ad5791.c index d64acbd89482..1e7f4cd7db83 100644 --- a/drivers/iio/dac/ad5791.c +++ b/drivers/iio/dac/ad5791.c | |||
| @@ -107,7 +107,7 @@ enum ad5791_supported_device_ids { | |||
| 107 | static int ad5791_spi_write(struct spi_device *spi, u8 addr, u32 val) | 107 | static int ad5791_spi_write(struct spi_device *spi, u8 addr, u32 val) |
| 108 | { | 108 | { |
| 109 | union { | 109 | union { |
| 110 | u32 d32; | 110 | __be32 d32; |
| 111 | u8 d8[4]; | 111 | u8 d8[4]; |
| 112 | } data; | 112 | } data; |
| 113 | 113 | ||
| @@ -121,7 +121,7 @@ static int ad5791_spi_write(struct spi_device *spi, u8 addr, u32 val) | |||
| 121 | static int ad5791_spi_read(struct spi_device *spi, u8 addr, u32 *val) | 121 | static int ad5791_spi_read(struct spi_device *spi, u8 addr, u32 *val) |
| 122 | { | 122 | { |
| 123 | union { | 123 | union { |
| 124 | u32 d32; | 124 | __be32 d32; |
| 125 | u8 d8[4]; | 125 | u8 d8[4]; |
| 126 | } data[3]; | 126 | } data[3]; |
| 127 | int ret; | 127 | int ret; |
