1. 04 9月, 2012 2 次提交
  2. 30 4月, 2012 1 次提交
    • L
      staging:iio: Streamline API function naming · 7cbb7537
      Lars-Peter Clausen 提交于
      Currently we use two different naming schemes in the IIO API, iio_verb_object
      and iio_object_verb. E.g iio_device_register and iio_allocate_device. This
      patches renames instances of the later to the former. The patch also renames allocate to
      alloc as this seems to be the preferred form throughout the kernel.
      
      In particular the following renames are performed by the patch:
      	iio_put_device -> iio_device_put
      	iio_allocate_device -> iio_device_alloc
      	iio_free_device -> iio_device_free
      	iio_get_trigger -> iio_trigger_get
      	iio_put_trigger -> iio_trigger_put
      	iio_allocate_trigger -> iio_trigger_alloc
      	iio_free_trigger -> iio_trigger_free
      
      The conversion was done with the following coccinelle patch with manual fixes to
      comments and documentation.
      
      <smpl>
      @@
      @@
      -iio_put_device
      +iio_device_put
      @@
      @@
      -iio_allocate_device
      +iio_device_alloc
      @@
      @@
      -iio_free_device
      +iio_device_free
      @@
      @@
      -iio_get_trigger
      +iio_trigger_get
      @@
      @@
      -iio_put_trigger
      +iio_trigger_put
      @@
      @@
      -iio_allocate_trigger
      +iio_trigger_alloc
      @@
      @@
      -iio_free_trigger
      +iio_trigger_free
      </smpl>
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Acked-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7cbb7537
  3. 26 4月, 2012 1 次提交
  4. 17 12月, 2011 1 次提交
  5. 01 11月, 2011 1 次提交
  6. 26 8月, 2011 1 次提交
  7. 25 8月, 2011 4 次提交
  8. 24 8月, 2011 1 次提交
  9. 29 6月, 2011 2 次提交
  10. 20 5月, 2011 6 次提交
  11. 26 4月, 2011 1 次提交
  12. 05 9月, 2010 2 次提交
  13. 23 7月, 2010 4 次提交
  14. 12 12月, 2009 1 次提交
  15. 16 9月, 2009 1 次提交
    • J
      Staging: IIO: Trigger support added to core. · 1637db44
      Jonathan Cameron 提交于
      Add general registration support for IIO triggers.  These
      are currently only used to initialize a 'poll' of a given
      device.  Examples include the lis3l02dq's data ready signal
      being used to initialize a read and gpio triggers being
      used to allow externally synchronized sensor reading.
      
      Each trigger can cause any number of 'consumer' devices
      to be polled with each storing data into a related ring
      buffer.
      
      Two stage triggering is supported with 'fast' and 'slow'
      paths.  The first is used for things like pulling a data
      hold line high and the second for actual read which
      may take far longer.
      
      Changes since V2:
      * As with IIO triggers now use a registration approach
        much closer to that of input leading to cleaner code.
      Signed-off-by: NJonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1637db44