1. 11 7月, 2012 1 次提交
  2. 10 7月, 2012 2 次提交
    • L
      iio: Introduce iio_validate_scan_mask_onehot · 81636632
      Lars-Peter Clausen 提交于
      Add a helper function for validating a scan mask for devices where exactly one
      channel must be selected during sampling. This is a common case among devices
      which have scan mask restrictions so it makes sense to provide this function in
      the core.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      81636632
    • L
      iio: Add callback to check whether a scan mask is valid · 939546d1
      Lars-Peter Clausen 提交于
      This is useful for cases where the number of valid scan masks grows
      exponentially, but it is rather easy to check whether a mask is valid or not
      programmatically.
      
      An example of such a case is a device with multiple ADCs where each ADC has a
      upstream MUX, which allows to select from a number of physical channels.
      
        +-------+   +-------+
        |       |   |       | --- Channel 1
        | ADC 1 |---| MUX 1 | ---   ...
        |       |   |       | --- Channel M
        +-------+   +-------+
      
           .            .            .
           .            .            .
           .            .            .
      
        +-------+   +-------+
        |       |   |       | --- Channel M * N + 1
        | ADC N |---| MUX N | ---       ...
        |       |   |       | --- Channel M * N + M
        +-------+   +-------+
      
      The number of necessary scan masks for this case is (M+1)**N - 1, on the other
      hand it is easy to check whether subsets for each ADC of the scanmask have only
      one bit set.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      939546d1
  3. 08 7月, 2012 1 次提交
  4. 07 7月, 2012 1 次提交
  5. 30 6月, 2012 5 次提交
  6. 27 6月, 2012 2 次提交
  7. 23 6月, 2012 1 次提交
  8. 21 6月, 2012 1 次提交
    • P
      iio: add vcnl4000 combined ALS and proximity sensor · 62a1efb9
      Peter Meerwald 提交于
      minimal driver, no IR current control and proximity/event
      handling yet
      
      v5:
      * checkpatch warnings
      * increase msleep() to 20 ms when waiting for data ready as
        measurement/conversion can take up to 100 ms, 1 ms is too short
      
      v4 (address comments by Jonathan Cameron)
      * remove SENSORS_ prefix in Kconfig
      * change from IIO_INTENSITY to IIO_LIGHT
      * move from staging
      
      v3 (address comments by Shubhrajyoti Datta)
      * cleanup Kconfig entry
      * call I2C read/write functions directly
      
      v2 (address comments by Lars-Peter Clausen and Jonathan Cameron)
      * unify code for reading PS and AL data into
        parameterized _measure() function
      * limit wait for data to become ready within 20 tries
      * drop IIO_LIGHT channel, add SCALE to IIO_INTENSITY
      * drop extra string arguments used for logging purpose only
      Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net>
      Acked-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      62a1efb9
  9. 19 6月, 2012 3 次提交
  10. 16 6月, 2012 2 次提交
  11. 15 6月, 2012 1 次提交
  12. 13 6月, 2012 7 次提交
  13. 07 6月, 2012 2 次提交
  14. 05 6月, 2012 7 次提交
  15. 15 5月, 2012 4 次提交