diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-02-11 14:47:27 +0530 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-02-14 17:28:41 +0000 |
commit | 9f59f970ec2128522a98f6826350a3bfbaf70163 (patch) | |
tree | 83251fefcba522333782377b7856269b3ea11f02 /drivers/powercap/powercap_sys.c | |
parent | 293487c8ecc1103f4625cea5e90e1ba0cc89660f (diff) | |
download | op-kernel-dev-9f59f970ec2128522a98f6826350a3bfbaf70163.zip op-kernel-dev-9f59f970ec2128522a98f6826350a3bfbaf70163.tar.gz |
iio: gp2ap020a00f: Use put_unaligned_le32
This patch introduces the use of function put_unaligned_le32.
This is done using Coccinelle and semantic patch used is as follows:
@@ identifier tmp; expression ptr; expression y,e; type T; @@
- tmp = cpu_to_le32(y);
<+... when != tmp
- memcpy(ptr, (T)&tmp, ...);
+ put_unaligned_le32(y,ptr);
...+>
? tmp = e
@@ type T; identifier tmp; @@
- T tmp;
...when != tmp
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/powercap/powercap_sys.c')
0 files changed, 0 insertions, 0 deletions