linux/drivers/staging/iio
Brian Masney b3d941550d staging: iio: tsl2583: convert to use iio_chan_spec and {read,write}_raw
The tsl2583 driver directly creates sysfs attributes that should instead
be created by the IIO core on behalf of the driver. This patch adds the
iio_chan_spec array, the relevant info_mask elements and the read_raw()
and write_raw() functions to take advantage of features provided by the
IIO core. These sysfs attributes were migrated with this patch:
illuminance0_input, illuminance0_calibbias,
illuminance0_integration_time. This also exposes the raw values read
from the two channels on the sensor.

With this change, these four sysfs entries have their prefix changed
from illuminance0_ to in_illuminance_. This is deemed to be acceptable
since none of the IIO light drivers in mainline use the illuminance0_
prefix, however 8 of the IIO light drivers in mainline use the
in_illuminance_ prefix.

Also fix the units of integration_time to meet with the ABI.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-01 18:50:06 +00:00
..
accel staging:iio:accel:sca3000 Move out of staging. 2016-10-23 19:34:07 +01:00
adc staging:iio:ad7606: fix ptr_ret.cocci warnings 2016-10-23 19:34:27 +01:00
addac Staging: iio: addac: constify attribute_group structures 2016-10-03 21:07:24 +01:00
cdc staging: iio: cdc/ad7746: fix missing return value 2016-10-25 17:25:34 +01:00
Documentation Staging: iio: Documentation: Remove unused sysfs attributes 2016-01-30 16:27:11 +00:00
frequency Staging: iio: ad9832: Replace 'unsigned' with 'unsigned int' 2016-03-28 07:30:36 -07:00
gyro
impedance-analyzer staging: iio: ad5933: align arguments on new line with open parenthesis 2016-09-18 12:11:32 +01:00
light staging: iio: tsl2583: convert to use iio_chan_spec and {read,write}_raw 2016-11-01 18:50:06 +00:00
meter Staging: iio: meter: ade7758_core: implement IIO_CHAN_INFO_SAMP_FREQ 2016-10-11 19:40:25 +01:00
resolver staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
trigger First round of IIO new device support, features and cleanups for the 4.7 cycle. 2016-04-04 12:31:05 -07:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
TODO staging:iio:TODO drop outdated entries in this todo. 2016-10-23 19:33:40 +01:00