Commit d4992da3 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] e4000: use swap() macro

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 85146114
...@@ -316,19 +316,14 @@ static int e4000_set_params(struct dvb_frontend *fe) ...@@ -316,19 +316,14 @@ static int e4000_set_params(struct dvb_frontend *fe)
q_data[i] = (((buf[2] >> 4) & 0x3) << 6) | (buf[1] & 0x3f); q_data[i] = (((buf[2] >> 4) & 0x3) << 6) | (buf[1] & 0x3f);
} }
buf[0] = q_data[0]; swap(q_data[2], q_data[3]);
buf[1] = q_data[1]; swap(i_data[2], i_data[3]);
buf[2] = q_data[3];
buf[3] = q_data[2]; ret = e4000_wr_regs(priv, 0x50, q_data, 4);
ret = e4000_wr_regs(priv, 0x50, buf, 4);
if (ret < 0) if (ret < 0)
goto err; goto err;
buf[0] = i_data[0]; ret = e4000_wr_regs(priv, 0x60, i_data, 4);
buf[1] = i_data[1];
buf[2] = i_data[3];
buf[3] = i_data[2];
ret = e4000_wr_regs(priv, 0x60, buf, 4);
if (ret < 0) if (ret < 0)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment