summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ad5791.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/dac/ad5791.c')
-rw-r--r--drivers/iio/dac/ad5791.c4
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 {
static int ad5791_spi_write(struct spi_device *spi, u8 addr, u32 val)
{
union {
- u32 d32;
+ __be32 d32;
u8 d8[4];
} data;
@@ -121,7 +121,7 @@ static int ad5791_spi_write(struct spi_device *spi, u8 addr, u32 val)
static int ad5791_spi_read(struct spi_device *spi, u8 addr, u32 *val)
{
union {
- u32 d32;
+ __be32 d32;
u8 d8[4];
} data[3];
int ret;
OpenPOWER on IntegriCloud