linux/drivers/iio/light
Alison Schofield dfc07df0f9 iio: light: gp2ap020a00f: use iio helper function to lock direct mode
Replace the code that guarantees the device stays in direct mode
with iio_device_claim_direct_mode() which does same.  Includes a
tiny bit of refactoring (single case -> if) and simplified return
flow.

Also prevents a theoretical race condition by effectively taking the lock
a little earlier than before.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-06-11 17:18:22 +01:00
..
acpi-als.c iio: light: acpi-als: Report data as processed 2016-01-16 12:58:18 +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: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
apds9960.c iio: light: apds9960: silence uninitialized variable warning 2016-04-23 22:18:09 +01:00
bh1750.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
bh1780.c iio: light: new driver for the ROHM BH1780 2016-04-16 20:51:50 +01:00
cm3232.c iio: Export OF module alias information in missing drivers 2015-08-02 16:36:00 +01:00
cm3323.c Merge 4.2-rc3 into staging-next 2015-07-20 13:21:28 -07:00
cm32181.c iio: Export OF module alias information in missing drivers 2015-08-02 16:36:00 +01:00
cm36651.c iio: Export OF module alias information in missing drivers 2015-08-02 16:36:00 +01:00
gp2ap020a00f.c iio: light: gp2ap020a00f: use iio helper function to lock direct mode 2016-06-11 17:18:22 +01:00
hid-sensor-als.c iio: light: hid-sensor-als.c: Fix memory leak in probe() 2015-05-17 09:10:05 +01:00
hid-sensor-prox.c iio: light: hid-sensor-prox: Fit assignment in one line 2015-06-14 15:03:53 +01:00
isl29125.c iio: light: isl29125: use iio helper function to guarantee direct mode 2016-06-11 17:16:39 +01:00
jsa1212.c iio: light: jsa1212: remove unneeded i2c check functionality test 2016-05-21 20:18:05 +01:00
Kconfig max44000: Initial support 2016-04-24 10:06:55 +01:00
lm3533-als.c iio: light: lm3533-als: Print error message on invalid resistance 2015-10-31 10:05:32 +00:00
ltr501.c iio-light: Use a signed return type for ltr501_match_samp_freq() 2015-12-19 17:00:29 +00:00
Makefile max44000: Initial support 2016-04-24 10:06:55 +01:00
max44000.c max44000: Initial triggered buffer support 2016-04-24 10:24:08 +01:00
opt3001.c iio: light: opt3001: enable operation w/o IRQ 2016-01-30 16:26:47 +00:00
pa12203001.c iio: light: pa12203001: Poweroff chip if register fails 2015-11-08 15:34:40 +00:00
rpr0521.c iio: Reconcile operation order between iio_register/unregister and pm functions 2015-11-08 15:36:53 +00:00
stk3310.c iio: remove unused gpio consumer.h include 2016-04-03 10:27:47 +01:00
tcs3414.c iio: light: tcs3414: use iio helper function to guarantee direct mode 2016-06-11 17:14:08 +01:00
tcs3472.c iio: light: tcs3472: use iio helper function to guarantee direct mode 2016-06-11 17:15:36 +01:00
tsl2563.c iio: light: tsl2563: Remove flush_scheduled_work 2016-03-20 11:04:49 +00:00
tsl4531.c iio: tsl4531: fix error handling in tsl4531_check_id() 2015-08-31 16:29:52 +01:00
us5182d.c iio: light: us5182d: Refactor read_raw function 2015-12-22 18:07:08 +00:00
vcnl4000.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
veml6070.c iio: Add Vishay VEML6070 UV A light sensor driver 2016-04-19 19:58:16 +01:00