linux/drivers/iio/light
Vaishali Thakkar 9f59f970ec 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>
2015-02-14 17:28:41 +00:00
..
Kconfig iio: Added Capella cm3232 ambient light sensor driver. 2015-01-27 18:49:48 +00:00
Makefile iio: Added Capella cm3232 ambient light sensor driver. 2015-01-27 18:49:48 +00:00
adjd_s311.c iio: delete non-required instances of include <linux/init.h> 2014-01-11 11:59:00 +00:00
al3320a.c iio: Add Dyna-Image AL3320A ambient light sensor driver 2014-09-10 20:25:56 +01:00
apds9300.c iio: Remove support for the legacy event config interface 2013-12-08 13:13:52 +00:00
cm3232.c iio: Added Capella cm3232 ambient light sensor driver. 2015-01-27 18:49:48 +00:00
cm32181.c iio: light: cm32181: Fix typo 's/claibscale/calibscale/' 2015-01-25 22:53:49 +00:00
cm36651.c iio: cm36651: Fix i2c client leak and possible NULL pointer dereference 2014-03-22 12:22:49 +00:00
gp2ap020a00f.c iio: gp2ap020a00f: Use put_unaligned_le32 2015-02-14 17:28:41 +00:00
hid-sensor-als.c iio: hid-sensor-als: Introduce PM 2015-01-25 22:55:47 +00:00
hid-sensor-prox.c iio: hid-sensor-prox: Introduce PM 2015-01-25 22:55:50 +00:00
isl29125.c iio: Add Intersil isl29125 digital color light sensor driver 2014-07-07 09:06:50 +01:00
jsa1212.c iio: jsa1212: Add JSA1212 proximity/ALS sensor 2014-11-08 12:24:50 +00:00
lm3533-als.c iio: light: lm3533-als: Remove space before ',' 2015-01-01 12:14:36 +00:00
ltr501.c iio: Add Lite-On ltr501 ambient light / proximity sensor driver 2014-01-12 18:15:40 +00:00
tcs3414.c iio: light: tcs3414: Fix misindented lines 2015-01-25 22:53:46 +00:00
tcs3472.c iio:tcs3472: Check for buffer enabled and locking 2014-07-07 08:59:16 +01:00
tsl2563.c First set of IIO fixes for the 3.14 cycle. 2014-02-07 08:57:00 -08:00
tsl4531.c iio: tsl4531: Fix compiler error when CONFIG_PM_OPS is not defined 2014-11-05 18:33:45 +00:00
vcnl4000.c iio:vcnl4000: Mark transfer buffer as __be16 2013-12-03 20:22:27 +00:00