diff options
author | Adriana Reus <adriana.reus@intel.com> | 2015-11-24 12:59:48 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-12-02 18:42:03 +0000 |
commit | c3304c212326cfcabb1faf6a0035d0c631778d5b (patch) | |
tree | 797b21c5146f0b6ee5eb721b4583cb199277c5f8 /crypto/crypto_null.c | |
parent | 930cc0f39b07a830e6939c5634f9a310f306c4b1 (diff) |
iio: light: us5182d: Add property for choosing default power mode
This chip supports two power modes.
1. "one-shot" mode - the chip activates and executes one complete
conversion loop and then shuts itself down. This is the default mode
chosen for raw reads.
2. "continuous" mode - the chip takes continuous measurements.
Continuous mode is more expensive power-wise but may be more reliable.
Add a property so that if preferred, the default power mode for raw
reads can be set to continuous.
Separate one-shot enabling in a separate function that will be used
depending on the chosen power mode. Also create a function for
powering the chip on and off.
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'crypto/crypto_null.c')
0 files changed, 0 insertions, 0 deletions