mbox series

[PULL] 1st set of IIO fixes for 6.1

Message ID 20221023115848.148744b1@jic23-huawei (mailing list archive)
State Handled Elsewhere
Headers show
Series [PULL] 1st set of IIO fixes for 6.1 | expand

Pull-request

https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git tags/iio-fixes-for-6.1a

Message

Jonathan Cameron Oct. 23, 2022, 10:58 a.m. UTC
The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780:

  Linux 6.1-rc1 (2022-10-16 15:36:24 -0700)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git tags/iio-fixes-for-6.1a

for you to fetch changes up to a10a0f385ab8af08ddb762ac3eca11e1b6d1fe69:

  iio: bmc150-accel-core: Fix unsafe buffer attributes (2022-10-17 08:51:26 +0100)

----------------------------------------------------------------
1st set of IIO fixes for the 6.1 cycle.

Usual bunch of driver fixes + one set of fixes for driver bugs
introduced by a core change to how buffer attributes are handled.

- buffer attributes
  * Remove usage of IIO_CONST_ATTR() for buffer attributes in all drivers
    where this occurred as that broke wrapping code need to duplicate these
    for multiple buffer support. The minimal fix is moving to
    IIO_DEVICE_ATTR_RO() with separate _show() routines.  A cleanup of
    this code, preventing similar issues in future will follow next merge
    window.
- tools/iio
  * Wrong handling of number of digits in the number 0.
- adi,ltc2983
  * Avoid reallocating channels on each wake up from sleep by moving
    that step out of the ltc2983_setup() function.
- microchip,mcp3911
  * Wrong ID bits + masking in debug prints.
  * Fix ARRAY_SIZE() vs sizeof() mix up.
  * Handle NULL return on trigger allocation failure correctly.
- st,stm32-adc:
  * Ensure we initialize sampling time even when optional property not
    provided in DT. Internal channels require a minimum value that will
    not otherwise be set.
- taos,tsl2583
  * Fix a double call of iio_device_unregister() via device managed and
    un-managed paths.

----------------------------------------------------------------
Cosmin Tanislav (1):
      iio: temperature: ltc2983: allocate iio channels once

Dan Carpenter (1):
      iio: adc: mcp3911: fix sizeof() vs ARRAY_SIZE() bug

Marcus Folkesson (3):
      iio: adc: mcp3911: return proper error code on failure to allocate trigger
      iio: adc: mcp3911: use correct id bits
      iio: adc: mcp3911: mask out device ID in debug prints

Matti Vaittinen (5):
      tools: iio: iio_utils: fix digit calculation
      iio: at91-sama5d2_adc: Fix unsafe buffer attributes
      iio: adxl372: Fix unsafe buffer attributes
      iio: adxl367: Fix unsafe buffer attributes
      iio: bmc150-accel-core: Fix unsafe buffer attributes

Olivier Moysan (1):
      iio: adc: stm32-adc: fix channel sampling time init

Shreeya Patel (1):
      iio: light: tsl2583: Fix module unloading

 drivers/iio/accel/adxl367.c           | 23 ++++++++++++++++++-----
 drivers/iio/accel/adxl372.c           | 23 ++++++++++++++++++-----
 drivers/iio/accel/bmc150-accel-core.c | 23 ++++++++++++++++++-----
 drivers/iio/adc/at91-sama5d2_adc.c    | 23 ++++++++++++++++++-----
 drivers/iio/adc/mcp3911.c             | 13 +++++++------
 drivers/iio/adc/stm32-adc.c           | 11 ++++++-----
 drivers/iio/light/tsl2583.c           |  2 +-
 drivers/iio/temperature/ltc2983.c     | 13 ++++++-------
 tools/iio/iio_utils.c                 |  4 ++++
 9 files changed, 96 insertions(+), 39 deletions(-)

Comments

Greg Kroah-Hartman Oct. 23, 2022, 4:06 p.m. UTC | #1
On Sun, Oct 23, 2022 at 11:58:48AM +0100, Jonathan Cameron wrote:
> The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780:
> 
>   Linux 6.1-rc1 (2022-10-16 15:36:24 -0700)
> 
> are available in the Git repository at:
> 
>   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git tags/iio-fixes-for-6.1a

Pulled and pushed out, thanks.

greg k-h