1. 27 Sep, 2016 3 commits
    • Lars-Peter Clausen's avatar
      iio:mma8452: Use new iio_trigger_validate_own_device() helper · 19808e04
      Lars-Peter Clausen authored
      Use the new iio_trigger_validate_own_device() to verify that the trigger
      can only be attached to the matching IIO device rather than using a custom
      variant.
      
      While the implementation of iio_trigger_validate_own_device() and the
      custom variant and are not identical their behaviour is.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      19808e04
    • Lars-Peter Clausen's avatar
      iio:trigger: Add helper function to verify that a trigger belongs to the same device · 43ece27e
      Lars-Peter Clausen authored
      Some triggers can only be attached to the IIO device that corresponds to
      the same physical device. Currently each driver that requires this
      implements its own trigger validation function.
      
      Introduce a new helper function called iio_trigger_validate_own_device()
      that can be used to do this check. Having a common implementation avoids
      code duplication and unnecessary boiler-plate code.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      43ece27e
    • Sandhya Bankar's avatar
      drivers: iio: dac: Fix sparse warning · 38e442fc
      Sandhya Bankar authored
      Fixing below warnings:
      
      drivers/iio/dac/ad5592r.c:58:41: warning: incorrect type in argument 2 (different base types)
      drivers/iio/dac/ad5592r.c:58:41:    expected unsigned short [usertype] *buf
      drivers/iio/dac/ad5592r.c:58:41:    got restricted __be16 *<noident>
      drivers/iio/dac/ad5592r.c:62:41: warning: incorrect type in argument 2 (different base types)
      drivers/iio/dac/ad5592r.c:62:41:    expected unsigned short [usertype] *buf
      drivers/iio/dac/ad5592r.c:62:41:    got restricted __be16 *<noident>
      drivers/iio/dac/ad5592r.c:92:41: warning: incorrect type in argument 2 (different base types)
      drivers/iio/dac/ad5592r.c:92:41:    expected unsigned short [usertype] *buf
      drivers/iio/dac/ad5592r.c:92:41:    got restricted __be16 *<noident>
      drivers/iio/dac/ad5592r.c:110:41: warning: incorrect type in argument 2 (different base types)
      drivers/iio/dac/ad5592r.c:110:41:    expected unsigned short [usertype] *buf
      drivers/iio/dac/ad5592r.c:110:41:    got restricted __be16 *<noident>
      Signed-off-by: default avatarSandhya Bankar <bankarsandhya512@gmail.com>
      Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      38e442fc
  2. 24 Sep, 2016 3 commits
  3. 22 Sep, 2016 29 commits
  4. 21 Sep, 2016 5 commits