|
@@ -220,7 +220,7 @@ static int ad5933_set_freq(struct ad5933_state *st,
|
|
{
|
|
{
|
|
unsigned long long freqreg;
|
|
unsigned long long freqreg;
|
|
union {
|
|
union {
|
|
- u32 d32;
|
|
|
|
|
|
+ __be32 d32;
|
|
u8 d8[4];
|
|
u8 d8[4];
|
|
} dat;
|
|
} dat;
|
|
|
|
|
|
@@ -244,7 +244,7 @@ static int ad5933_set_freq(struct ad5933_state *st,
|
|
|
|
|
|
static int ad5933_setup(struct ad5933_state *st)
|
|
static int ad5933_setup(struct ad5933_state *st)
|
|
{
|
|
{
|
|
- unsigned short dat;
|
|
|
|
|
|
+ __be16 dat;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
ret = ad5933_reset(st);
|
|
ret = ad5933_reset(st);
|
|
@@ -297,7 +297,7 @@ static ssize_t ad5933_show_frequency(struct device *dev,
|
|
int ret;
|
|
int ret;
|
|
unsigned long long freqreg;
|
|
unsigned long long freqreg;
|
|
union {
|
|
union {
|
|
- u32 d32;
|
|
|
|
|
|
+ __be32 d32;
|
|
u8 d8[4];
|
|
u8 d8[4];
|
|
} dat;
|
|
} dat;
|
|
|
|
|
|
@@ -402,7 +402,7 @@ static ssize_t ad5933_store(struct device *dev,
|
|
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
|
|
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
|
|
u16 val;
|
|
u16 val;
|
|
int i, ret = 0;
|
|
int i, ret = 0;
|
|
- unsigned short dat;
|
|
|
|
|
|
+ __be16 dat;
|
|
|
|
|
|
if (this_attr->address != AD5933_IN_PGA_GAIN) {
|
|
if (this_attr->address != AD5933_IN_PGA_GAIN) {
|
|
ret = kstrtou16(buf, 10, &val);
|
|
ret = kstrtou16(buf, 10, &val);
|
|
@@ -521,7 +521,7 @@ static int ad5933_read_raw(struct iio_dev *indio_dev,
|
|
long m)
|
|
long m)
|
|
{
|
|
{
|
|
struct ad5933_state *st = iio_priv(indio_dev);
|
|
struct ad5933_state *st = iio_priv(indio_dev);
|
|
- unsigned short dat;
|
|
|
|
|
|
+ __be16 dat;
|
|
int ret = -EINVAL;
|
|
int ret = -EINVAL;
|
|
|
|
|
|
mutex_lock(&indio_dev->mlock);
|
|
mutex_lock(&indio_dev->mlock);
|