1. 26 1月, 2013 15 次提交
  2. 22 11月, 2012 3 次提交
  3. 04 11月, 2012 4 次提交
  4. 19 10月, 2012 4 次提交
  5. 22 9月, 2012 1 次提交
    • L
      staging:iio:adis16400: Do not return a error in remove function · 0b4ac3dc
      Lars-Peter Clausen 提交于
      In the Linux device driver model the remove callback is not allowed to fail and
      the device will be removed regardless of the return value of the remove
      callback. So if we abort in the remove function and do not free all resources we
      will create a resource leak. Also all kinds of undefined behaviour are expected
      to happen since the IIO device is still there while its parent is already gone.
      
      The error which the driver tries to handle in the remove function is
      non-critical, so we can just ignore it and continue to free all resources and
      remove the IIO device.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      0b4ac3dc
  6. 04 9月, 2012 1 次提交
  7. 28 8月, 2012 2 次提交
  8. 15 8月, 2012 1 次提交
    • L
      staging:iio: Constify static iio_chan_spec arrays · f4e4b955
      Lars-Peter Clausen 提交于
      The per driver iio_chan_spec arrays are usually shared between multiple device
      instances. So a single device instance may not modify the iio_chan_spec array
      since this would also affect the other device instances. To make this restriction
      explicit mark the per driver iio_chan_spec arrays as const.
      
      Conversion was done automatically using the following coccinelle semantic patch:
      
      // <smpl>
      @disable optional_qualifier@
      identifier channels;
      @@
      static
      +const
      struct iio_chan_spec channels[] = ...;
      // </smpl>
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      f4e4b955
  9. 30 6月, 2012 1 次提交
  10. 16 6月, 2012 3 次提交
  11. 15 5月, 2012 1 次提交
  12. 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
  13. 26 4月, 2012 1 次提交
  14. 19 4月, 2012 1 次提交
  15. 11 4月, 2012 1 次提交