1. 02 10月, 2016 2 次提交
    • W
      iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8 · 28e5d3bb
      William Breathitt Gray 提交于
      The ACCES 104-QUAD-8 is a general purpose quadrature encoder
      counter/interface board. The 104-QUAD-8 is capable of monitoring the
      outputs of eight encoders via four on-board LSI/CSI LS7266R1 24-bit
      dual-axis quadrature counter chips. Core functions handled by the
      LS7266R1, such as direction and total count, are available.
      
      Performing a write to a counter's IIO_CHAN_INFO_RAW sets the counter and
      also clears the counter's respective error flag. Although the counters
      have a 25-bit range, only the lower 24 bits may be set, either directly
      or via a counter's preset attribute. Interrupts are not supported by
      this driver.
      
      This driver adds IIO support for the ACCES 104-QUAD-8 and ACCES
      104-QUAD-4. The base port addresses for the devices may be configured
      via the base array module parameter.
      Signed-off-by: NWilliam Breathitt Gray <vilhelm.gray@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      28e5d3bb
    • W
      iio: Implement counter channel type and info constants · 1a8f324a
      William Breathitt Gray 提交于
      Quadrature encoders, such as rotary encoders and linear encoders, are
      devices which are capable of encoding the relative position and
      direction of motion of a shaft. This patch introduces several IIO
      constants for supporting quadrature encoder counter devices.
      
        IIO_COUNT: Current count (main data provided by the counter device)
        IIO_INDEX: Counter device index value
      Signed-off-by: NWilliam Breathitt Gray <vilhelm.gray@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      1a8f324a
  2. 01 10月, 2016 7 次提交
  3. 28 9月, 2016 15 次提交
  4. 25 9月, 2016 1 次提交
  5. 24 9月, 2016 2 次提交
  6. 23 9月, 2016 3 次提交
    • M
      tools: iio: iio_generic_buffer: fix argument '?' option · 44c5ba96
      Mugunthan V N 提交于
      When help ('?') option is passed to the command, the help text
      printed but not from '?' switch case of getopt_long() but as a
      invalid argument as below. Fix this by adding '?' to opt_String
      of getopt_long().
      
      root@am437x-evm:~# ./iio_generic_buffer -?
      ./iio_generic_buffer: invalid option -- '?'
      Usage: generic_buffer [options]...
      Capture, convert and output data from IIO device buffer
        -a         Auto-activate all available channels
      ...
      Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      44c5ba96
    • A
      iio:pressure: zpa2326: remove redundant "DEBUG" ifdef · 59dc1c86
      Arnd Bergmann 提交于
      The -Wempty-body gcc warning triggers in the newly added zpa2326 driver:
      
      drivers/iio/pressure/zpa2326.c: In function 'zpa2326_dequeue_pressure':
      drivers/iio/pressure/zpa2326.c:578:3: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      
      The use of an empty statement behind 'if (...)' is harmless here, but
      it shows that the dev_dbg() macro is not used correctly: when the "DEBUG"
      macro is not set, dev_dbg() already defaults to a no-operation, though
      one that lets the compiler know that the arguments are used, and lets
      it check the format string.
      
      Fixing this also simplifies the driver.
      
      Fixes: 03b262f2 ("iio:pressure: initial zpa2326 barometer support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      59dc1c86
    • A
      iio: accel: sca3000_core: avoid potentially uninitialized variable · a1427af5
      Arnd Bergmann 提交于
      The newly added __sca3000_get_base_freq function handles all valid
      modes of the SCA3000_REG_ADDR_MODE register, but gcc notices
      that any other value (i.e. 0x00) causes the base_freq variable to
      not get initialized:
      
      drivers/staging/iio/accel/sca3000_core.c: In function 'sca3000_write_raw':
      drivers/staging/iio/accel/sca3000_core.c:527:23: error: 'base_freq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      This adds explicit error handling for unexpected register values,
      to ensure this cannot happen.
      
      Fixes: e0f3fc9b ("iio: accel: sca3000_core: implemented IIO_CHAN_INFO_SAMP_FREQ")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      a1427af5
  7. 22 9月, 2016 10 次提交