Merge tag 'iio-fixes-for-4.17a' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2018 15:08:29 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2018 15:08:29 +0000 (17:08 +0200)
Jonathan writes:

First round of IIO fixes for the 4.17 cycle.

* core
  - fix up some issues with overflow etc around wrong types
    for some fo the kfifo handling functions.  Seems unlikely
    this would be triggered in reality but the fixes are simple
    so let's tidy them up.  Second patch deals with checking
    the userspace value passed for length for potential overflow.
* ad7793
  - Catch up with changes to the ad_sigma_delta core and use
    read_raw / write_raw iwth IIO_CHAN_INFO_SAMP_FEW to handle
    sampling frequency control.
* at91-sama5d2
  - Channel config for differential channels was completely broken.
  - Missing Kconfig dependency for buffer support.
* hid-sensor
  - Fix an issue with powering up after resume due to wrong reference
    counting.
* stm32-dfsdm
  - Fix an issue with second writes of the oversampling settings
    failing.
  - Fix an issue with the sample rate being set to half of requested
    value when particular clock source is used.

1  2 
drivers/iio/adc/Kconfig

diff --combined drivers/iio/adc/Kconfig
index 15606f237480dacbd00a151d6a76d86e0107e5e9,47bbed3afc8f7de4d0997216f99c0c38cb16a73d..9da79070357c7d932fc5804c9276737d2c89e18c
@@@ -144,9 -144,10 +144,9 @@@ config ASPEED_AD
  config AT91_ADC
        tristate "Atmel AT91 ADC"
        depends on ARCH_AT91
 -      depends on INPUT
 +      depends on INPUT && SYSFS
        select IIO_BUFFER
        select IIO_TRIGGERED_BUFFER
 -      select SYSFS
        help
          Say yes here to build support for Atmel AT91 ADC.
  
@@@ -158,6 -159,7 +158,7 @@@ config AT91_SAMA5D2_AD
        depends on ARCH_AT91 || COMPILE_TEST
        depends on HAS_IOMEM
        depends on HAS_DMA
+       select IIO_BUFFER
        select IIO_TRIGGERED_BUFFER
        help
          Say yes here to build support for Atmel SAMA5D2 ADC which is
@@@ -697,8 -699,7 +698,8 @@@ config STM32_DFSDM_AD
  
  config STX104
        tristate "Apex Embedded Systems STX104 driver"
 -      depends on PC104 && X86 && ISA_BUS_API
 +      depends on PC104 && X86
 +      select ISA_BUS_API
        select GPIOLIB
        help
          Say yes here to build support for the Apex Embedded Systems STX104