diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-06-06 04:53:27 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-10 17:43:19 +0300 |
commit | 555416f9878d2d1547765c1587b05e585c69096b (patch) | |
tree | fdc4f79fb6eb7b1fc78b553c75ce48b8783c186b /drivers/acpi | |
parent | 9e8715c91da5567518fcfc16721e01f974536e4a (diff) | |
download | linux-555416f9878d2d1547765c1587b05e585c69096b.tar.xz |
[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>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions