1. 22 9月, 2013 1 次提交
  2. 16 9月, 2013 1 次提交
  3. 26 3月, 2013 1 次提交
    • L
      iio:trigger: Introduce iio_tigger_{set,get}_drvdata · 1e9663c6
      Lars-Peter Clausen 提交于
      Introduce iio_tigger_{set,get}_drvdata which allows to attach driver specific
      data to a trigger. The functions wrap access to the triggers private_data field
      and all current users are updated to use iio_tigger_{set,get}_drvdata instead of
      directly accessing the private_data field. This is the first step towards
      removing the private_data field from the iio_trigger struct.
      
      The following coccinelle script has been used to update the drivers:
      <smpl>
      @@
      struct iio_trigger *trigger;
      expression priv;
      @@
      -trigger->private_data = priv
      +iio_trigger_set_drv_data(trigger, priv)
      
      @@
      struct iio_trigger *trigger;
      @@
      -trigger->private_data
      +iio_trigger_get_drv_data(trigger)
      </smpl>
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      1e9663c6
  4. 10 11月, 2012 1 次提交
  5. 08 9月, 2012 1 次提交
  6. 28 8月, 2012 1 次提交
    • L
      iio:adc: Add common code for ADI Sigma Delta devices · af300848
      Lars-Peter Clausen 提交于
      Most devices from the Analog Devices Sigma Delta family use a similar scheme for
      communication with the device. This includes register access, as well as trigger
      handling. But each device sub-family has different features and different
      register layouts (some even have no registers at all) and thus it is impractical
      to try to support all of the devices by the same driver. This patch adds a
      common base library for Sigma Delta converter devices. It will be used by
      individual drivers.
      
      This code is mostly based on the three existing Sigma Delta drivers the AD7192,
      AD7780 and AD7793, but has been improved for more robustness and flexibility.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      af300848