1. 01 2月, 2015 1 次提交
    • G
      Merge tag 'iio-for-3.20b' of... · 89c46826
      Greg Kroah-Hartman 提交于
      Merge tag 'iio-for-3.20b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-testing
      
      Jonathan writes:
      
      Second round of IIO new drivers, functionality and cleanups for the 3.20 cycle.
      
      New drivers and device support:
      * Capella cm3232 ambient light sensor driver.
      * Freescale MMA9553 pedometer and activity monitor. Note this involved a
        refactor of the mma9551 driver to pull out shared elements.
      * Samsung sensor hub (as used in the galaxy gear 2 watch) Core support
        and initial drivers (gyro and accelerometer) more to follow.
        An additional fix was applied on top of this for a build issue
        thrown up by the autobuilders on some platforms.
      * Cosmic Circuits 10001 ADC driver
      * Qualcomm SPMI PMIC voltage ADC driver (current adc merged a while back).
      * Add binding for AK8963 (in capitals) as unfortunately there are bios'
        out there not using lower case.
      
      New functionality
      * Add newe operating mode to the core to allow for non triggered software
        buffers.  This is mostly semantics as previously drivers just claimed they
        had a hardware buffer (when they didn't).
      * Add distance channel type.
      * Add energy channel type.
      * Add velocity channel type and IIO_MOD_ROOT_SUM_SQUARED (i.e. speed when
        our channel type is velocity).
      * Add _debounce_count and _debounce_time filter attributes.  Only really
        make sense for counting types of measurements.  First use is for avoiding
        miss detection of steps prior to walking.
      * Add change event type.   This replaces the briefly present INSTANCE type
        (which hadn't gained any users).  It is more generic as it allows for
        events say every 10 steps rather than every step.
      * Add _calibweight attributes to the ABI (and core support).  Used by
        activity monitors to estimate energy use.  Can imagine there will be
        other uses for this one.
      
      Driver new functionality
      * mma9551 gains runtime pm support.
      * hid-sensors gain PM support.
      
      Cleanup
      * Change calibheight unit to m from cm.  As there are no prior users
        and this was inconsistent with other distance units, it makes sense
        to fix it before hte mma9553 driver which uses it.
      * mpu6050 cleanups and devm_ use.
      * as3935 switch over to PM ops.
      * Fix a few format strings for signed vs unsigned.
      * Fix tcs3414 missindentation
      * Typo in industrialio-event
      * Stop requiring IIO_TRIGGER for IIO_KFIFO_BUF as we have drivers that don't
        need it. No one is quite sure why that dependency was there and it
        seems to not matter.
      89c46826
  2. 31 1月, 2015 2 次提交
    • J
      iio:common:ssp_sensors fix warnings due to 32 bit instead of 64 bit passed to do_div · 67460e8c
      Jonathan Cameron 提交于
      Also change to div64_u64 in one place to avoid loss of precision
      (was dividing a 32 bit number by a 64 bit number, but casting this
      to 64 bit divided by 32 bit)  Those divide functions certainly have
      esoteric naming!
      
      Fixes warnings with asm-generic/div64.h do_div such as:
         In file included from drivers/iio/common/ssp_sensors/ssp_iio.c:20:0:
         drivers/iio/common/ssp_sensors/ssp_iio_sensor.h: In function 'ssp_convert_to_freq':
      >> drivers/iio/common/ssp_sensors/ssp_iio_sensor.h:56:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
         drivers/iio/common/ssp_sensors/ssp_iio_sensor.h:56:2: warning: right shift count >= width of type [enabled by default]
      >> drivers/iio/common/ssp_sensors/ssp_iio_sensor.h:56:2: warning: passing argument 1 of '__div64_32' from incompatible pointer type [enabled by default]
         include/asm-generic/div64.h:35:17: note: expected 'uint64_t *' but argument is of type 'int *'
         drivers/iio/common/ssp_sensors/ssp_iio.c: In function 'ssp_common_process_data':
         include/linux/iio/buffer.h:142:32: warning: 'calculated_time' may be used uninitialized in this function [-Wuninitialized]
         drivers/iio/common/ssp_sensors/ssp_iio.c:83:10: note: 'calculated_time' was declared here
      
      Fixed by using straight coded version as per the description in the
      div64.h header, thus ensuring no issue with 32 bit integers.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      67460e8c
    • I
      iio: add driver for Freescale MMA9553 · 40cb7613
      Irina Tirdea 提交于
      Add support for Freescale MMA9553L Intelligent Pedometer Platform.
      
      The following functionalities are supported:
       - step counter (counts the number of steps using a HW register)
       - step detector (generates an iio event at every step the user takes)
       - activity recognition (rest, walking, jogging, running)
       - speed
       - calories
       - distance
      
      To get accurate pedometer results, the user's height, weight and gender
      need to be configured.
      
      The specifications can be downloaded from:
      http://www.freescale.com/files/sensors/doc/ref_manual/MMA955xLSWRM.pdf
      http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdfSigned-off-by: NIrina Tirdea <irina.tirdea@intel.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      40cb7613
  3. 30 1月, 2015 8 次提交
  4. 29 1月, 2015 29 次提交