提交 f47c183c 编写于 作者: F Fabian Frederick 提交者: Mauro Carvalho Chehab

[media] saa6588: use swap() in saa6588_i2c_poll()

Use kernel.h macro definition.

Thanks to Julia Lawall for Coccinelle scripting support.
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 2bb00da1
...@@ -301,9 +301,7 @@ static void saa6588_i2c_poll(struct saa6588 *s) ...@@ -301,9 +301,7 @@ static void saa6588_i2c_poll(struct saa6588 *s)
first and the last of the 3 bytes block. first and the last of the 3 bytes block.
*/ */
tmp = tmpbuf[2]; swap(tmpbuf[2], tmpbuf[0]);
tmpbuf[2] = tmpbuf[0];
tmpbuf[0] = tmp;
/* Map 'Invalid block E' to 'Invalid Block' */ /* Map 'Invalid block E' to 'Invalid Block' */
if (blocknum == 6) if (blocknum == 6)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册