1. 30 Jan, 2016 13 commits
  2. 24 Jan, 2016 2 commits
  3. 23 Jan, 2016 6 commits
  4. 16 Jan, 2016 3 commits
  5. 10 Jan, 2016 2 commits
    • Julia Lawall's avatar
      iio: ak8975: constify ak_def structures · f78c5f96
      Julia Lawall authored
      The ak_def structures are never modified, so declare them as const.
      
      Done with the help of Coccinelle.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      f78c5f96
    • Linus Walleij's avatar
      iio: st_sensors: support active-low interrupts · a9fd053b
      Linus Walleij authored
      Most ST MEMS Sensors that support interrupts can also handle sending
      an active low interrupt, i.e. going from high to low on data ready
      (or other interrupt) and thus triggering on a falling edge to the
      interrupt controller.
      
      Set up logic to inspect the interrupt line we get for a sensor: if
      it is triggering on rising edge, leave everything alone, but if it
      triggers on falling edges, set up active low, and if unsupported
      configurations appear: warn with errors and reconfigure the interrupt
      to a rising edge, which all interrupt generating sensors support.
      
      Create a local header for st_sensors_core.h to share functions
      between the sensor core and the trigger setup code.
      
      Cc: Giuseppe Barba <giuseppe.barba@st.com>
      Cc: Denis Ciocca <denis.ciocca@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      a9fd053b
  6. 04 Jan, 2016 2 commits
  7. 03 Jan, 2016 2 commits
  8. 02 Jan, 2016 1 commit
    • Akinobu Mita's avatar
      iio: adc: mcp3422: Add support for MCP3425 · 505abf99
      Akinobu Mita authored
      The MCP3425 is a single channel up to 16-bit A/D converter which has
      features:
      
      - On-Board Programmable Gain Amplifier (PGA):
       - Gains of 1, 2, 4 or 8
      - Programmable Data Rate Options:
       - 15 SPS (16 bits), 60 SPS (14 bits), 240 SPS (12 bits)
      
      The mcp3422 driver also supports the MCP3421 which is a single channel.
      So we can support MCP3425 with a little changes to mcp3422 driver.
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>
      Cc: Peter Meerwald <pmeerw@pmeerw.net>
      Cc: linux-iio@vger.kernel.org
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      505abf99
  9. 27 Dec, 2015 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-4.5c' of... · 02c34ccc
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-4.5c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Third set of new stuff for IIO in the 4.5 cycle.
      
      New driver features
      - us5182
        * Add interrupt support and rising / falling threshold events.
      
      Cleanups / fixes to new stuff / minor additions
      * Expose the IIO value formatting function for drivers to
        make use of internally.
      - ina2xx
         * Fix wrong channel order
         * Fix incorrect reporting of endianness
         * Adding documentation of ABI unique to this device
      - mma8452
        * Drop an unused register description
        * Use an enum for the channel index to aid readability
      - sca3000
        * Use standard NULL comparison style
      - us5182
        * fix an inconsistency in status of enable (a bug with no real effect until
          above patches are applied)
        * refactor the read_raw function to improve maintainability / readability.
      02c34ccc
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-4.5b' of... · 35ea984d
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-4.5b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Second set of IIO new drivers, functionality and cleanups for the 4.5 cycle.
      
      The big one here is the configfs support which has been a long time in the
      works but should allow for cleaner ways to do instantiation of those elements
      of IIO that aren't directly connected to specific hardware. Lots of cool new
      stuff we can use this for in the works!
      
      New core stuff (basically all configfs support related)
      * Configfs support
        - Core support (was waiting for a configfs patch that went in around 4.4rc2)
        - A little fixlet to add a configfs.h to contain a reference to the
          configfs_subsystem structure.
      * Some infrastructure to simplify handling of software based triggers
        (i.e. ones with no actual hardware associated with them)
      * A high resolution timer based trigger.  This has been around for years
          but until the configfs support was ready we didn't have a sensible way
          of instantiating instances of it (the method used for the sysfs_trigger
          has never been really satisfactory)
      
      New Device Support
      * AMS iAQ Volatile Organic Compounds sensor support.
      * Freescale imx7d ADC driver
      * Maxim MAX30100 oximeter driver (note that for these devices most of the
        smart stuff will be in userspace - effectively they are just light sensors
        with some interesting led synchronization as far as the kernel is concerned).
      * Microchip mcp3421 support added to the mcp3422 driver.
      * TI adc124s021 support added to the adc128s052 driver.
      * TI ina219, inda226 power monitors. Note that there is an existing hwmon driver
        for these parts, the usecase is somewhat different so it is unclear at this
        point if the hwmon driver will eventually be replaced by a bridge from
        this driver.  In the meantime the Kconfig dependencies should prevent both
        from being built.
      
      New driver functionality
      * us8152d power management support.
      
      Cleanups, fixups
      * Use list_for_each_entry_safe instead of list_for_each_safe with the entry
        bit coded longhand.
      * Select IRQ_WORK for IIO_DUMMY_EVGEN.  This is a fix that somehow got lost
        when the driver was moved so lets do it again.
      * st-accel - drop an unused define.
      * vz89x, lidar - optimize i2c transactions by using a single i2c tranfers
        instead of multiple calls where supported (fall back to smbus calls as
        before if not).
      * Use dev_get_platdata() in staging drivers: tsl2x7x, adcs and frequency
        drivers instead of direct access to the structure element.
      35ea984d
  10. 22 Dec, 2015 7 commits