1. 17 Feb, 2016 4 commits
    • 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
  2. 15 Feb, 2016 36 commits