-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: iio: TAOS tsl258x: Device driver
Added suspend/resume functions. Changed attribute names to match existing where applicable and updated or documented new ABI as discussed. Changed integration time ABI from using index (0 to 3) to use actual gain values (1x,8x, etc.). Removed various unused variables, declarations, and functions. Revised code to accommodate different endianess (le16_to_cpu). Updated error return codes in various functions. Changed from mdelay to msleep after determining that longer wait would be acceptable. V5: Makefile and Kconfig cleanups by Jonathan Cameron. Signed-off-by: Jon August Brenner <jbrenner@taosinc.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Jon Brenner
authored and
Greg Kroah-Hartman
committed
Apr 26, 2011
1 parent
69d900a
commit ac4f6ee
Showing
6 changed files
with
1,006 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
drivers/staging/iio/Documentation/sysfs-bus-iio-light-tsl2583
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
What: /sys/bus/iio/devices/device[n]/lux_table | ||
KernelVersion: 2.6.37 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
This property gets/sets the table of coefficients | ||
used in calculating illuminance in lux. | ||
|
||
What: /sys/bus/iio/devices/device[n]/illuminance0_calibrate | ||
KernelVersion: 2.6.37 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
This property causes an internal calibration of the als gain trim | ||
value which is later used in calculating illuminance in lux. | ||
|
||
What: /sys/bus/iio/devices/device[n]/illuminance0_input_target | ||
KernelVersion: 2.6.37 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
This property is the known externally illuminance (in lux). | ||
It is used in the process of calibrating the device accuracy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.