From: Vaishali Thakkar Date: Wed, 11 Feb 2015 09:17:27 +0000 (+0530) Subject: iio: gp2ap020a00f: Use put_unaligned_le32 X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~102^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f59f970ec2128522a98f6826350a3bfbaf70163;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed