1. 23 1月, 2017 2 次提交
    • G
      Merge tag 'iio-for-4.11b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into work-next · 08cad739
      Greg Kroah-Hartman 提交于
      Jonathan writes:
      
      Second round of IIO new device support, cleanups and features for the 4.11 cycle
      
      New device support:
      * lsm6dsx imu
        - new driver and bindings.
      * max11100 adc
        - new driver and bindings.
      * tlc4541
        - new driver
      * tmp007 thermopile
        - new driver.
      
      Core
      * in kernel interfaces
        - pass through raw values if no scaling provided and a processed value is
          requested.
      * trigger
        - close a race condition in acquiring trigger reference.
        - constify device_type structures.
        - rework the viio_trigger_alloc function to be much neater and easier to
        read.
        - free trigger resources correctly on some error paths. Avoids putting a
        module we don't have.
      
      Documentation
      * ABI
        - specify a unit for proximity measurements.
      
      Cleanups and features
      * ads1015
        - constify iio_info structure.
      * ads7950 cleanups following merge in previous pull
        - Add device tree bindings
        - Drop the ti prefix from the module name in common with other drivers.
        - Change regulator name to vref to match datasheet and other drivers.
      * ak8974
        - remove a redundant zero timeout check.
      * bmi160
        - use variable names for sizeof instead of types.
      * cm3605
        - mark PM functions as __maybe_unused to avoid a build warning.
      * isl29028 (on it's way towards moving out of staging).
        - alignment fixes and newline improvements.
        - combine proxim_get and read_proxim for simpler code.
        - drop unused ISL29028_DEV_ATTR macro
        - move some error logging into functions to cut out repitition.
        - make error messages more consistent.
        - tidy up some brackets.
        - drop the enable flag that nothing uses.
        - only set proximity rate and ALS scale when relevant channel type is enabled.
        - runtime pm support.
      * lsm6dsx
        - fix wrong values for gyro sensitivitiy.
      * mag3110
        - claim direct mode during sysfs reads to avoid a race condition.
      * max1363
        - export OF device table IDs as module aliases.
      * max30100
        - use msleep for long uncritical delays.
      * mcp4531
        - export OF device table as module aliases.
      * ms5611
        - claim direct mode during sysfs reads to avoid a race condition.
      * opt3001
        - export OF device table as module aliases.
      * sx9500
        - claim direct mode during oversampling changes to avoid a race condition.
      08cad739
    • A
      iio: trigger: free trigger resource correctly · 10e840df
      Alison Schofield 提交于
      These stand-alone trigger drivers were using iio_trigger_put()
      where they should have been using iio_trigger_free().  The
      iio_trigger_put() adds a module_put which is bad since they
      never did a module_get.
      
      In the sysfs driver, module_get/put's are used as triggers are
      added & removed. This extra module_put() occurs on an error path
      in the probe routine (probably rare).
      
      In the bfin-timer & interrupt trigger drivers, the module resources
      are not explicitly managed, so it's doing a put on something that
      was never get'd.  It occurs on the probe error path and on the
      remove path (not so rare).
      
      Tested with the sysfs trigger driver.
      The bfin & interrupt drivers were build tested & inspected only.
      Signed-off-by: NAlison Schofield <amsfield22@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      10e840df
  2. 22 1月, 2017 26 次提交
  3. 21 1月, 2017 6 次提交
  4. 20 1月, 2017 2 次提交
  5. 19 1月, 2017 4 次提交