|
@@ -195,7 +195,8 @@ static int ade7854_i2c_read_reg_32(struct device *dev,
|
|
|
if (ret)
|
|
if (ret)
|
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
|
|
- *val = (st->rx[0] << 24) | (st->rx[1] << 16) | (st->rx[2] << 8) | st->rx[3];
|
|
|
|
|
|
|
+ *val = (st->rx[0] << 24) | (st->rx[1] << 16) |
|
|
|
|
|
+ (st->rx[2] << 8) | st->rx[3];
|
|
|
out:
|
|
out:
|
|
|
mutex_unlock(&st->buf_lock);
|
|
mutex_unlock(&st->buf_lock);
|
|
|
return ret;
|
|
return ret;
|