1. 17 Dec, 2013 8 commits
  2. 08 Dec, 2013 2 commits
  3. 07 Dec, 2013 1 commit
  4. 03 Dec, 2013 29 commits
    • Srinivas Pandruvada's avatar
      iio: hid-sensors: Added Inclinometer 3D · 098d3bec
      Srinivas Pandruvada authored
      Added usage id processing for Inclinometer 3D. This uses IIO
      interfaces for triggered buffer to present data to user
      mode.This uses HID sensor framework for registering callback
      events from the sensor hub.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      098d3bec
    • Harald Geyer's avatar
      iio: Add new driver dht11 · 091a121b
      Harald Geyer authored
      This driver handles DHT11 and DHT22 sensors.
      Signed-off-by: default avatarHarald Geyer <harald@ccbib.org>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      091a121b
    • Harald Geyer's avatar
      iio: Add support for humidity sensors · ac216aa2
      Harald Geyer authored
      There are already humidity sensors in the hwmon subsystem,
      so we use their unit (milli percent) here as well.
      Signed-off-by: default avatarHarald Geyer <harald@ccbib.org>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      ac216aa2
    • Lars-Peter Clausen's avatar
      staging:iio:ad9834: Mark transfer buffers as __b16 · 6f93910e
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/staging/iio/frequency/ad9834.c:45:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:45:26:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9834.c:45:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:47:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:47:26:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9834.c:47:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:59:18: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:59:18:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:59:18:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:100:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:100:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:100:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:108:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:108:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:108:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:122:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:122:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:122:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:131:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:131:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:131:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:194:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:194:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:194:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9834.c:387:18: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9834.c:387:18:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9834.c:387:18:    got restricted __be16 [usertype] <noident>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      6f93910e
    • Lars-Peter Clausen's avatar
      staging:iio:ad9832: Mark transfer buffers as __be16 · 2a0c293e
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/staging/iio/frequency/ad9832.c:43:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:43:26:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9832.c:43:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:46:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:46:26:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9832.c:46:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:49:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:49:26:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9832.c:49:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:52:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:52:26:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9832.c:52:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:65:27: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:65:27:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9832.c:65:27:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:68:27: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:68:27:    expected unsigned short [unsigned] [short] <noident>
      	drivers/staging/iio/frequency/ad9832.c:68:27:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:107:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:107:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9832.c:107:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:120:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:120:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9832.c:120:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:133:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:133:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9832.c:133:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:144:26: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:144:26:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9832.c:144:26:    got restricted __be16 [usertype] <noident>
      	drivers/staging/iio/frequency/ad9832.c:277:18: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/frequency/ad9832.c:277:18:    expected unsigned short [unsigned] data
      	drivers/staging/iio/frequency/ad9832.c:277:18:    got restricted __be16 [usertype] <noident>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      2a0c293e
    • Axel Lin's avatar
      iio:trigger: Convert to use ATTRIBUTE_GROUPS · f59c2576
      Axel Lin authored
      Use new ATTRIBUTE_GROUPS macro to declare attribute groups.
      Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      f59c2576
    • Lars-Peter Clausen's avatar
      iio: Add support for blocking IO on buffers · ee551a10
      Lars-Peter Clausen authored
      Currently the IIO buffer interface only allows non-blocking reads. This patch
      adds support for blocking IO. In blocking mode the thread will go to sleep if no
      data is available and will wait for the buffer implementation to signal that new
      data is available by waking up the buffers waitqueue.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      ee551a10
    • Lars-Peter Clausen's avatar
      iio: kfifo_buf: Implement data_available() callback · 355c1a14
      Lars-Peter Clausen authored
      This patch implements the data_available() callback for the kfifo buffer instead
      of using the stufftoread flag. The kfifo used by the buffer already knows
      whether it is empty or not based on the position of its read and write pointer.
      Using this makes it a lot easier to tell whether data is available or not and it
      is not necessary to take special measures to ensure that no race conditions
      between reading and writing from the buffer occur.
      
      Note, that we still have to take the buffers lock to protect against concurrent
      resizeing of the kfifo.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      355c1a14
    • Lars-Peter Clausen's avatar
      iio: Add data_available callback for buffers · 647cc7b9
      Lars-Peter Clausen authored
      This patch adds a new data_available() callback to the iio_buffer_access_funcs
      struct. The callback is used to indicate whether data is available in the buffer
      for reading. It is meant to replace the stufftoread flag from the iio_buffer
      struct. The reasoning for this is that the buffer implementation usually can
      determine whether data is available rather easily based on its state, on the
      other hand it can be rather tricky to update the stufftoread flag in a race free
      way.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      647cc7b9
    • Lars-Peter Clausen's avatar
      staging:iio:ad7746: Do not store the transfer buffer on the stack · 112b0b79
      Lars-Peter Clausen authored
      Some I2C controllers might not be able to handle transfer buffers that are
      stored on stack.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      112b0b79
    • Lars-Peter Clausen's avatar
      staging:iio:ad7746: Mark transfer buffer as __be32 · d4adb07c
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
      	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
      	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
      	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
      	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
      	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      d4adb07c
    • Lars-Peter Clausen's avatar
      staging:iio:ad7280a: Do not store transfer buffer on the stack · 93dbad63
      Lars-Peter Clausen authored
      Some I2C controllers may not be able to handle transfer buffers that are placed
      on the stack.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      93dbad63
    • Lars-Peter Clausen's avatar
      staging:iio:ad7280a: Mark transfer buffer as __be32 · b39c47d1
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/staging/iio/adc/ad7280a.c:194:35: warning: incorrect type in initializer (different base types)
      	drivers/staging/iio/adc/ad7280a.c:194:35:    expected unsigned int [unsigned] tx_buf
      	drivers/staging/iio/adc/ad7280a.c:194:35:    got restricted __be32 [usertype] <noident>
      	drivers/staging/iio/adc/ad7280a.c:207:16: warning: cast to restricted __be32
      	drivers/staging/iio/adc/ad7280a.c:207:16: warning: cast to restricted __be32
      	drivers/staging/iio/adc/ad7280a.c:207:16: warning: cast to restricted __be32
      	drivers/staging/iio/adc/ad7280a.c:207:16: warning: cast to restricted __be32
      	drivers/staging/iio/adc/ad7280a.c:207:16: warning: cast to restricted __be32
      	drivers/staging/iio/adc/ad7280a.c:207:16: warning: cast to restricted __be32
      	drivers/staging/iio/adc/ad7280a.c:219:13: warning: incorrect type in assignment (different base types)
      	drivers/staging/iio/adc/ad7280a.c:219:13:    expected unsigned int [unsigned] [assigned] reg
      	drivers/staging/iio/adc/ad7280a.c:219:13:    got restricted __be32 [usertype] <noident>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      b39c47d1
    • Lars-Peter Clausen's avatar
      iio:vcnl4000: Mark transfer buffer as __be16 · 91f197e0
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16
      	drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16
      	drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16
      	drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Cc: Peter Meerwald <pmeerw@pmeerw.net>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      91f197e0
    • Lars-Peter Clausen's avatar
      iio:ad7266: Mark transfer buffer as __be16 · 54e018da
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/adc/ad7266.c:140:16: warning: cast to restricted __be16
      	drivers/iio/adc/ad7266.c:140:16: warning: cast to restricted __be16
      	drivers/iio/adc/ad7266.c:140:16: warning: cast to restricted __be16
      	drivers/iio/adc/ad7266.c:140:16: warning: cast to restricted __be16
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      54e018da
    • Lars-Peter Clausen's avatar
      iio:ad5791: Do not store transfer buffers on the stack · 791bb52a
      Lars-Peter Clausen authored
      Some SPI controllers may not be able to handle transfer buffers that are placed
      on the stack.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      791bb52a
    • Lars-Peter Clausen's avatar
      iio:ad5791: Mark transfer buffers as __be32 · ae8bb9b1
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/dac/ad5791.c:114:18: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5791.c:114:18:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5791.c:114:18:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5791.c:142:21: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5791.c:142:21:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5791.c:142:21:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5791.c:144:21: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5791.c:144:21:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5791.c:144:21:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5791.c:148:16: warning: cast to restricted __be32
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      ae8bb9b1
    • Lars-Peter Clausen's avatar
      iio:ad5755: Mark transfer buffer as __be32 · edc05f26
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/dac/ad5755.c:117:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5755.c:117:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5755.c:117:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5755.c:171:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5755.c:171:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5755.c:171:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5755.c:172:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5755.c:172:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5755.c:172:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      edc05f26
    • Lars-Peter Clausen's avatar
      iio:ad5686: Mark transfer buffer as __be32 · cf87534b
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/dac/ad5686.c:100:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5686.c:100:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5686.c:100:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5686.c:122:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5686.c:122:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5686.c:122:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5686.c:124:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5686.c:124:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5686.c:124:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
      	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      cf87534b
    • Lars-Peter Clausen's avatar
      iio:ad5421: Mark transfer buffer as __be32 · 8ef411b7
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/dac/ad5421.c:134:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5421.c:134:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5421.c:134:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5421.c:168:25: warning: incorrect type in assignment (different base types)
      	drivers/iio/dac/ad5421.c:168:25:    expected unsigned int [unsigned] [usertype] d32
      	drivers/iio/dac/ad5421.c:168:25:    got restricted __be32 [usertype] <noident>
      	drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
      	drivers/iio/dac/ad5421.c:172:23: warning: cast to restricted __be32
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      8ef411b7
    • Lars-Peter Clausen's avatar
      iio:ad5504: Do not store transfer buffers on the stack · 0dbe59c7
      Lars-Peter Clausen authored
      Some SPI controllers may not be able to handle transfer buffers that are placed
      on the stack.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      0dbe59c7
    • Lars-Peter Clausen's avatar
      iio:ad5504: Mark transfer buffers as __be16 · 61c358e3
      Lars-Peter Clausen authored
      Fixes the following warnings from sparse:
      	drivers/iio/dac/ad5504.c:71:19: warning: incorrect type in initializer (different base types)
      	drivers/iio/dac/ad5504.c:71:19:    expected unsigned short [unsigned] [usertype] tmp
      	drivers/iio/dac/ad5504.c:71:19:    got restricted __be16 [usertype] <noident>
      	drivers/iio/dac/ad5504.c:80:19: warning: incorrect type in initializer (different base types)
      	drivers/iio/dac/ad5504.c:80:19:    expected unsigned short [unsigned] [usertype] tmp
      	drivers/iio/dac/ad5504.c:80:19:    got restricted __be16 [usertype] <noident>
      	drivers/iio/dac/ad5504.c:93:16: warning: cast to restricted __be16
      	drivers/iio/dac/ad5504.c:93:16: warning: cast to restricted __be16
      	drivers/iio/dac/ad5504.c:93:16: warning: cast to restricted __be16
      	drivers/iio/dac/ad5504.c:93:16: warning: cast to restricted __be16
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      61c358e3
    • Jingoo Han's avatar
      vme: remove DEFINE_PCI_DEVICE_TABLE macro · c3a09c18
      Jingoo Han authored
      Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
      is not preferred.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c3a09c18
    • Martyn Welch's avatar
      VME: Rename vme_slot_get to avoid confusion with reference counting · d7729f0f
      Martyn Welch authored
      Traditionally the "get" functions increment the reference count of the
      object that is returned, which does not happen with vme_slot_get. The
      function vme_slot_get returns the physical VME slot associated with a
      particular struct vme_dev. Rename vme_slot_num to avoid any confusion.
      Signed-off-by: default avatarMartyn Welch <martyn.welch@ge.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d7729f0f
    • Martyn Welch's avatar
      VME: Provide access to VME bus enumeration and fix vme_user match function · 978f47d6
      Martyn Welch authored
      The match function for vme_user is completely wrong. It will blindly bind
      against the first VME slot on each bus (at this point that would be just the
      first bus as the driver can only handle one bus).
      
      The original intention (before some major subsystem changes) was that the
      driver bind against the slot to which the bridge was attached in the VME
      system and to the bus(es) provided via the "bus" module parameter.
      
      To do this cleanly (i.e. without poking arround in the subsystems internal
      stuctures) a functionality has been added to provide access to the bus
      enumeration.
      Signed-off-by: default avatarMartyn Welch <martyn.welch@ge.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      978f47d6
    • Wei Yongjun's avatar
      staging: dwc2: fix sparse non static symbol warning · 49cf10c6
      Wei Yongjun authored
      Fixes the following sparse warning:
      
      drivers/staging/dwc2/core.c:2672:6: warning:
       symbol 'dwc2_set_param_uframe_sched' was not declared. Should it be static?
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      49cf10c6
    • H Hartley Sweeten's avatar
      staging: comedi: ni_atmio16d: remove an unnecessary printk · d1281615
      H Hartley Sweeten authored
      This blank line printk is not necessary. Remove it.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d1281615
    • H Hartley Sweeten's avatar
      staging: comedi: ni_atmio16d: tidy up the irq support in atmio16d_attach() · ec9b2f4f
      H Hartley Sweeten authored
      Tidy up the code that does the request_irq().
      
      Only hookup the commad support if the irq was sucessfully requested.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ec9b2f4f
    • H Hartley Sweeten's avatar
      staging: comedi: ni_atmio16d: remove printk() noise in atmio16d_ai_insn_read() · d4bdba2f
      H Hartley Sweeten authored
      These printk messages are just added noise. Remove them.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d4bdba2f