diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-06-10 12:34:25 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-07-29 16:59:18 +0200 |
commit | b5c03bffa67727697252e913f64703e3404867ae (patch) | |
tree | 519582908c496c98e6d767fc58e72889e0651d9a /drivers/usb/dwc3 | |
parent | usb: gadget: composite.c: i18n is not an acronym (diff) | |
download | linux-b5c03bffa67727697252e913f64703e3404867ae.tar.xz linux-b5c03bffa67727697252e913f64703e3404867ae.zip |
usb: udc: Convert use of __constant_cpu_to_leXX to cpu_to_leXX
In big endian cases, the macro cpu_to_le{16,32} unfolds to __swab{16,32}
which provides special case for constants. In little endian cases,
__constant_cpu_to_le{16,32} and cpu_to_le{16,32} expand directly to
the same expression. So, replace __constant_cpu_to_le{16,32} with
cpu_to_le{16,32} with the goal of getting rid of the definition of
__constant_cpu_to_le{16,32} completely.
The semantic patch that performs this transformation is as follows:
@@expression x;@@
(
- __constant_cpu_to_le16(x)
+ cpu_to_le16(x)
|
- __constant_cpu_to_le32(x)
+ cpu_to_le32(x)
)
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions