1. 25 Apr, 2019 6 commits
    • Fuqian Huang's avatar
      staging: vchiq_arm: Fix misuse of %x · e9f1040f
      Fuqian Huang authored
      Pointers should be printed with %p or %px rather than
      cast to unsigned long type and printed with %lx.
      Change %lx to %pK to print the pointers.
      Signed-off-by: default avatarFuqian Huang <huangfq.daxian@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e9f1040f
    • Gustavo A. R. Silva's avatar
      staging: most: core: replace strcpy() by strscpy() · 3970d0d8
      Gustavo A. R. Silva authored
      The strcpy() function is being deprecated. Replace it by the safer
      strscpy() and fix the following Coverity warning:
      
      "You might overrun the 80-character fixed-size string iface->p->name
      by copying iface->description without checking the length."
      
      Addresses-Coverity-ID: 1444760 ("Copy into fixed size buffer")
      Fixes: 131ac622 ("staging: most: core: use device description as name")
      Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3970d0d8
    • YueHaibing's avatar
      staging: kpc2000: fix platform_no_drv_owner.cocci warnings · 8abd5372
      YueHaibing authored
      Remove .owner field if calls are used which set it automatically
      Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8abd5372
    • YueHaibing's avatar
      8e77ebce
    • Nathan Chancellor's avatar
      staging: kpc2000: Use memset to initialize resources · 3fcbb7d4
      Nathan Chancellor authored
      Clang warns:
      
      drivers/staging/kpc2000/kpc2000/cell_probe.c:96:38: warning: suggest
      braces around initialization of subobject [-Wmissing-braces]
          struct resource  resources[2] = {0};
                                           ^
                                           {}
      drivers/staging/kpc2000/kpc2000/cell_probe.c:314:38: warning: suggest
      braces around initialization of subobject [-Wmissing-braces]
          struct resource  resources[2] = {0};
                                           ^
                                           {}
      2 warnings generated.
      
      One way to fix these warnings is to add additional braces like Clang
      suggests; however, there has been a bit of push back from some
      maintainers, who just prefer memset as it is unambiguous, doesn't
      depend on a particular compiler version, and properly initializes all
      subobjects [1][2]. Do that here so there are no more warnings.
      
      [1]: https://lore.kernel.org/lkml/022e41c0-8465-dc7a-a45c-64187ecd9684@amd.com/
      [2]: https://lore.kernel.org/lkml/20181128.215241.702406654469517539.davem@davemloft.net/
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/455Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3fcbb7d4
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.2b' of... · bf402c08
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.2b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Second set of IIO new device support, features and cleanup for the 5.2 cycle.
      
      New device suport
      * ad7606
        - Support the AD7616 16 channel, 12bit ADC.
      * fxas21002c
        - New driver for this gyroscope with I2C and SPI support.
      * lsm6dsx
        - Support the lsm6dsr, new device information structure and dt bindings.
      * srf04
        - Addition device IDs for mb1000, mb1010, mb1020, mb1030 and mb1040 +
          support of different required trigger pulse lengths.
      * st-accel
        - Support the ls2de12, new device info and dt bindings.
      * ti-ads8344
        - New driver for this 8 channel, 16 bit SPI ADC.
      
      Binding conversions to yaml - we have started doing these in general for IIO.
      * avia-hx711
      * bmp085
      
      Cleanups and minor fixes / additions
      * ad5758
        - Fixup for some changes between preproduction parts and final part.
      * ad7606
        - Refactor handling of oversampling to make it easy to vary between
          supported devices.
      * ad9832
        - Organise includes.
        - Clock framework to handle clocks.
      * ad9834
        - Drop unnecessary parenthesis.
      * bmc150
        - Use __func__ rather than hardcoding.
      * dummy_evgen.
        - Fix a memleak on error in probe.
      * kxcjk1013
        - Add KXCJ91008 ACPI ID as seen in the wild.
        - Use __func__ rather than hardcoding.
      * imx7d
        - Local dev variable to simplify code a bit.
        - dev_err replaces pr_err to give more info.
        - devm_platform_ioremap_resource for small reduction in boilerplate.
        - Simplify probe and remove by sharing suspend / resume logic.
        - Devm for iio_device_register as remove only contains the unregister.
      * lsm6dsx
        - Remove a variable that was never read.
        - Open code values where they are effectively described by what is assigned
          to them rather than using uninformative defines.
      * max31856
        - Avoid an unintialized ret variable in a path that can't actually occur
          but is hard for a static checker to know.
      * max9611
        - White space
      * mpu3050
        - Reduce a sleep worst case by switching from msleep to usleep_range.
      * qcom-spmi-adc5
        - Add MODULE_DEVICE_TABLE to assist autoloading of this as a module.
      * stm32-dfsdm
        - Fix missing dependencies.
      * stm32-timer trigger
        - Fix a build issue when disabled.
      * ti-ads7950
        - Fix mising dependency on CONFIG_GPIOLIB.
      
      * tag 'iio-for-5.2b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (42 commits)
        iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
        iio: dummy_evgen: fix possible memleak in evgen init
        iio:accel:Switch hardcoded function name with a reference to __func__ making the code more maintainable
        iio: adc: stm32-dfsdm: fix triggered buffer build dependency
        iio: adc: stm32-dfsdm: fix unmet direct dependencies detected
        iio: trigger: stm32-timer: fix build issue when disabled
        iio: imx7d_adc: Use devm_iio_device_register()
        iio: imx7d_adc: Simplify imx7d_adc_remove() with imx7d_adc_suspend()
        iio: imx7d_adc: Simplify imx7d_adc_probe() with imx7d_adc_resume()
        drivers/iio/gyro/mpu3050-core.c: This patch fix the following checkpatch warning.
        iio: dac: ad5758: Modifications for new revision
        iio: imu: st_lsm6dsx: inline per-sensor data
        iio: adc: Add driver for the TI ADS8344 A/DC chips
        dt-bindings: iio: adc: Add bindings for TI ADS8344 A/DC chips
        MAINTAINERS: add entry for fxas21002c gyro driver
        iio: gyro: fxas21002c: add spi driver
        iio: gyro: fxas21002c: add i2c driver
        iio: gyro: add core driver for fxas21002c
        iio: gyro: add DT bindings to fxas21002c
        Kconfig: change configuration of srf04 ultrasonic iio sensor
        ...
      bf402c08
  2. 22 Apr, 2019 18 commits
  3. 21 Apr, 2019 2 commits
  4. 20 Apr, 2019 14 commits