OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb00da
)
[media] saa6588: use swap() in saa6588_i2c_poll()
author
Fabian Frederick
<fabf@skynet.be>
Wed, 10 Jun 2015 16:32:50 +0000
(13:32 -0300)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Mon, 6 Jul 2015 11:25:49 +0000
(08:25 -0300)
Use kernel.h macro definition.
Thanks to Julia Lawall for Coccinelle scripting support.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/saa6588.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/saa6588.c
b/drivers/media/i2c/saa6588.c
index
2960b5a
..
2240e0a
100644
(file)
--- a/
drivers/media/i2c/saa6588.c
+++ b/
drivers/media/i2c/saa6588.c
@@
-301,9
+301,7
@@
static void saa6588_i2c_poll(struct saa6588 *s)
first and the last of the 3 bytes block.
*/
- tmp = tmpbuf[2];
- tmpbuf[2] = tmpbuf[0];
- tmpbuf[0] = tmp;
+ swap(tmpbuf[2], tmpbuf[0]);
/* Map 'Invalid block E' to 'Invalid Block' */
if (blocknum == 6)