Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f47c183c authored by Fabian Frederick's avatar Fabian Frederick Committed by Mauro Carvalho Chehab
Browse files

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



Use kernel.h macro definition.

Thanks to Julia Lawall for Coccinelle scripting support.

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 2bb00da1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)