1. 25 Oct, 2021 3 commits
  2. 24 Oct, 2021 3 commits
    • Nathan Chancellor's avatar
      iio: frequency: adrf6780: Fix adrf6780_spi_{read,write}() · 7b473ae7
      Nathan Chancellor authored
      Clang warns:
      
      drivers/iio/frequency/adrf6780.c:117:1: error: all paths through this
      function will call itself [-Werror,-Winfinite-recursion]
      {
      ^
      drivers/iio/frequency/adrf6780.c:138:1: error: all paths through this
      function will call itself [-Werror,-Winfinite-recursion]
      {
      ^
      2 errors generated.
      
      The underscore variants should be used here.
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/1490
      Fixes: 63aaf6d0 ("iio: frequency: adrf6780: add support for ADRF6780")
      Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Link: https://lore.kernel.org/r/20211022195656.1513147-1-nathan@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7b473ae7
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.16b' of... · b6df1fc1
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.16b' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      2nd set of IIO new driver, cleanups and features for the 5.16 cycle
      
      New device support
      * adrf6780 microwave upconverter.
        - New driver for this interesting device including bindings.
      
      Features
      * lite-on ltr501
        - Add dt-bindings including vendor ID and of_device_id table.
        - Add regulator support.
      * sensiron,scd4x
        - Add reporting of channel scale.
      
      Cleanups including fixes for things in this cycle
      * Tree wide: Another set of dev_err_probe() introductions to reduce
        noise in logs when deferred probing is needed and provide more debug
        info. Devices included this time:
        - amlogic,meson_saradc
        - capella,cm3605
        - fsl,imx7d
        - maxim,max1118
        - maxim,max1241
        - nxp,lpc18xx
        - qcom,pm8xxxx-xoadc
        - rockchip,saradc
        - sharp,gp2ap002
        - sterricson,ab8500
        - ti,ads7950
      * core - iio:buffer
        - Fix a path where a ret value is not intialized.
      * channel-mux
        - Add support to mux core subsystem for a settling delay and use
          it in the iio-channel-mux driver.
        - Fix a few dt binding warnings.
      * nxp,lpc18xx
        - Convert to devm_ functions for all of probe and drop remove()
      * st,lsm6dsx
        - Suppress a warning due to lack of handling of an enum *_MAX entry
          that is just there to get the size.
      * st,stm32-adc
        - Add generic channel binding, deprecating the old approach.
        - Add nvmem support to get calibration data for the vrefint channel and
          use it to perform such calibration.
        - Add a binding for sample-time to the generic channel description as it
          can be per channel.
      * ti,adc128s052
        - Use devm_ managed functions and drop remove()
      * vti,sca3000
        - Use sign_extend32() rather than opencoding.
      * xilinx,xadc
        - Drop irq field from state structure as now just used in probe.
      
      * tag 'iio-for-5.16b' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (36 commits)
        dt-bindings: iio: frequency: add adrf6780 doc
        iio: frequency: adrf6780: add support for ADRF6780
        iio: chemical: scd4x: Add a scale for the co2 concentration reading
        dt-bindings: iio: io-channel-mux: allow duplicate channel, labels
        dt-bindings: iio: io-channel-mux: add optional #io-channel-cells
        iio: adc: adc128s052: Simplify adc128_probe()
        iio: multiplexer: iio-mux: Support settle-time-us property
        dt-bindings: iio: io-channel-mux: Add property for settle time
        mux: add support for delay after muxing
        iio: adc: stm32-adc: use generic binding for sample-time
        iio: adc: stm32-adc: add vrefint calibration support
        iio: adc: stm32-adc: add support of internal channels
        iio: adc: stm32-adc: add support of generic channels binding
        iio: adc: stm32-adc: split channel init into several routines
        dt-bindings: iio: stm32-adc: add nvmem support for vrefint internal channel
        dt-bindings: iio: stm32-adc: add generic channel binding
        iio: accel: sca3000: Use sign_extend32() instead of opencoding sign extension.
        iio: xilinx-xadc: Remove `irq` field from state struct
        iio: imu: st_lsm6dsx: Avoid potential array overflow in st_lsm6dsx_set_odr()
        iio: light: gp2ap002: Make use of the helper function dev_err_probe()
        ...
      b6df1fc1
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-for-5.16a' of... · 8210a200
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-for-5.16a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      First set of IIO fixes for the 5.16 cycle
      
      As these are very late in the 5.15 cycle and non are particularly urgent,
      they can wait for the merge window.
      
      Key element in this set is Yang Yingliang has identified a number of
      issues in error paths introduced recently when we added multiple
      buffer support.
      
      Other fixes:
      * adi,ad5662
        - Fix handling of i2c_master_send() return value.
      * adi,ad5766
        - Fix a wrong dt-property name that indicated wrong units and
          did not mach the bindings.
        - Associated 'fix' of the bindings example to have a possible scale.
      * st,pressure-spi
        - Add some missing entries to the spi_device_id table to ensure
          auto-loading works.
      * ti,tsc2046
        - Fix a backwards comparison leading to a false dev_warn
      
      * tag 'iio-fixes-for-5.16a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
        iio: buffer: Fix memory leak in iio_buffers_alloc_sysfs_and_mask()
        iio: adc: tsc2046: fix scan interval warning
        iio: core: fix double free in iio_device_unregister_sysfs()
        iio: core: check return value when calling dev_set_name()
        iio: buffer: Fix memory leak in iio_buffer_register_legacy_sysfs_groups()
        iio: buffer: Fix double-free in iio_buffers_alloc_sysfs_and_mask()
        iio: buffer: Fix memory leak in __iio_buffer_alloc_sysfs_and_mask()
        iio: buffer: check return value of kstrdup_const()
        iio: dac: ad5446: Fix ad5622_write() return value
        Documentation:devicetree:bindings:iio:dac: Fix val
        drivers: iio: dac: ad5766: Fix dt property name
        iio: st_pressure_spi: Add missing entries SPI to device ID table
      8210a200
  3. 22 Oct, 2021 3 commits
    • Ye Guojin's avatar
      misc: enclosure: replace snprintf in show functions with sysfs_emit · 714f1af1
      Ye Guojin authored
      coccicheck complains about the use of snprintf() in sysfs show
      functions:
      WARNING  use scnprintf or sprintf
      
      Use sysfs_emit instead of scnprintf or sprintf makes more sense.
      Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
      Signed-off-by: default avatarYe Guojin <ye.guojin@zte.com.cn>
      Link: https://lore.kernel.org/r/20211022090604.1065367-1-ye.guojin@zte.com.cnSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      714f1af1
    • Greg Kroah-Hartman's avatar
      Merge tag 'icc-5.16-rc1' of... · 5a5846fd
      Greg Kroah-Hartman authored
      Merge tag 'icc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc into char-misc-next
      
      Georgi writes:
      
      interconnect changes for 5.16
      
      Here are the changes for the 5.16-rc1 merge window consisting of just
      driver updates. The highlight is the refactoring of some existing drivers
      into common code and expanding some macros that will make adding QoS
      support much easier.
      
      Driver changes:
      - icc-rpm: move bus clocks handling into qnoc_probe
      - sdm660: expand DEFINE_QNODE macros
      - sdm660: drop default/unused values
      - sdm660: merge common code into icc-rpm
      - icc-rpm: add support for QoS reg offset
      - msm8916: expand DEFINE_QNODE macros
      - msm8916: add support for AP-owned nodes
      - msm8939: expand DEFINE_QNODE macros
      - msm8939: add support for AP-owned nodes
      - qcs404: expand DEFINE_QNODE macros
      - qcom: drop DEFINE_QNODE macro
      - samsung: describe drivers in KConfig
      Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
      
      * tag 'icc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc:
        interconnect: samsung: describe drivers in KConfig
        interconnect: qcom: drop DEFINE_QNODE macro
        interconnect: qcs404: expand DEFINE_QNODE macros
        interconnect: msm8939: add support for AP-owned nodes
        interconnect: msm8939: expand DEFINE_QNODE macros
        interconnect: msm8916: add support for AP-owned nodes
        interconnect: msm8916: expand DEFINE_QNODE macros
        interconnect: icc-rpm: add support for QoS reg offset
        interconnect: sdm660: merge common code into icc-rpm
        interconnect: sdm660: drop default/unused values
        interconnect: sdm660: expand DEFINE_QNODE macros
        interconnect: icc-rpm: move bus clocks handling into qnoc_probe
      5a5846fd
    • Greg Kroah-Hartman's avatar
      Merge tag 'fsi-for-v5.16' of... · b1f4c00e
      Greg Kroah-Hartman authored
      Merge tag 'fsi-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/fsi into char-misc-next
      
      Joel writes:
      
      FSI changes for v5.16
      
       - SBEFIFO usersapce interfaces to perform FFDC (First Failure
         Data Capture) and detect timeouts
      
       - A fix to handle multiple messages in flight
      
      * tag 'fsi-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/fsi:
        fsi: sbefifo: Use interruptible mutex locking
        fsi: sbefifo: Add sysfs file indicating a timeout error
        docs: ABI: testing: Document the SBEFIFO timeout interface
        hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs
        docs: ABI: testing: Document the OCC hwmon FFDC binary interface
        fsi: occ: Store the SBEFIFO FFDC in the user response buffer
        fsi: occ: Use a large buffer for responses
        hwmon: (occ) Remove sequence numbering and checksum calculation
        fsi: occ: Force sequence numbering per OCC
      b1f4c00e
  4. 21 Oct, 2021 19 commits
  5. 20 Oct, 2021 12 commits