1. 27 Feb, 2016 2 commits
    • Lars-Peter Clausen's avatar
      staging:iio: Remove periodic RTC trigger driver · c720842e
      Lars-Peter Clausen authored
      With the recently introduced hrtimer based trigger we have a fully
      functional replacement for the RTC timer trigger that is more flexible and
      has a better interface to instantiate and manage the trigger instances. The
      RTC trigger timer could only be instantiated using platform devices which
      makes it unsuitable for modern devicetree based platforms, while the
      hrtimer trigger has a configfs based interface that allows creating and
      deletion of triggers at runtime.
      
      In addition since a few years the periodic RTC timer is internally always
      emulated using a hrtimer using the hrtimer interface directly will yield
      the same timing precision. So using the RTC timer won't have any advantages
      on this front either.
      
      There is also no evidence that the periodic RTC trigger is currently
      actually being used on any system. So considering all this remove the
      driver. Also remove the related item from the TODO list.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Acked-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      c720842e
    • Matt Ranostay's avatar
      iio: convert to common i2c_check_functionality() return value · f8d9d3b4
      Matt Ranostay authored
      Previously most drivers that used a i2c_check_functionality() check
      condition required various error codes on failure. This patchset
      converts to a standard of -EOPNOTSUPP
      Signed-off-by: default avatarMatt Ranostay <mranostay@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      f8d9d3b4
  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 7 commits