1. 02 Oct, 2018 5 commits
    • Nathan Chancellor's avatar
      staging: rtl8723bs: Mark ACPI table declaration as used · e6d09371
      Nathan Chancellor authored
      Clang emits the following warning:
      
      drivers/staging/rtl8723bs/os_dep/sdio_intf.c:25:36: warning: variable
      'acpi_ids' is not needed and will not be emitted
      [-Wunneeded-internal-declaration]
      static const struct acpi_device_id acpi_ids[] = {
                                         ^
      1 warning generated.
      
      Mark acpi_ids with the attribute __used, which makes it clear to Clang
      that we don't want this warning while not inhibiting Clang's dead code
      elimination from removing the unreferenced internal symbol when moving
      the data to the globally available symbol with MODULE_DEVICE_TABLE.
      
      $ nm -S drivers/staging/rtl8723bs/os_dep/sdio_intf.o | grep acpi
      0000000000000000 0000000000000040 R __mod_acpi__acpi_ids_device_table
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/169Suggested-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e6d09371
    • Dafna Hirschfeld's avatar
      staging: mt7621-mmc: replace `printk` with preferred API · 7b6e286c
      Dafna Hirschfeld authored
      Replace calls to `printk` with `dev_info` and `pr_err`
      Issues found with checkpatch.pl
      Signed-off-by: default avatarDafna Hirschfeld <dafna3@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7b6e286c
    • Dafna Hirschfeld's avatar
      staging: mt7621-mmc: Fix comparison to NULL · ffa8ed13
      Dafna Hirschfeld authored
      Replace comparisons of a variable 'x' to NULL with
      either 'x' or '!x'.
      Issues found with checkpatch.pl
      Signed-off-by: default avatarDafna Hirschfeld <dafna3@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ffa8ed13
    • Dafna Hirschfeld's avatar
      staging: mt7621-mmc: remove unnecessary braces from 'if' statements · f259e47a
      Dafna Hirschfeld authored
      Remove unnecessary braces from one line 'if' statements.
      Issues found with checkpatch.pl
      Signed-off-by: default avatarDafna Hirschfeld <dafna3@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f259e47a
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-4.20b' of... · 1c4ccab0
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-4.20b' 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 4.20 cycle.
      
      One merge commit in here to bring in the SPI_CS_WORD flag patches
      that are also going via the SPI tree.
      
      There are a few more fixes than normal for a pull targetting the
      next merge window.  These are all long term issues and as we are late
      in the cycle, they can wait.
      
      New device support
      * ad7606
        - Add support fo the ad7605-4 driver.  This driver is still in staging
          but is heading in the right direction to graduate, motivated partly
          by the requirement for this device support.
      * ST VL53L0X ToF ranging sensor
        - New minimal driver. Interrupt support to follow.
      
      New features
      
      * SPI_CS_WORD optimization allows long transfers with the chip select
        toggled every 16bits.   There is a software fallback as well to let
        drivers not care about whether the hardware supports it.
      
      * bh1750
        - Device tree support and bindings.
      * ti-ads7950
        - Use the SPI_CS_WORD optmization to save lots of cpu cycles (assuming
          the hardware supports it)
      
      Fixes and cleanups
      
      * ad5064
        - Fix some long incorrect regulator error handling that preventing
          enabling the internal regulator.
      * ad7606
        - The ad7606 doesn't actually have a 2.5V range and the values provided
          for scale have always been wrong.  Fix them.
        - Drop some wrong kernel-doc (things that don't exist)
        - Add missing kernel-doc
      * at91-adc
        - Fixing missing ack of dataready on sysfs channel reads to avoid spurious
          interrupts.
        - Fix a wrong channel numbers in triggered_buffer_mode
      * hmc5843
        - Fix incorrect part number in a comment.
      * imx25-gcq
        - Fix a device_node leak in an error path.
      * meson-saradc
        - Drop an unused and pointless define.
        - Use of_device_get_match_data instead of opencoding
        - Tidy up how meson_sar_adc_param is accessed.
        - Rework prior to adding some temperature sensor support.
      
      * tag 'iio-for-4.20b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
        iio: ad5064: Fix regulator handling
        iio: adc: meson-saradc: use the address attribute from iio_chan_spec
        iio: adc: meson-saradc: do not use meson_sar_adc_iio_channels directly
        iio: adc: at91: fix wrong channel number in triggered buffer mode
        iio: adc: at91: fix acking DRDY irq on simple conversions
        iio: adc: meson-saradc: simplify access to meson_sar_adc_param
        iio: adc: meson-saradc: use of_device_get_match_data
        iio: adc: meson-saradc: remove #define MESON_SAR_ADC_DELTA_10_TS_C_SHIFT
        iio: light: bh1750: Add device tree support
        dt-bindings: iio: light: bh1750: Add device tree binding documentation
        staging:iio:ad7606: Add support for the ad7605-4
        iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.
        staging:iio:ad7606: update structs with doc annotations
        iio: magnetometer: hmc5843: Fixed a comment error.
        iio: adc: imx25-gcq: Fix leak of device_node in mx25_gcq_setup_cfgs()
        iio: adc: ti-ads7950: use SPI_CS_WORD to reduce CPU usage
        spi: add software implementation for SPI_CS_WORD
        spi: add new SPI_CS_WORD flag
        staging:iio:ad7606: Remove incorrect kernel doc annotations
        staging:iio:ad7606: fix voltage scales
      1c4ccab0
  2. 29 Sep, 2018 25 commits
  3. 28 Sep, 2018 10 commits