[media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sat, 6 Jun 2015 01:53:27 +0000 (22:53 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Jun 2015 14:43:19 +0000 (11:43 -0300)
commit555416f9878d2d1547765c1587b05e585c69096b
treefdc4f79fb6eb7b1fc78b553c75ce48b8783c186b
parent9e8715c91da5567518fcfc16721e01f974536e4a
[media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16

In little endian cases, macro cpu_to_be16 unfolds to __swab16 which
provides special case for constants. In big endian cases,
__constant_cpu_to_be16 and cpu_to_be16 expand directly to the
same expression. So, replace __constant_cpu_to_be16 with
cpu_to_be16 with the goal of getting rid of the definition of
__constant_cpu_to_be16 completely.

The semantic patch that performs this transformation is as follows:

@@expression x;@@

- __constant_cpu_to_be16(x)
+ cpu_to_be16(x)

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/s5k5baf.c