1. 09 4月, 2017 3 次提交
  2. 08 4月, 2017 1 次提交
  3. 04 4月, 2017 3 次提交
  4. 03 4月, 2017 1 次提交
    • G
      Merge tag 'iio-for-4.12c' of... · edf5e794
      Greg Kroah-Hartman 提交于
      Merge tag 'iio-for-4.12c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Third set of new device support, cleanups and features for IIO in the 4.12 cycle
      
      Somewhat dominated in patch numbers of last of the outreachy application
      window related patches (they are still coming, despite window being closed
      which is good to see!)
      
      Good set of new drivers as well.
      
      New device support
      * ASPEED ADC
        - new driver
      * cpcap PMIC ADC
        - new driver
      * hid-humidity
        - driver for HID compatible humidity sensors.
      * ltc2497 ADC
        - new driver
      * mpu6050
        - bring bindings up to date and add trivial support for 9250
      * rockchip-saradc
        - update bindings to cover rk3328
      * vl6180 light, proximity and time of flight sensor.
        - new driver
      
      Features
      * meson-saradc
        - add calibration
      
      Cleanup and minor fixes
      * ad5504
        - constify attribute_group structure
        - drop casting of void *
      * ad7150
        - replace some shifts of 1 by BIT macro usage
      * ad7152
        - blank lines between function definitions
      * ad7280a
        - octal permissions.
      * ad7606
        - replace use of core mlock mutex with a local lock
      * ad7746
        - replace some shifts of 1 by BIT macro usage
        - function parameter alignment
        - drop some excessive brackets (introduced in last pull request)
      * ad7753
        - white space cleanup
      * ad7754
        - includes in alphabetical order and groupped appropriately.
        - change from missuse of internal mlock mutex to using the buffer lock to
        also protect values during frequency update.
      * ad779x
        - constify attribute_group structures
      * ad9832
        - octal permissions
      * adis16060
        - remove use of core mlock mutex in favour of adding a local
        _spi_write_then_read which can use the local buffer protection lock.
        - fix naming of above function.
      * adis16203
        - remove locking during reads of calibbias that doesn't protect anything
        not protected elsewhere.
      * adis16209
        - remove unnecessary braces in single statement if
      * adis16240
        - remove unnecessary braces in single statement if
      * adt7136
        - drop excess blank lines and put some in between functions.
      * ams-iaq
        - replace comma with semi colon. Not actual bug, just unusual syntax.
      * apds9960
        - constify attribute group structure
      * as3935
        - constify attribute group structure
      * bm1750
        - constify attribute group structure
      * cros_ec
        - devm version of triggered buffer setup to simplify code.
      * exynos
        - drop casting of void *
      * hdc100x
        - constify attribute_group structure
      * hid-accel
        - fix wrong scale for newly introduced gravity sensor.
      * hts221
        - drop casting of void *
      * hx711
        - constify attribute_group structure
      * imx7d_adc
        - drop casting of void *
      * lm35333
        - constify attribute_group structure
      * lsm6dsx
        - drop casting of void *
        - hold ODR configuration until enabling to avoid a race condition.
      * max1027
        - drop casting of void *
      * max11100
        - fix a comma where semicolon was intended (no actual bug, just odd)
      * max1363
        - constify attribute_group structure
      * ms sensors
        - drop casting of void *
      * rockchip_saradc
        - drop casting of void *
      * sun4i-gpadc
        - fix missing dependency on THERMAL or presence of stubs (issue only
        introduced in pervious set)
        - drop casting of void *
      * tsl2x7x
        - fix wrong standard deviation calc.  Note these aren't actually used for
        anything at the moment so bug didn't really matter.
        - constify attribute group structure.
      * vf610adc
        - drop casting of void *
      * vz89x
        - replace comma with semicolon. Not actual bug, just odd syntax.
      * zpa2326
        - drop casting of void *
      edf5e794
  5. 02 4月, 2017 15 次提交
  6. 01 4月, 2017 8 次提交
    • R
      iio: Aspeed ADC · 57380323
      Rick Altherr 提交于
      Aspeed BMC SoCs include a 16 channel, 10-bit ADC. Low and high threshold
      interrupts are supported by the hardware but are not currently implemented.
      Signed-off-by: NRick Altherr <raltherr@google.com>
      Tested-by: NXo Wang <xow@google.com>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      57380323
    • R
    • S
      staging: iio: light: tsl2x7x constify attribute_group structures · d952b4e6
      simran singhal 提交于
      As the event_attrs field of iio_info structures is constant, so these
      attribute_group structures can also be declared constant.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        15064	   1528	      0	  16592	   40d0
      drivers/staging/iio/light/tsl2x7x_core.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
        15192	   1400	      0	  16592	   40d0
      drivers/staging/iio/light/tsl2x7x_core.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      d952b4e6
    • S
      iio: adc: hx711: constify attribute_group structures · 4214dc18
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      attrs filed of iio_info structure. As the attrs field of iio_info
      structures is constant, so these attribute_group structures can also be
      declared constant.
      Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         3042	    480	      0	   3522	    dc2	drivers/iio/adc/hx711.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
         3098	    416	      0	   3514	    dba	drivers/iio/adc/hx711.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      4214dc18
    • S
      iio: humidity: hdc100x: constify attribute_group structures · 757cff86
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      attrs filed of iio_info structure. As the attrs field of iio_info
      structures is constant, so these attribute_group structures can also be
      declared constant.
      Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         3459	    488	      0	   3947	    f6b	drivers/iio/humidity/hdc100x.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
         3507	    424	      0	   3931	    f5b	drivers/iio/humidity/hdc100x.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      757cff86
    • S
      iio: light: apds9960: constify attribute_group structures · 3ca437c0
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      attrs filed of iio_info structure. As the attrs field of iio_info
      structures is constant, so these attribute_group structures can also be
      declared constant.
      Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         8503	    488	      0	   8991	   231f	drivers/iio/light/apds9960.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
         8567	    424	      0	   8991	   231f	drivers/iio/light/apds9960.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      3ca437c0
    • S
      iio: light: bh1750: constify attribute_group structures · c2869498
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      attrs filed of iio_info structure. As the attrs field of iio_info
      structures is constant, so these attribute_group structures can also be
      declared constant.
      Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         2276	    352	      0	   2628	    a44	drivers/iio/light/bh1750.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
         2340	    320	      0	   2660	    a64	drivers/iio/light/bh1750.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      c2869498
    • S
      iio: proximity: as3935: constify attribute_group structures · 7ab89e1e
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      attrs filed of iio_info structure. As the attrs field of iio_info
      structures is constant, so these attribute_group structures can also be
      declared constant.
      Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         4037	    288	      0	   4325	   10e5	drivers/iio/proximity/as3935.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
         4101	    256	      0	   4357	   1105	drivers/iio/proximity/as3935.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      7ab89e1e
  7. 31 3月, 2017 4 次提交
  8. 30 3月, 2017 3 次提交
    • S
      iio: adc: ad799x: constify attribute_group structures · 612dc0e2
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      event_attrs filed of iio_info structure. As the event_attrs field of
      iio_info structures is constant, so these attribute_group structures can
      also be declared constant.
      Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.event_attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text    data     bss     dec     hex filename
        26051     464       0   26515    6793 drivers/iio/adc/ad799x.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
        26115	    400	      0	  26515	   6793	drivers/iio/adc/ad799x.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      612dc0e2
    • S
      iio: adc: max1363: constify attribute_group structures · c94645b1
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      event_attrs filed of iio_info structure. As the event_attrs field of
      iio_info structures is constant, so these attribute_group structures can
      also be declared constant. Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.event_attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text    data     bss     dec     hex filename
        36951     448       0   37399    9217 drivers/iio/adc/max1363.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
        37015	    384	      0	  37399	   9217	drivers/iio/adc/max1363.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      c94645b1
    • S
      iio: dac: ad5504: constify attribute_group structures · e36020fd
      simran singhal 提交于
      Check for attribute_group structures that are only stored in the
      event_attrs filed of iio_info structure. As the event_attrs field of
      iio_info structures is constant, so these attribute_group structures can
      also be declared constant. Done using coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct attribute_group i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      struct iio_info x;
      @@
      x.event_attrs=&i@p;
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      static
      +const
      struct attribute_group i={...};
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct attribute_group i;
      
      File size before:
         text    data     bss     dec     hex filename
         3046     360       0    3406     d4e drivers/iio/dac/ad5504.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
         3110	    296	      0	   3406	    d4e	drivers/iio/dac/ad5504.o
      Signed-off-by: Nsimran singhal <singhalsimran0@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      e36020fd
  9. 29 3月, 2017 2 次提交