1. Aug 23, 2017
  2. Aug 21, 2017
  3. Aug 20, 2017
    • Philipp Zabel's avatar
      iio: adc: rockchip_saradc: explicitly request exclusive reset control · 87587016
      Philipp Zabel authored
      Commit a53e35db
      
       ("reset: Ensure drivers are explicit when requesting
      reset lines") started to transition the reset control request API calls
      to explicitly state whether the driver needs exclusive or shared reset
      control behavior. Convert all drivers requesting exclusive resets to the
      explicit API call so the temporary transition helpers can be removed.
      
      No functional changes.
      
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: linux-iio@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      87587016
    • Philipp Zabel's avatar
      iio: dac: stm32-dac-core: explicitly request exclusive reset control · a1b509df
      Philipp Zabel authored
      Commit a53e35db
      
       ("reset: Ensure drivers are explicit when requesting
      reset lines") started to transition the reset control request API calls
      to explicitly state whether the driver needs exclusive or shared reset
      control behavior. Convert all drivers requesting exclusive resets to the
      explicit API call so the temporary transition helpers can be removed.
      
      No functional changes.
      
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: linux-iio@vger.kernel.org
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      a1b509df
    • Akinobu Mita's avatar
      iio: adc: ti-ads1015: add threshold event support · d9f39bab
      Akinobu Mita authored
      
      
      The ADS1015 device provides programmable comparator that can issue an
      interrupt on the ALERT pin.  This change adds the iio threshold event
      support for that feature.
      
      The ADS1015 device only have a single config register which contains an
      input multiplexer selection, comparator settings, and etc.  So only a
      single event channel can be enabled at a time.  Also enabling both buffer
      and event are prohibited for simplicity.
      
      Cc: Daniel Baluta <daniel.baluta@gmail.com>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      d9f39bab
    • Akinobu Mita's avatar
      iio: adc: ti-ads1015: use iio_device_claim_direct_mode() · 47d8cf41
      Akinobu Mita authored
      
      
      While the iio buffer for the ti-ads1015 driver is enabled, reading the
      raw ADC channel data is restricted.  We usually use the
      iio_device_claim_direct_mode()/iio_device_release_direct_mode() pair for
      that.
      
      This change consequently reverses the locking order for the driver's
      private lock and indio_dev->mlock which acquired by
      iio_device_claim_direct_mode() internally. But it's safe because there is
      no other dependency between these locks.
      
      Cc: Daniel Baluta <daniel.baluta@gmail.com>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      47d8cf41