1. 27 Feb, 2016 1 commit
  2. 25 Feb, 2016 5 commits
  3. 24 Feb, 2016 18 commits
  4. 21 Feb, 2016 2 commits
    • Cristina Moraru's avatar
      iio: hmc5843: Add ABI documentation file for hmc5843 · 7b7a1c38
      Cristina Moraru authored
      Add ABI file documenting hmc5843 non-standard attributes
      meas_conf and meas_conf_available for bias current
      configuration.
      Signed-off-by: default avatarCristina Moraru <cristina.moraru09@gmail.com>
      Cc: Daniel Baluta <daniel.baluta@intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      7b7a1c38
    • Cristina Moraru's avatar
      iio: hmc5843: Add attributes for measurement config of bias current · 1c7be4c2
      Cristina Moraru authored
      Change static attribute meas_conf for bias current configuration
      to channel attribute in_magn_meas_conf and also add
      in_magn_meas_conf_available attribute to view available configurations.
      
      This patch solves functionality bug: driver was using same function
      hmc5843_set_measurement_configuration for setting bias current config
      for all device types but the function was returning -EINVAL for any
      setting >= 0x03 although, for sensor HMC5983, value 3 is valid.
      
      API for setting bias measurement configuration:
      
      normal - 	Normal measurement configuration (default):
      		In normal measurement configuration the device
      		follows normal measurement flow. Pins BP and BN
      		are left floating and high impedance.
      
      positivebias - 	Positive bias configuration: In positive bias
      		configuration, a positive current is forced across
      		the resistive load on pins BP and BN.
      
      negativebias - 	Negative bias configuration. In negative bias
      		configuration, a negative current is forced across
      		the resistive load on pins BP and BN.
      
      disabled     - 	Only available on HMC5983. Magnetic sensor is disabled.
      		Temperature sensor is enabled.
      Signed-off-by: default avatarCristina Moraru <cristina.moraru09@gmail.com>
      Cc: Daniel Baluta <daniel.baluta@intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      1c7be4c2
  5. 19 Feb, 2016 1 commit
  6. 17 Feb, 2016 5 commits
    • William Breathitt Gray's avatar
      iio: Fix typos in the struct iio_event_spec documentation comments · 3347a065
      William Breathitt Gray authored
      This patch fixes a few minor typos in the documentation comments for the
      scan_type member of the iio_event_spec structure. The sign member name
      was improperly capitalized as "Sign" in the comments. The storagebits
      member name was improperly listed as "storage_bits" in the comments. The
      endianness member entry in the comments was moved after the repeat
      member entry in order to maintain consistency with the actual struct
      iio_event_spec layout.
      Signed-off-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      3347a065
    • Arnd Bergmann's avatar
      iio: pressure: ms5611: select IIO_BUFFER · 3d5032a0
      Arnd Bergmann authored
      The ms5611 driver started using the IIO_TRIGGERED_BUFFER infrastructure
      which in turn depend on IIO_BUFFER, and it produces a build error now
      if that is not enabled:
      
      warning: (... && MS5611 && ...) selects IIO_TRIGGERED_BUFFER which has unmet direct dependencies (IIO && IIO_BUFFER)
      buffer/industrialio-triggered-buffer.c: In function 'iio_triggered_buffer_setup':
      buffer/industrialio-triggered-buffer.c:58:2: error: implicit declaration of function 'iio_device_attach_buffer' [-Werror=implicit-function-declaration]
      pressure/ms5611_core.c: In function 'ms5611_trigger_handler':
      pressure/ms5611_core.c:193:2: error: implicit declaration of function 'iio_push_to_buffers_with_timestamp' [-Werror=implicit-function-declaration]
      
      This adds the second select.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 713bbb4e ("iio: pressure: ms5611: Add triggered buffer support")
      Acked-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      3d5032a0
    • Arnd Bergmann's avatar
      iio: health/afe4404: mark suspend/resume functions __maybe_unused · 0e6071ab
      Arnd Bergmann authored
      The newly added afe4404 driver implements suspend/resume using the
      SIMPLE_DEV_PM_OPS() macro, which leaves out references to the actual
      functions when CONFIG_PM is disabled, causing a harmless warning:
      
      health/afe4404.c:509:12: error: 'afe4404_suspend' defined but not used
      health/afe4404.c:530:12: error: 'afe4404_resume' defined but not used
      
      This marks the functions as __maybe_unused so we don't get those
      warnings.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 87aec56e ("iio: health: Add driver for the TI AFE4404 heart monitor")
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      0e6071ab
    • Arnd Bergmann's avatar
      iio: health/afe4403: mark suspend/resume functions __maybe_unused · 9e8be75e
      Arnd Bergmann authored
      The newly added afe4403 driver implements suspend/resume using the
      SIMPLE_DEV_PM_OPS() macro, which leaves out references to the actual
      functions when CONFIG_PM is disabled, causing a harmless warning:
      
      health/afe4403.c:509:12: error: 'afe4403_suspend' defined but not used
      health/afe4403.c:530:12: error: 'afe4403_resume' defined but not used
      
      This marks the functions as __maybe_unused so we don't get those
      warnings.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: eec96d1e ("iio: health: Add driver for the TI AFE4403 heart monitor")
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      9e8be75e
    • Arnd Bergmann's avatar
      iio: health/afe4403: select REGMAP_SPI · f56293c7
      Arnd Bergmann authored
      The newly added afe4403 driver uses the regmap facility to abstract
      the I2C and SPI access. However, it fails to ensure that regmap_spi
      is actually present:
      
      drivers/iio/built-in.o: In function `afe4403_probe':
      :(.text+0x9bf8): undefined reference to `__devm_regmap_init_spi'
      
      This adds a Kconfig select statement like the afe4404 I2C driver
      has.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: eec96d1e ("iio: health: Add driver for the TI AFE4403 heart monitor")
      Acked-by: default avatarAndrew F. Davis <afd@ti.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      f56293c7
  7. 15 Feb, 2016 8 commits